Go to file
ZYinNJU b29d31029f
Migrate Vearch from Gson to Jackson (#1706)
## Issue
Closes #1680 

## Change
Migrate Vearch from Gson to Jackson

## General checklist
<!-- Please double-check the following points and mark them like this:
[X] -->
- [x] There are no breaking changes
- [ ] I have added unit and integration tests for my change
- [x] I have manually run all the unit and integration tests in the
module I have added/changed, and they are all green
- [x] I have manually run all the unit and integration tests in the
[core](https://github.com/langchain4j/langchain4j/tree/main/langchain4j-core)
and
[main](https://github.com/langchain4j/langchain4j/tree/main/langchain4j)
modules, and they are all green
<!-- Before adding documentation and example(s) (below), please wait
until the PR is reviewed and approved. -->
- [ ] I have added/updated the
[documentation](https://github.com/langchain4j/langchain4j/tree/main/docs/docs)
- [ ] I have added an example in the [examples
repo](https://github.com/langchain4j/langchain4j-examples) (only for
"big" features)
- [ ] I have added/updated [Spring Boot
starter(s)](https://github.com/langchain4j/langchain4j-spring) (if
applicable)
2024-09-04 14:49:36 +02:00
.devcontainer Add Dev Container support (#337) 2023-12-12 19:36:45 +01:00
.github added elasticsearch github bot rule 2024-08-27 10:13:34 +02:00
.mvn/wrapper Correctly configure Maven wrapper (#348) 2023-12-13 12:48:49 +01:00
code-execution-engines re #1506 Enable Maven enforcer plugin and fix dependency conflict introduced by `okhttp` dependency in 19 modules. (#1645) 2024-08-27 17:44:06 +02:00
docker/ollama feat : create llama3 model image (#1083) 2024-05-10 13:33:18 +02:00
docs Add tool support for jlama (#1661) 2024-09-03 17:42:11 +02:00
document-loaders review @Disabled tests 2024-08-23 10:04:57 +02:00
document-parsers [Feature] ApachePdfBoxDocumentParser should return metadata (#1475) 2024-09-03 14:42:30 +02:00
embedding-store-filter-parsers/langchain4j-embedding-store-filter-parser-sql fixing failing tests 2024-08-29 09:39:36 +02:00
experimental/langchain4j-experimental-sql fixed failing tests 2024-08-23 16:03:33 +02:00
langchain4j #1620 increased MAX_SEQUENTIAL_TOOL_EXECUTIONS to 100 (temporary solution) 2024-09-04 13:36:31 +02:00
langchain4j-anthropic re #1506 Enable Maven enforcer plugin and fix dependency conflict introduced by `okhttp` dependency in 19 modules. (#1645) 2024-08-27 17:44:06 +02:00
langchain4j-azure-ai-search stabilize Azure AI Search tests 2024-08-24 15:10:25 +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 Bump com.azure:azure-ai-openai from 1.0.0-beta.10 to 1.0.0-beta.11 (#1656) 2024-09-02 10:46:12 +02:00
langchain4j-bedrock fixed failing test 2024-08-23 10:20:42 +02:00
langchain4j-bom Adds couchbase vector storage (#1482) 2024-09-02 15:11:36 +02:00
langchain4j-cassandra review @Disabled tests 2024-08-23 10:04:57 +02:00
langchain4j-chatglm re #1506 Enable Maven enforcer plugin and fix dependency conflict introduced by `okhttp` dependency in 19 modules. (#1645) 2024-08-27 17:44:06 +02:00
langchain4j-chroma re #1506 Enable Maven enforcer plugin and fix dependency conflict introduced by `okhttp` dependency in 19 modules. (#1645) 2024-08-27 17:44:06 +02:00
langchain4j-cohere re #1506 Enable Maven enforcer plugin and fix dependency conflict introduced by `okhttp` dependency in 19 modules. (#1645) 2024-08-27 17:44:06 +02:00
langchain4j-core OpenAI: Structured Outputs (#1590) 2024-09-02 12:00:12 +02:00
langchain4j-couchbase Adds couchbase vector storage (#1482) 2024-09-02 15:20:49 +02:00
langchain4j-dashscope DashScope: support qwen audio models (#1705) 2024-09-04 13:33:26 +02:00
langchain4j-easy-rag remove System.out.println() from tests 2024-08-26 09:52:40 +02:00
langchain4j-elasticsearch langchain4j-elasticsearch get rid of lombok (#1671) 2024-09-03 09:42:19 +02:00
langchain4j-hugging-face re #1506 Enable Maven enforcer plugin and fix dependency conflict introduced by `okhttp` dependency in 19 modules. (#1645) 2024-08-27 17:44:06 +02:00
langchain4j-infinispan cleanup 2024-08-23 10:21:01 +02:00
langchain4j-jina fixing failing tests 2024-08-28 11:09:05 +02:00
langchain4j-jlama Jlama: use same model for testing 2024-09-04 09:45:04 +02:00
langchain4j-local-ai remove System.out.println() from tests 2024-08-26 09:52:40 +02:00
langchain4j-milvus Milvus - upgrade to Milvus SDK 2.3.9 (#1642) 2024-08-27 16:08:52 +02:00
langchain4j-mistral-ai fixing failing tests 2024-09-02 10:22:45 +02:00
langchain4j-mongodb-atlas fixing failing tests 2024-08-28 11:07:38 +02:00
langchain4j-neo4j fixed failing tests 2024-08-23 15:38:06 +02:00
langchain4j-nomic re #1506 Enable Maven enforcer plugin and fix dependency conflict introduced by `okhttp` dependency in 19 modules. (#1645) 2024-08-27 17:44:06 +02:00
langchain4j-ollama re #1506 Enable Maven enforcer plugin and fix dependency conflict introduced by `okhttp` dependency in 19 modules. (#1645) 2024-08-27 17:44:06 +02:00
langchain4j-open-ai OpenAI: migrate from Gson to Jackson (#1667) 2024-09-02 17:03:26 +02:00
langchain4j-opensearch EmbeddingStoreIT: use awaitility (#1610) 2024-08-22 16:17:53 +02:00
langchain4j-oracle Fix typo in readme (#1653) 2024-09-02 10:48:39 +02:00
langchain4j-ovh-ai re #1506 Enable Maven enforcer plugin and fix dependency conflict introduced by `okhttp` dependency in 19 modules. (#1645) 2024-08-27 17:44:06 +02:00
langchain4j-parent OpenAI: migrate from Gson to Jackson (#1667) 2024-09-02 17:03:26 +02:00
langchain4j-pgvector PgVector Jackson Migration (#1692) 2024-09-04 14:09:44 +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 re #1506 Enable Maven enforcer plugin and fix dependency conflict introduced by `okhttp` dependency in 19 modules. (#1645) 2024-08-27 17:44:06 +02:00
langchain4j-redis Migrate Redis from gson to jackson (#1694) 2024-09-04 14:01:53 +02:00
langchain4j-vearch Migrate Vearch from Gson to Jackson (#1706) 2024-09-04 14:49:36 +02:00
langchain4j-vertex-ai fixing failing tests 2024-08-29 09:39:36 +02:00
langchain4j-vertex-ai-gemini remove System.out.println() from tests 2024-08-26 09:52:40 +02:00
langchain4j-vespa re #1506 Enable Maven enforcer plugin and fix dependency conflict introduced by `okhttp` dependency in 19 modules. (#1645) 2024-08-27 17:44:06 +02:00
langchain4j-weaviate fixed failing test 2024-08-23 10:20:42 +02:00
langchain4j-workers-ai re #1506 Enable Maven enforcer plugin and fix dependency conflict introduced by `okhttp` dependency in 19 modules. (#1645) 2024-08-27 17:44:06 +02:00
langchain4j-zhipu-ai Add ZhipuAi no argument constructor and fix IT (#1699) 2024-09-04 11:54:02 +02:00
web-search-engines fixing failing tests 2024-09-03 09:54: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 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 Adds couchbase vector storage (#1482) 2024-09-02 15:11:36 +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.