LangChain4j
Java library for building LLM-powered applications and agents
LangChain4j is a Java library for developers who want to add large language model features to JVM applications. It gives one API across many model providers and vector stores, with building blocks for AI services, tool calling, MCP, retrieval over your own documents and agents. It is meant for use in plain Java or inside frameworks such as Quarkus and Spring Boot.
Declarations use ordinary Java interfaces, annotations and records instead of glue code. The library supports providers that run models on your own machine as well as cloud models, so the provider can be switched without rewriting the application. It is licensed under Apache-2.0 and the source code is public on GitHub.
Alternatives to LangChain4j
Products that do a similar job in Build with AI.
MaxKB
Open-source platform for building enterprise AI agents and knowledge bases
RAGFlow
open-source retrieval-augmented generation engine for building AI agent context
crewAI
Python framework for coordinating teams of role-based AI agents
serviette
Document Q&A server that stays in sync with changing files
Agno
Python framework for building and running AI agents
PageIndex
Document indexing library for reasoning-based retrieval without vector embeddings
Vane
Self-hostable AI answering engine that searches the web and cites sources
DeepSeek Harness
Plugin-based framework for building AI agents on DeepSeek models
