Go to file
LangChain4j 3a6cb3dc2d fixed a bug where in Spring Boot setting, AI Service method parameter is ignored without @V annotation 2024-09-20 16:27:11 +02:00
.devcontainer Add Dev Container support (#337) 2023-12-12 19:36:45 +01:00
.github fixing failing tests 2024-09-20 10:47:02 +02:00
.mvn/wrapper Correctly configure Maven wrapper (#348) 2023-12-13 12:48:49 +01:00
code-execution-engines Judge0: migrate from Gson to Jackson (#1729) 2024-09-09 13:53:42 +02:00
docker/ollama feat : create llama3 model image (#1083) 2024-05-10 13:33:18 +02:00
docs docu: Spring Boot component wiring 2024-09-20 15:47:55 +02:00
document-loaders changed version to 0.35.0-SNAPSHOT 2024-09-09 10:11:09 +02:00
document-parsers changed version to 0.35.0-SNAPSHOT 2024-09-09 10:11:09 +02:00
embedding-store-filter-parsers/langchain4j-embedding-store-filter-parser-sql changed version to 0.35.0-SNAPSHOT 2024-09-09 10:11:09 +02:00
experimental/langchain4j-experimental-sql changed version to 0.35.0-SNAPSHOT 2024-09-09 10:11:09 +02:00
langchain4j fixed a bug where in Spring Boot setting, AI Service method parameter is ignored without @V annotation 2024-09-20 16:27:11 +02:00
langchain4j-anthropic Added ChatModelListener in anthropic model (#1791) 2024-09-19 11:44:28 +02:00
langchain4j-azure-ai-search changed version to 0.35.0-SNAPSHOT 2024-09-09 10:11:09 +02:00
langchain4j-azure-cosmos-mongo-vcore changed version to 0.35.0-SNAPSHOT 2024-09-09 10:11:09 +02:00
langchain4j-azure-cosmos-nosql changed version to 0.35.0-SNAPSHOT 2024-09-09 10:11:09 +02:00
langchain4j-azure-open-ai fixing failing tests 2024-09-20 11:02:21 +02:00
langchain4j-bedrock Added listener on aws bedrock (#1805) 2024-09-20 11:41:58 +02:00
langchain4j-bom add scoring onnx (#1769) 2024-09-20 12:18:45 +02:00
langchain4j-cassandra changed version to 0.35.0-SNAPSHOT 2024-09-09 10:11:09 +02:00
langchain4j-chatglm changed version to 0.35.0-SNAPSHOT 2024-09-09 10:11:09 +02:00
langchain4j-chroma changed version to 0.35.0-SNAPSHOT 2024-09-09 10:11:09 +02:00
langchain4j-cohere Cohere: migrate from Gson to Jackson (#1767) 2024-09-12 11:08:49 +02:00
langchain4j-core `dev.langchain4j.data.document.Metadata.Metadata()` creates redundant `Map` (#1801) 2024-09-20 12:07:32 +02:00
langchain4j-couchbase changed version to 0.35.0-SNAPSHOT 2024-09-09 10:11:09 +02:00
langchain4j-dashscope Added Qwen2.5 open-source series models (#1798) 2024-09-19 09:24:33 +02:00
langchain4j-easy-rag changed version to 0.35.0-SNAPSHOT 2024-09-09 10:11:09 +02:00
langchain4j-elasticsearch changed version to 0.35.0-SNAPSHOT 2024-09-09 10:11:09 +02:00
langchain4j-google-ai-gemini Google AI — add support for embedding model and ability to count tokens (#1786) 2024-09-18 12:41:29 +02:00
langchain4j-hugging-face Migrage huggingface from Gson to Jackson (#1728) 2024-09-09 14:04:22 +02:00
langchain4j-infinispan changed version to 0.35.0-SNAPSHOT 2024-09-09 10:11:09 +02:00
langchain4j-jina changed version to 0.35.0-SNAPSHOT 2024-09-09 10:11:09 +02:00
langchain4j-jlama changed version to 0.35.0-SNAPSHOT 2024-09-09 10:11:09 +02:00
langchain4j-local-ai changed version to 0.35.0-SNAPSHOT 2024-09-09 10:11:09 +02:00
langchain4j-milvus changed version to 0.35.0-SNAPSHOT 2024-09-09 10:11:09 +02:00
langchain4j-mistral-ai changed version to 0.35.0-SNAPSHOT 2024-09-09 10:11:09 +02:00
langchain4j-mongodb-atlas MongoDB Atlas get rid of lombok (#1806) 2024-09-20 10:32:20 +02:00
langchain4j-neo4j changed version to 0.35.0-SNAPSHOT 2024-09-09 10:11:09 +02:00
langchain4j-nomic Nomic: migrate from Gson to Jackson (#1774) 2024-09-16 15:46:32 +02:00
langchain4j-ollama Ollama chat model listener (#1765) 2024-09-17 11:14:00 +02:00
langchain4j-onnx-scoring add scoring onnx (#1769) 2024-09-20 12:21:44 +02:00
langchain4j-open-ai Ollama chat model listener (#1765) 2024-09-17 11:12:43 +02:00
langchain4j-opensearch changed version to 0.35.0-SNAPSHOT 2024-09-09 10:11:09 +02:00
langchain4j-oracle changed version to 0.35.0-SNAPSHOT 2024-09-09 10:11:09 +02:00
langchain4j-ovh-ai changed version to 0.35.0-SNAPSHOT 2024-09-09 10:11:09 +02:00
langchain4j-parent Bumps com.azure:azure-storage-blob from 12.27.1 to 12.28.0. (#1794) 2024-09-19 10:23:58 +02:00
langchain4j-pgvector changed version to 0.35.0-SNAPSHOT 2024-09-09 10:11:09 +02:00
langchain4j-pinecone changed version to 0.35.0-SNAPSHOT 2024-09-09 10:11:09 +02:00
langchain4j-qdrant feat: Metadata filtering Qdrant (#1646) 2024-09-12 11:18:28 +02:00
langchain4j-qianfan changed version to 0.35.0-SNAPSHOT 2024-09-09 10:11:09 +02:00
langchain4j-redis changed version to 0.35.0-SNAPSHOT 2024-09-09 10:11:09 +02:00
langchain4j-tablestore Add langchain4j-tablestore Integration:  TablestoreEmbeddingStore/TablestoreChatMemoryStore (#1650) 2024-09-18 11:45:40 +02:00
langchain4j-vearch changed version to 0.35.0-SNAPSHOT 2024-09-09 10:11:09 +02:00
langchain4j-vertex-ai Updated documentation for the Google Cloud Vertex AI embedding models and added new parameters (auto truncation and output dimensionality) (#1796) 2024-09-19 09:31:29 +02:00
langchain4j-vertex-ai-gemini fixing failing tests 2024-09-19 10:56:20 +02:00
langchain4j-vespa changed version to 0.35.0-SNAPSHOT 2024-09-09 10:11:09 +02:00
langchain4j-weaviate Allow user to modify text key (#1723) 2024-09-10 10:00:32 +02:00
langchain4j-workers-ai changed version to 0.35.0-SNAPSHOT 2024-09-09 10:11:09 +02:00
langchain4j-zhipu-ai changed version to 0.35.0-SNAPSHOT 2024-09-09 10:11:09 +02:00
web-search-engines Tavily: migrate from Gson to Jackson (#1766) 2024-09-12 11:07:34 +02:00
.gitattributes Added in-process embedding models (#41) 2023-07-23 19:05:13 +02:00
.gitignore 增加智谱model类型 (#1239) 2024-06-06 14:40:06 +02:00
.prettierrc OpenAI DALL·E support (#298) 2023-12-19 11:37:11 +01:00
CODE_OF_CONDUCT.md Create a Code of Conduct (#825) 2024-04-18 14:34:30 +02:00
CONTRIBUTING.md feat: Metadata filtering Qdrant (#1646) 2024-09-12 11:18:28 +02:00
LICENSE Initial commit 2023-06-20 17:30:29 +02:00
README.md [minor fix] optimize badges (#1328) 2024-06-21 10:39:16 +02:00
mvnw Correctly configure Maven wrapper (#348) 2023-12-13 12:48:49 +01:00
mvnw.cmd [misc] Clean up maven wrapper scripts: have one at the root, delete the others. (#12) 2023-07-06 08:33:45 +02:00
pom.xml add scoring onnx (#1769) 2024-09-20 12:18:45 +02:00

README.md

LangChain for Java: Supercharge your Java application with the power of LLMs

Build Status Discord X Maven Version

Introduction

Welcome!

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

Here's how:

  1. 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 15+ embedding stores.
  2. Comprehensive Toolbox: During the past year, the community has been building numerous LLM-powered applications, identifying common abstractions, patterns, and techniques. LangChain4j has refined these into practical code. Our toolbox includes tools ranging from low-level prompt templating, chat memory management, and output parsing to high-level patterns like AI Services 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.
  3. Numerous Examples: These examples showcase how to begin creating various LLM-powered applications, providing inspiration and enabling you to start building quickly.

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.

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!

Documentation

Documentation can be found here.

Getting Started

Getting started guide can be found here.

Code Examples

Please see examples of how LangChain4j can be used in langchain4j-examples repo:

Useful Materials

Useful materials can be found here.

Get Help

Please use Discord or GitHub discussions to get help.

Request Features

Please let us know what features you need by opening an issue.

Contribute

Contribution guidelines can be found here.