
LangChain4j is an Apache 2.0 open-source Java library for developers building chatbots, assistants and AI agents in JVM applications. It connects application code to local LLM backends such as Ollama as well as cloud providers such as OpenAI and Google Vertex AI. Where model requests go depends on the backend you choose.
Its shared API covers both models and vector stores, so developers can change providers without rewriting each provider integration. Supported stores include Milvus and Pinecone. For applications that answer questions using their own documents, its retrieval-augmented generation (RAG) capabilities cover data ingestion through retrieval.
Tool calling lets models invoke Java code, with MCP support for connecting tools. The library also handles prompt templates, conversation memory and parsing model output. These building blocks suit teams that need an assistant to work with application functions or retrieved information, beyond generating a text response.
The design follows Java conventions, including type safety, POJOs, annotations and dependency injection. Framework integrations include Quarkus, Spring Boot, Helidon and Micronaut. Despite its name, LangChain4j is an independent Java project with its own API and release cycle, rather than a port of Python LangChain.
Claim this page with an email at docs.langchain4j.dev. LangChain4j gets the verified badge, and you can upgrade the listing to be featured on localhosted. Proud to be listed? Put our badge on your site.
Want more people to find LangChain4j?Promote it
Something wrong or outdated on this page?
38.4KUpdated 4 days agoMIT
#Code execution#MCP#Multimodal input
DSPy is a Python framework for developers building AI applications whose tasks need clear inputs, predictable output types, and measurable results. You define what a language model should produce, then compose those tasks into a larger program. It's open source under the MIT license.
26.6KUpdated 1 day agoApache-2.0
Docker#Guardrails#Hugging Face integration#Hybrid search
9.7KUpdated 9 months agoMIT
#Ollama integration#RAG#Semantic search
4.4KUpdated 1 day agoMIT
#Human approval#Multi-agent workflows#Multimodal input
13KUpdated 21 hours agoApache-2.0
Docker#Agent Skills#Hugging Face integration#Knowledge graphs
147.3KUpdated 1 day agoMIT
#Human approval#RAG#Streaming inference
Haystack is a Python framework for developers building self-hosted AI agents, document search, and apps that answer questions using their own data. Its modular pipelines let teams control which information reaches a model and inspect how retrieval, memory, tools, and generation contribute to an answer. It's open source under Apache 2.0.
LangChainGo is a Go implementation of LangChain for developers building LLM applications in their own software. It connects Go programs to model backends, including Ollama for local LLM use and cloud services such as OpenAI and Gemini. It's a library, so its audience is developers who want to build an application rather than use a ready-made chat interface.
RubyLLM is an MIT-licensed AI framework for developers building Ruby and Rails applications with local or hosted models. Its shared API lets an application switch between Ollama, cloud providers such as Anthropic and OpenAI, and OpenAI-compatible endpoints without rewriting its model integration. The framework runs in your application; model processing happens at the local or hosted backend you choose.
txtai is a Python framework for developers building search applications, chat with their data, and AI agents on their own hardware or servers. Its embeddings database combines sparse and dense vector search with graphs and relational data, so the same system can find related content and supply context to language models. It's open source under Apache 2.0.
LangChain is an MIT-licensed open-source framework for developers building AI agents and applications powered by LLMs. It provides a shared interface for models, tools and data connections, so developers can change providers or test workflows without rebuilding the whole application.