qmetrics.net

LangChain4j

Java toolkit for LLM apps and vector retrieval

LangChain4j screenshot

LangChain4j unifies LLM and embedding-store APIs on the JVM and ships patterns for tools, agents, RAG, and chat memory.

Overview

LangChain4j is a Java library for integrating large language models into JVM applications. It wraps many commercial and self-hosted model providers and vector databases behind one API so components can be swapped without rewriting application code.

The library collects common building blocks identified in LLM application work: prompt templating, chat memory, structured output parsing, function and tool calling with MCP support, agents, and retrieval-augmented generation pipelines from ingestion through query.

It is designed for Java conventions such as type safety, interfaces, dependency injection, and integrations with Quarkus, Spring Boot, Helidon, and Micronaut. It is not a port of the Python LangChain project but an independent Java-first design.

Documentation, a separate examples project, and a documentation chatbot experiment support learning. Core functionality is usable now while additional features continue to land.

Key features

  • Unified LLM provider API
  • Thirty-plus embedding store integrations
  • Tool calling and MCP support
  • Agents and RAG pipelines
  • Chat memory abstractions
  • Prompt templating and output parsing
  • Quarkus and Spring Boot integration
  • Ready-made pattern implementations

Use cases

  • Java chatbots and assistants
  • Enterprise RAG over internal data
  • Switch LLM vendors with one codebase
  • Expose Java methods as model tools

Tags

Similar software

Langflow

Visual low-code builder for AI agents and workflows

Langflow is a visual builder for AI agents and workflows. Flows can be customized in Python and deployed as an API or as an MCP server, with support for major LLMs and vector databases.

★ 157k⟳ todayMIT
Open Source Alternative to:Relevance AIVoiceflow

LangChain

Framework for agents and LLM-powered applications

LangChain helps developers chain interoperable components and integrations to build agents and LLM-powered applications. It offers a standard interface for models, embeddings, vector stores, and related pieces.

★ 150.1k⟳ 2 days agoMIT

JeecgBoot

Enterprise AI low-code platform on Java and Vue

JeecgBoot is an AI low-code platform with permissions, workflows, reporting, and built-in AI apps. Teams deploy it privately to generate CRUD, forms, and business modules quickly.

★ 48.6k⟳ 16 days agoApache-2.0

Agno

Platform for building, running and managing AI agents in your own cloud

Agno is an agent platform for building agents, teams and workflows, then running them as durable services with API and MCP access. It runs in your own cloud and includes a control UI.

★ 43.3k⟳ todayApache-2.0

Mastra

TypeScript framework for AI agents and apps

Mastra helps teams build AI agents, workflows, and apps in TypeScript with model routing, tools, memory, MCP, and observability. It embeds in React, Next.js, and Node or runs as its own server.

★ 29.9k⟳ todayApache-2.0 · open core

AI SDK

TypeScript toolkit for AI applications and agents

The AI SDK is a provider-agnostic TypeScript library for building AI-powered applications and agents with popular UI frameworks and Node.js runtimes.

★ 28.3k⟳ todayApache-2.0