langchain4j

langchain4j

langchain4j

LangChain4j is an idiomatic, open-source Java library for building LLM-powered applications on the JVM. It offers a unified API over popular LLM providers and vector stores, and makes implementing tool calling (including MCP support), agents and RAG easy. It integrates seamlessly with enterprise Java frameworks like Quarkus and Spring Boot.

AI 简介

LangChain4j 是一个面向 JVM 的开源 Java 库,用于构建大语言模型(LLM)驱动的应用程序。它提供统一的 API 抽象层,支持 20+ 主流 LLM 服务商(如 OpenAI、Gemini、Llama)和 30+ 向量数据库(如 Pinecone、Milvus、Chroma),并内置对工具调用(含 MCP)、智能体(Agents)和检索增强生成(RAG)的开箱即用支持。深度集成 Spring Boot 和 Quarkus 等企业级 Java 框架,适合在 Java 微服务、后台系统或金融/政务等需强类型与稳定性的生产环境中快速落地 LLM 应用。

Java
Apache License 2.0
12.6k
Stars
2.4k
Forks
112
Watchers
587
Issues

Star 增长

今日0
近 7 天0
近 30 天+136
综合评分80
默认分支main