Go to file
LangChain4j 20a30eb253 fixed failing tests 2024-08-23 15:38:06 +02:00
.devcontainer Add Dev Container support (#337) 2023-12-12 19:36:45 +01:00
.github skip Ollama in nightly build 2024-08-22 17:53:22 +02:00
.mvn/wrapper Correctly configure Maven wrapper (#348) 2023-12-13 12:48:49 +01:00
code-execution-engines re #1506 Enabling Maven (version) enforcer plugin in modules with no version conflicts (#1507) 2024-08-06 15:21:25 +02:00
docker/ollama feat : create llama3 model image (#1083) 2024-05-10 13:33:18 +02:00
docs docu 2024-08-22 16:23:00 +02:00
document-loaders review @Disabled tests 2024-08-23 10:04:57 +02:00
document-parsers re #1506 Enabling Maven (version) enforcer plugin in modules with no version conflicts (#1507) 2024-08-06 15:21:25 +02:00
embedding-store-filter-parsers/langchain4j-embedding-store-filter-parser-sql re #1506 Enabling Maven (version) enforcer plugin in modules with no version conflicts (#1507) 2024-08-06 15:21:25 +02:00
experimental/langchain4j-experimental-sql re #1506 Enabling Maven (version) enforcer plugin in modules with no version conflicts (#1507) 2024-08-06 15:21:25 +02:00
langchain4j cleanup tests 2024-08-23 11:15:01 +02:00
langchain4j-anthropic Anthropic: Added model "Claude 3.5 Sonnet" to AnthropicChatModelName (#1616) 2024-08-21 18:21:50 +02:00
langchain4j-azure-ai-search EmbeddingStoreIT: use awaitility (#1610) 2024-08-22 16:17:53 +02:00
langchain4j-azure-cosmos-mongo-vcore EmbeddingStoreIT: use awaitility (#1610) 2024-08-22 16:17:53 +02:00
langchain4j-azure-cosmos-nosql EmbeddingStoreIT: use awaitility (#1610) 2024-08-22 16:17:53 +02:00
langchain4j-azure-open-ai Azure OpenAI: disable expensive image generation tests (will run them manually before the release) 2024-08-23 10:05:36 +02:00
langchain4j-bedrock fixed failing test 2024-08-23 10:20:42 +02:00
langchain4j-bom [FEATURE] Adds SearchApi as WebSearchEngine and Tool (#1216) 2024-08-22 11:05:39 +02:00
langchain4j-cassandra review @Disabled tests 2024-08-23 10:04:57 +02:00
langchain4j-chatglm 1465 : Ensuring trailing / in retrofit baseurl (#1519) 2024-08-06 13:52:30 +02:00
langchain4j-chroma 1505-feature-chroma-support-metadata-filtering (#1556) 2024-08-22 16:23:58 +02:00
langchain4j-cohere Added an option to setup a proxy for Cohere score model (#1592) 2024-08-16 10:00:12 +02:00
langchain4j-core fixed failing test 2024-08-23 10:30:46 +02:00
langchain4j-dashscope changed version to 0.34.0-SNAPSHOT 2024-07-26 15:12:26 +02:00
langchain4j-easy-rag changed version to 0.34.0-SNAPSHOT 2024-07-26 15:12:26 +02:00
langchain4j-elasticsearch EmbeddingStoreIT: use awaitility (#1610) 2024-08-22 16:17:53 +02:00
langchain4j-hugging-face cosmetics 2024-08-06 14:08:23 +02:00
langchain4j-infinispan cleanup 2024-08-23 10:21:01 +02:00
langchain4j-jina 1465 : Ensuring trailing / in retrofit baseurl (#1519) 2024-08-06 13:52:30 +02:00
langchain4j-jlama changed version to 0.34.0-SNAPSHOT 2024-07-26 15:12:26 +02:00
langchain4j-local-ai changed version to 0.34.0-SNAPSHOT 2024-07-26 15:12:26 +02:00
langchain4j-milvus EmbeddingStoreWithRemovalIT: use awaitility 2024-08-20 11:58:20 +02:00
langchain4j-mistral-ai fixed failing test 2024-08-23 10:20:42 +02:00
langchain4j-mongodb-atlas mongodb/atlas: use latest docker image 2024-08-23 10:21:36 +02:00
langchain4j-neo4j fixed failing tests 2024-08-23 15:38:06 +02:00
langchain4j-nomic 1465 : Ensuring trailing / in retrofit baseurl (#1519) 2024-08-06 13:52:30 +02:00
langchain4j-ollama Ollama Tools Support - only in OllamaChatModel (#1558) 2024-08-16 11:01:08 +02:00
langchain4j-open-ai cleanup tests 2024-08-23 11:15:01 +02:00
langchain4j-opensearch EmbeddingStoreIT: use awaitility (#1610) 2024-08-22 16:17:53 +02:00
langchain4j-ovh-ai cosmetics 2024-08-06 14:08:23 +02:00
langchain4j-parent fixing compliance checks 2024-08-22 16:31:31 +02:00
langchain4j-pgvector cleanup 2024-08-23 10:21:01 +02:00
langchain4j-pinecone fixing compliance checks 2024-08-22 16:37:37 +02:00
langchain4j-qdrant EmbeddingStoreIT: use awaitility (#1610) 2024-08-22 16:17:53 +02:00
langchain4j-qianfan fix [BUG] #1585 (#1597) 2024-08-16 14:54:58 +02:00
langchain4j-redis EmbeddingStoreIT: use awaitility (#1610) 2024-08-22 16:17:53 +02:00
langchain4j-vearch EmbeddingStoreIT: use awaitility (#1610) 2024-08-22 16:17:53 +02:00
langchain4j-vertex-ai re #1506 Enabling Maven (version) enforcer plugin in modules with no version conflicts (#1507) 2024-08-06 15:21:25 +02:00
langchain4j-vertex-ai-gemini re #1506 Enabling Maven (version) enforcer plugin in modules with no version conflicts (#1507) 2024-08-06 15:21:25 +02:00
langchain4j-vespa cosmetics 2024-08-06 14:08:23 +02:00
langchain4j-weaviate fixed failing test 2024-08-23 10:20:42 +02:00
langchain4j-workers-ai cosmetics 2024-08-06 14:08:23 +02:00
langchain4j-zhipu-ai Add file comments:ZhipuAiEmbeddingModel (#1607) 2024-08-20 09:32:15 +02:00
web-search-engines review @Disabled tests 2024-08-23 10:04:57 +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 Update CONTRIBUTING.md 2024-07-25 09:52:23 +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 [FEATURE] Adds SearchApi as WebSearchEngine and Tool (#1216) 2024-08-22 11:05:39 +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.