# langchain4j

Published articles for langchain4j.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Making Java a first-class AI citizen with Langchain4j

DevFeed: [Making Java a first-class AI citizen with Langchain4j](<https://devfeed.tech/articles/making-java-a-first-class-ai-citizen-with-langchain4j-23024.md>)

Original publisher: [Read original article](<https://www.javaadvent.com/2025/12/making-java-a-first-class-ai-citizen-with-langchain4j.html>)

Author: deors

Published: 2025-12-18T03:03:33Z

Content type: tutorial

Language: en

Sources: [Java Advent Calendar](<https://devfeed.tech/sources/java-advent-calendar.md>)

Topics: [Java](<https://devfeed.tech/topics/java.md>), [AI Development](<https://devfeed.tech/topics/ai-development.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [API](<https://devfeed.tech/topics/api.md>), [Resilience](<https://devfeed.tech/topics/resilience.md>), [Scalability](<https://devfeed.tech/topics/scalability.md>), [observability](<https://devfeed.tech/topics/observability.md>), [OpenAI](<https://devfeed.tech/topics/openai.md>), [Google AI](<https://devfeed.tech/topics/google-ai.md>), [Ollama](<https://devfeed.tech/topics/ollama.md>)

Tags: [2025](<https://devfeed.tech/tags/2025.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-models](<https://devfeed.tech/tags/ai-models.md>), [api](<https://devfeed.tech/tags/api.md>), [java](<https://devfeed.tech/tags/java.md>), [langchain4j](<https://devfeed.tech/tags/langchain4j.md>), [ollama](<https://devfeed.tech/tags/ollama.md>), [openai](<https://devfeed.tech/tags/openai.md>), [vertex](<https://devfeed.tech/tags/vertex.md>)

### AI overview

This article introduces LangChain4j as a framework-agnostic Java library for building and running generative AI solutions. It explains its API, integration with Spring, Jakarta, Quarkus, Micronaut, and standalone applications, and support for cloud and local models, with examples based on version 0.36.2.

### Source excerpt

Introduction When the first technical solutions based on Artificial Intelligence began to be created, Python was the language and runtime platform of choice. It was not a total surprise as Python was the choice of the great majority of data scientists to analyse data, perform experiments and create AI models, so it was kind of [...] The post Making Java a first-class AI citizen with Langchain4j appeared first on JVM Advent.

## Building a Quarkus LangChain4j Extension for Java LLM Applications

DevFeed: [Building a Quarkus LangChain4j Extension for Java LLM Applications](<https://devfeed.tech/articles/quarkus-langchain4j-extension-from-grounds-up-23027.md>)

Original publisher: [Read original article](<https://www.javaadvent.com/2025/12/quarkus-langchain4j-extension-from-grounds-up.html>)

Author: Martin Toshev

Published: 2025-12-02T04:33:13Z

Content type: tutorial

Language: en

Sources: [Java Advent Calendar](<https://devfeed.tech/sources/java-advent-calendar.md>)

Topics: [Quarkus](<https://devfeed.tech/topics/quarkus.md>), [Java](<https://devfeed.tech/topics/java.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Framework](<https://devfeed.tech/topics/framework.md>), [observability](<https://devfeed.tech/topics/observability.md>), [tracing](<https://devfeed.tech/topics/tracing.md>)

Tags: [2025](<https://devfeed.tech/tags/2025.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [ai](<https://devfeed.tech/tags/ai.md>), [frameworks](<https://devfeed.tech/tags/frameworks.md>), [healthcare](<https://devfeed.tech/tags/healthcare.md>), [java](<https://devfeed.tech/tags/java.md>), [langchain4j](<https://devfeed.tech/tags/langchain4j.md>), [large-language-models](<https://devfeed.tech/tags/large-language-models.md>), [observability](<https://devfeed.tech/tags/observability.md>), [opentelemetry](<https://devfeed.tech/tags/opentelemetry.md>), [quarkus](<https://devfeed.tech/tags/quarkus.md>), [tracing](<https://devfeed.tech/tags/tracing.md>)

### AI overview

This tutorial explains how the Quarkus LangChain4j extension simplifies integrating Java applications with large language models. It covers build-time and native-image optimizations, CDI-based AI service discovery, type-safe configuration, Quarkus dev mode integration, and observability features before demonstrating an agentic healthcare application.

### Source excerpt

LangChain4j is a top (if not the top) library in use for integrating Java applications with various LLMs (large language models). It provides a number of features such as a unified API for LLM integration, support for vector stores, prompt templates, RAG (retrievalaugmented generation) and more. While we can use it directly in popular frameworks [...] The post Quarkus LangChain4j extension from grounds up appeared first on JVM Advent.

## How to Make a RAG Application With LangChain4j

DevFeed: [How to Make a RAG Application With LangChain4j](<https://devfeed.tech/articles/how-to-make-a-rag-application-with-langchain4j-21836.md>)

Original publisher: [Read original article](<https://www.thepolyglotdeveloper.com/blog/2025/05/how-to-make-a-rag-application-with-langchain4j/>)

Author: Tim Kelly

Published: 2025-05-03T12:00:00Z

Content type: tutorial

Language: en

Sources: [Nic Raboy](<https://devfeed.tech/sources/nic-raboy.md>)

Topics: [Retrieval-Augmented Generation](<https://devfeed.tech/topics/retrieval-augmented-generation.md>), [Databases](<https://devfeed.tech/topics/databases.md>), [Development](<https://devfeed.tech/topics/development.md>), [Embeddings](<https://devfeed.tech/topics/embeddings.md>), [Java](<https://devfeed.tech/topics/java.md>), [Library](<https://devfeed.tech/topics/library.md>), [MongoDB](<https://devfeed.tech/topics/mongodb.md>), [AI Development](<https://devfeed.tech/topics/ai-development.md>), [Chat Bot](<https://devfeed.tech/topics/chatbot.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [artificial-intelligence](<https://devfeed.tech/tags/artificial-intelligence.md>), [chatbots](<https://devfeed.tech/tags/chatbots.md>), [database](<https://devfeed.tech/tags/database.md>), [embeddings](<https://devfeed.tech/tags/embeddings.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [java](<https://devfeed.tech/tags/java.md>), [langchain4j](<https://devfeed.tech/tags/langchain4j.md>), [library](<https://devfeed.tech/tags/library.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>), [rag](<https://devfeed.tech/tags/rag.md>)

### AI overview

This tutorial explains how to build a retrieval-augmented generation Q&A chatbot with LangChain4j. It describes retrieving data from MongoDB Atlas, storing documents as vector embeddings, and using the retrieved data to augment LLM prompts.

### Source excerpt

Retrieval-augmented generation, or RAG, introduces some serious capabilities to your large language models (LLMs). These applications can answer questions about your specific corpus of knowledge, whil... The post How to Make a RAG Application With LangChain4j appeared first on DEV.