The goal of LangChain4j is to simplify integrating LLMs into Java applications.

在java应用中轻松集成LLM模型

官方网址:Introduction | LangChain4j

Here's how:

Unified APIs: LLM providers (like OpenAI or Google Vertex AI) and embedding (vector) stores (such as Pinecone or Milvus) use proprietary APIs. LangChain4j offers a unified API to avoid the need for learning and implementing specific APIs for each of them. To experiment with different LLMs or embedding stores, you can easily switch between them without the need to rewrite your code. LangChain4j currently supports 15+ popular LLM providers and 20+ embedding stores.
 

统一API:LLM提供商(如OpenAI或Google Vertex AI)和嵌入(矢量)商店(如Pinecone或Milvus)使用专有API。LangChain4j提供了一个统一的API,以避免为每个API学习和实现特定的API。 尝试不同的LLM或嵌入存储,您可以在它们之间轻松切换,而无需重写代码。LangChain4j目前支持15多个流行的LLM提供商和20多个嵌入存储.

Comprehensive Toolbox: Since early 2023, the community has been building numerous LLM-powered applications, identifying common abstractions, patterns, and techniques. LangChain4j has refined these into a ready to use package. Our toolbox includes tools ranging from low-level prompt templating, chat memory management, and function calling to high-level patterns like Agents and RAG. For each abstraction, we provide an interface along with multiple ready-to-use implementations based on common techniques. Whether you're building a chatbot or developing a RAG with a complete pipeline from data ingestion to retrieval, LangChain4j offers a wide variety of options.

综合工具箱:自2023年初以来,社区一直在构建许多基于LLM的应用程序,确定常见的抽象、模式和技术。LangChain4j已经将这些改进为现成的包。我们的工具箱包括从低级提示模板、聊天内存管理和函数调用到代理和RAG等高级模式的工具。对于每种抽象,我们都提供了一个接口以及基于常见技术的多个即用型实现。无论您是在构建聊天机器人,还是在开发从数据摄取到检索的完整管道的RAG,LangChain4j都提供了多种选择。


Numerous Examples: These examples showcase how to begin creating various LLM-powered applications, providing inspiration and enabling you to start building quickly.

众多示例:这些示例展示了如何开始创建各种LLM驱动的应用程序,提供灵感并使您能够快速开始构建。
LangChain4j began development in early 2023 amid the ChatGPT hype. We noticed a lack of Java counterparts to the numerous Python and JavaScript LLM libraries and frameworks, and we had to fix that! Although "LangChain" is in our name, the project is a fusion of ideas and concepts from LangChain, Haystack, LlamaIndex, and the broader community, spiced up with a touch of our own innovation.
LangChain4j于2023年初在ChatGPT的炒作中开始开发。我们注意到许多Python和JavaScript LLM库和框架缺乏Java对应物,我们必须解决这个问题!尽管“LangChain”以我们的名义出现,但该项目融合了LangChain、Haystack、LlamaIdex和更广泛的社区的想法和概念,并加入了我们自己的创新。

We actively monitor community developments, aiming to quickly incorporate new techniques and integrations, ensuring you stay up-to-date. The library is under active development. While some features are still being worked on, the core functionality is in place, allowing you to start building LLM-powered apps now!

我们积极监控社区发展,旨在快速整合新技术和集成,确保您保持最新状态。图书馆正在积极发展。虽然一些功能仍在开发中,但核心功能已经到位,允许您现在开始构建LLM驱动的应用程序!

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐