Community-driven integrations for LangChain4j: model providers, embedding stores, chat memory stores, tools, web search engines, document ingestion, execution engines, MCP, and more — all built on the same unified LangChain4j APIs.
Welcome!
LangChain4j Community is the companion repository of LangChain4j, hosting integrations that are built and maintained by the community.
Here's how it relates to the main repository:
- Same unified APIs:
Every module here implements the standard LangChain4j interfaces (
ChatModel,EmbeddingModel,EmbeddingStore,ChatMemoryStore,ContentRetriever,WebSearchEngine, ...), so community integrations are used exactly like core ones and can be swapped in and out without changing your application code. - Faster iteration: New integrations land here first, at a release cadence independent of the core repository.
- Broad catalog: 50+ integration modules spanning model providers, embedding stores, chat memory stores, content retrievers, web search engines, document loaders/parsers/transformers, code & browser execution engines, agent tools, MCP, and more.
Browse the available integrations under Integrations in the documentation, or explore the module directories in this repository.
Community artifacts are versioned as <langchain4j-version>-beta<N>.
For example, community version 1.21.0-beta31 is built against LangChain4j 1.21.0.
Choose the community version whose prefix matches the LangChain4j version used in your project.
| LangChain4j Community | LangChain4j | Java |
|---|---|---|
1.21.0-beta31 (latest) |
1.21.0 |
17+ |
Community modules are released with a -beta<N> suffix: APIs are generally stable, but occasional
breaking changes may happen between releases. Pin your dependency versions and review the
release notes when upgrading.
- LangChain4j documentation — the official docs; community integrations appear alongside core ones under Integrations.
- Javadoc
- Module guides in this repository:
Pick an integration from the documentation and add its Maven dependency. Below is a quick start with DashScope (Qwen) as an example — every other module works the same way.
<dependency>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-community-dashscope</artifactId>
<version>1.21.0-beta31</version>
</dependency>You can also use the BOM to keep all community module versions consistent:
<dependencyManagement>
<dependency>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-community-bom</artifactId>
<version>1.21.0-beta31</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencyManagement>import dev.langchain4j.community.model.dashscope.QwenChatModel;
import dev.langchain4j.model.chat.ChatModel;
ChatModel model = QwenChatModel.builder()
.apiKey(System.getenv("DASHSCOPE_API_KEY"))
.modelName("qwen-plus")
.build();
String answer = model.chat("Hello from LangChain4j Community!");
System.out.println(answer);Use the matching Spring Boot starter (see spring-boot-starters for Spring Boot 3.x and spring-boot4-starters for Spring Boot 4.x):
<dependency>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-community-dashscope-spring-boot-starter</artifactId>
<version>1.21.0-beta31</version>
</dependency>langchain4j.community.dashscope.chat-model.api-key=${DASHSCOPE_API_KEY}
langchain4j.community.dashscope.chat-model.model-name=qwen-plusThe starter auto-configures ChatModel, StreamingChatModel, EmbeddingModel, and other beans,
which you can then inject wherever needed.
- langchain4j-examples — the official examples repository, which also covers several community integrations.
- Every module ships integration tests under
src/testthat double as runnable usage examples, e.g. DashScope tests.
Please use Discord or Stack Overflow to get help.
Please let us know what features you need by opening an issue.
Contribution guidelines can be found here.
We welcome contributions of all kinds: new integrations, bug fixes, documentation, and examples. A good way to start is to look at the open issues labeled P1 and P2.
Before submitting a PR, run make lint and make format locally.
This project is licensed under the Apache License 2.0.