Skills2026年4月1日·1 分钟阅读

LangChain4j — LLM Integration for Java

LangChain4j integrates 20+ LLM providers and 30+ vector stores into Java apps. 11.4K+ stars. Unified API, RAG, MCP, Spring Boot. Apache 2.0.

介绍

LangChain4j is an open-source Java library for integrating LLMs into Java applications. With 11,400+ GitHub stars and Apache 2.0 license, it provides a unified API across 20+ LLM providers and 30+ embedding/vector stores, comprehensive toolbox (prompt templating, chat memory, function calling, agents, RAG), MCP support, and seamless integration with Spring Boot, Quarkus, Helidon, and Micronaut.

Best for: Java developers building AI-powered enterprise applications Works with: Claude Code, OpenAI Codex, Cursor, Gemini CLI, Windsurf


Key Features

  • 20+ LLM providers unified API
  • 30+ vector/embedding stores
  • Function calling and MCP support
  • RAG patterns built in
  • Spring Boot, Quarkus, Helidon, Micronaut
  • Prompt templating and chat memory

FAQ

Q: What is LangChain4j? A: Java LLM library with 11.4K+ stars. 20+ providers, 30+ vector stores, RAG, MCP, Spring Boot. Apache 2.0.

Q: How do I install LangChain4j? A: Add Maven dependency dev.langchain4j:langchain4j.


🙏

来源与感谢

langchain4j/langchain4j — 11,400+ GitHub stars

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产