#25 · Primary category: LLM Application Frameworks

langchain4j

anthropic chatgpt chroma embeddings gemini gpt huggingface java langchain llama llm llms milvus ollama onnx openai openai-api pgvector pinecone vector-database

Java library for building LLM-powered applications with unified APIs for LLM providers and vector stores.

Project last updated:08/28/26

GitHub Stars

13.0K

Forks

2.5K

Contributors

475

License

Apache-2.0

Why we included this project

Java teams that want LLM features inside their existing codebase are the audience here, and they don't have to stand up a separate Python service to get them. LangChain4j wraps model providers and vector stores behind one API, so swapping OpenAI for Ollama or moving between embedding stores is a configuration change rather than a rewrite. It also bundles the everyday pieces: prompt templating, chat memory, tool calling with MCP support, and higher-level agent and RAG patterns, packaged to fit naturally into Quarkus and Spring Boot. The bundled examples take you from an empty project to a working prototype quickly, which makes it a reasonable foundation for enterprise Java shops adding conversational or retrieval-augmented features.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category