Skip to content

About

LangChain4j integrations that are maintained by the community

Resources

Contributing

Stars

231 stars

Watchers

3 watching

Forks

Latest commit

 

History

764 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LangChain4j Community

Build Status Nightly Build Discord Maven Version License

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.

Introduction

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:

  1. 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.
  2. Faster iteration: New integrations land here first, at a release cadence independent of the core repository.
  3. 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.

Versioning & compatibility

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.

Documentation

Getting Started

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.

Plain Java

<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);

Spring Boot

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-plus

The starter auto-configures ChatModel, StreamingChatModel, EmbeddingModel, and other beans, which you can then inject wherever needed.

Code Examples

  • langchain4j-examples — the official examples repository, which also covers several community integrations.
  • Every module ships integration tests under src/test that double as runnable usage examples, e.g. DashScope tests.

Get Help

Please use Discord or Stack Overflow to get help.

Request Features

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

Contribute

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.

License

This project is licensed under the Apache License 2.0.

About

LangChain4j integrations that are maintained by the community

Resources

Contributing

Stars

231 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages