Skip to main content
ClaudeWave
ES, Spanish
langchain4j / Tools

langchain4j

LangChain4j is an idiomatic, open-source Java library for building LLM-powered applications on the JVM. It offers a unified API over popular LLM providers and vector stores, and makes implementing tool calling (including MCP support), agents and RAG easy. It integrates seamlessly with enterprise Java frameworks like Quarkus and Spring Boot.

  • 13.3k estrellas
  • 2.6k forks
  • 1034 issues abiertos
  • Lenguaje: Java
  • Licencia: Apache-2.0
  • actualizado

Instalación

Terminal
git clone https://github.com/langchain4j/langchain4j
  1. Clone the repository.
  2. Follow the README for installation and usage instructions.

Nota editorial

LangChain4j is an open-source Java library that gives JVM developers a unified API for connecting applications to more than 20 LLM providers, including Anthropic's Claude, and more than 30 embedding stores such as Pinecone, Milvus, and pgvector. Built from scratch around Java conventions like type safety, annotations, and dependency injection, it is not a port of the Python LangChain project. The library covers low-level capabilities including prompt templating, chat memory management, and function calling, as well as higher-level patterns such as autonomous agents and full retrieval-augmented generation pipelines spanning data ingestion through retrieval. MCP support is included for tool calling. Anthropic's Claude is accessible through the unified LLM provider interface, meaning Java teams can swap Claude in or out without rewriting application code. First-class integrations exist for Quarkus, Spring Boot, Helidon, and Micronaut, making the library a practical fit for enterprise Java developers who want to add LLM capabilities to existing service architectures.

README

Resumen de Tools

README completo en GitHub

LangChain4j: idiomatic, open-source Java library for building LLM-powered applications on the JVM

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 20+ popular LLM providers and 30+ 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!

Despite the name, LangChain4j is not a Java port of LangChain (Python) — it is built for Java, not ported to it. It is an idiomatic Java library designed from the ground up around Java conventions: type safety, POJOs, annotations, interfaces, dependency injection, fluent APIs, and first-class integrations with Quarkus, Spring Boot, Helidon, and Micronaut. Its API, internals, and release cycle are independent of the Python LangChain project.

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:

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.

Topics
anthropicchatgptchromaembeddingsgeminigpthuggingfacejavalangchainllamallmllmsmilvusollamaonnxopenaiopenai-apipgvectorpineconevector-database
Preguntas frecuentes

Lo que la gente pregunta sobre langchain4j

¿Qué es langchain4j/langchain4j?

langchain4j/langchain4j es tools para el ecosistema de Claude AI. LangChain4j is an idiomatic, open-source Java library for building LLM-powered applications on the JVM. It offers a unified API over popular LLM providers and vector stores, and makes implementing tool calling (including MCP support), agents and RAG easy. It integrates seamlessly with enterprise Java frameworks like Quarkus and Spring Boot. Tiene 13.3k estrellas en GitHub y su última actualización registrada es del 2026-10-23.

¿Cómo se instala langchain4j?

Puedes instalar langchain4j clonando el repositorio (https://github.com/langchain4j/langchain4j) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar langchain4j/langchain4j?

Nuestro agente de seguridad ha analizado langchain4j/langchain4j y le ha asignado un Trust Score de 100/100 (tier: Verified). Revisa el desglose completo de comprobaciones superadas y flags en esta página.

¿Quién mantiene langchain4j/langchain4j?

langchain4j/langchain4j es mantenido por langchain4j. La última actividad registrada en GitHub es del 2026-10-23, con 1034 issues abiertos.

¿Hay alternativas a langchain4j?

Sí. En ClaudeWave puedes explorar tools similares en /categories/tools, ordenados por popularidad o actividad reciente.

¿Mantienes este repo? Muestra su Trust Score en tu README

La insignia muestra el Trust Score y el veredicto actuales de este repositorio y enlaza a esta página. Sigue los datos del catálogo: nadie puede comprar ni editar la puntuación que enseña.

ClaudeWave Trust Score for langchain4j/langchain4j
Markdown (README)
[![ClaudeWave Trust Score for langchain4j/langchain4j](https://claudewave.com/api/badge/langchain4j-langchain4j)](https://claudewave.com/en/repo/langchain4j-langchain4j)
HTML
<a href="https://claudewave.com/en/repo/langchain4j-langchain4j"><img src="https://claudewave.com/api/badge/langchain4j-langchain4j" alt="ClaudeWave Trust Score for langchain4j/langchain4j" width="320" height="64"></a>

Qué significa la insignia y cómo se calcula la puntuación

Alternativas

Ver todas