GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - CoderBoyBoy/langchain4j: Java version of LangChain

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

1,856 Commits
1,856 Commits

Folders and files

NameName
Last commit message
Last commit date
.devcontainer
.devcontainer
 
 
.github
.github
 
 
.idea
.idea
 
 
.mvn
.mvn
 
 
code-execution-engines
code-execution-engines
 
 
docker/ollama
docker/ollama
 
 
docs
docs
 
 
document-loaders
document-loaders
 
 
document-parsers
document-parsers
 
 
document-transformers/langchain4j-document-transformer-jsoup
document-transformers/langchain4j-document-transformer-jsoup
 
 
embedding-store-filter-parsers/langchain4j-embedding-store-filter-parser-sql
embedding-store-filter-parsers/langchain4j-embedding-store-filter-parser-sql
 
 
experimental/langchain4j-experimental-sql
experimental/langchain4j-experimental-sql
 
 
http-clients/langchain4j-http-client-jdk
http-clients/langchain4j-http-client-jdk
 
 
langchain4j-anthropic
langchain4j-anthropic
 
 
langchain4j-azure-ai-search
langchain4j-azure-ai-search
 
 
langchain4j-azure-cosmos-mongo-vcore
langchain4j-azure-cosmos-mongo-vcore
 
 
langchain4j-azure-cosmos-nosql
langchain4j-azure-cosmos-nosql
 
 
langchain4j-azure-open-ai
langchain4j-azure-open-ai
 
 
langchain4j-bedrock
langchain4j-bedrock
 
 
langchain4j-bom
langchain4j-bom
 
 
langchain4j-cassandra
langchain4j-cassandra
 
 
langchain4j-chroma
langchain4j-chroma
 
 
langchain4j-cohere
langchain4j-cohere
 
 
langchain4j-coherence
langchain4j-coherence
 
 
langchain4j-core
langchain4j-core
 
 
langchain4j-couchbase
langchain4j-couchbase
 
 
langchain4j-easy-rag
langchain4j-easy-rag
 
 
langchain4j-elasticsearch
langchain4j-elasticsearch
 
 
langchain4j-github-models
langchain4j-github-models
 
 
langchain4j-google-ai-gemini
langchain4j-google-ai-gemini
 
 
langchain4j-http-client
langchain4j-http-client
 
 
langchain4j-hugging-face
langchain4j-hugging-face
 
 
langchain4j-infinispan
langchain4j-infinispan
 
 
langchain4j-jina
langchain4j-jina
 
 
langchain4j-jlama
langchain4j-jlama
 
 
langchain4j-local-ai
langchain4j-local-ai
 
 
langchain4j-mariadb
langchain4j-mariadb
 
 
langchain4j-mcp
langchain4j-mcp
 
 
langchain4j-milvus
langchain4j-milvus
 
 
langchain4j-mistral-ai
langchain4j-mistral-ai
 
 
langchain4j-mongodb-atlas
langchain4j-mongodb-atlas
 
 
langchain4j-nomic
langchain4j-nomic
 
 
langchain4j-ollama
langchain4j-ollama
 
 
langchain4j-onnx-scoring
langchain4j-onnx-scoring
 
 
langchain4j-open-ai-official
langchain4j-open-ai-official
 
 
langchain4j-open-ai
langchain4j-open-ai
 
 
langchain4j-opensearch
langchain4j-opensearch
 
 
langchain4j-oracle
langchain4j-oracle
 
 
langchain4j-ovh-ai
langchain4j-ovh-ai
 
 
langchain4j-parent
langchain4j-parent
 
 
langchain4j-pgvector
langchain4j-pgvector
 
 
langchain4j-pinecone
langchain4j-pinecone
 
 
langchain4j-qdrant
langchain4j-qdrant
 
 
langchain4j-tablestore
langchain4j-tablestore
 
 
langchain4j-vertex-ai-gemini
langchain4j-vertex-ai-gemini
 
 
langchain4j-vertex-ai
langchain4j-vertex-ai
 
 
langchain4j-vespa
langchain4j-vespa
 
 
langchain4j-voyage-ai
langchain4j-voyage-ai
 
 
langchain4j-weaviate
langchain4j-weaviate
 
 
langchain4j-workers-ai
langchain4j-workers-ai
 
 
langchain4j
langchain4j
 
 
web-search-engines
web-search-engines
 
 
.editorconfig
.editorconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.prettierrc
.prettierrc
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
check-split-packages.sh
check-split-packages.sh
 
 
detekt.yml
detekt.yml
 
 
mvnw
mvnw
 
 
mvnw.cmd
mvnw.cmd
 
 
pom.xml
pom.xml
 
 
renovate.json
renovate.json
 
 

Repository files navigation

LangChain for Java: Supercharge your Java application with the power of LLMs

Build Status Nightly Build CODACY

Discord BlueSky 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: Since early 2023, 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 function calling to high-level patterns like Agents 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.

The documentation chatbot (experimental) 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:

  • Examples in plain Java
  • Examples with Quarkus (uses quarkus-langchain4j dependency)
  • Example with Spring Boot

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.

About

Java version of LangChain

docs.langchain4j.dev

Resources

Readme
License

Code of conduct

Code of conduct

Contributing

Contributing
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.