Skip to content
프로젝트

langchain4j/langchain4j-community

GitHub에서 보기

소개

LangChain4j integrations that are maintained by the community

AI 및 머신러닝

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

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.

관련 프로젝트 살펴보기

불러오는 중…