← Back to Leaderboard
Llangchain-ai

langchain-ai/langchain-elastic

Python adapters connecting LangChain retrieval, state, and caching to Elasticsearch

View on GitHub ↗
Engineering Health (Methodology)
A · 82/100
Maintenance Activity
● Updated yesterday
Latest Release
libs/elasticsearch/v1.0.0
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption16/25
Release Cadence11/20
License Clarity20/20
MCP
Total Stars
★ 79
24h Growth
+0
7d Growth
+1
Forks
36

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

langchain-ai/langchain-elastic Star History (2024-03-24 - 2026-12-04) ALL-TIME STAR HISTORY (2024-03 – 2026-12) +78 in 985d · avg +0/day 83 42 0 2024-03-24: ★ 12024-05-25: ★ 192024-07-27: ★ 362024-09-28: ★ 402024-11-30: ★ 432025-02-01: ★ 502025-04-05: ★ 532025-06-07: ★ 562025-08-09: ★ 572025-10-11: ★ 622025-12-13: ★ 672026-02-14: ★ 732026-04-18: ★ 742026-06-20: ★ 752026-08-22: ★ 762026-10-24: ★ 782026-12-04: ★ 79 ★ 79 2024-03 2025-07 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

langchain-elastic is a Python integration library built around one package, langchain-elasticsearch. LangChain application code calls the adapter appropriate to the task, and Elasticsearch provides the backend. ElasticsearchStore covers vector storage, while ElasticsearchRetriever exposes retrieval as a distinct application interface.

ElasticsearchEmbeddings, ElasticsearchChatMessageHistory, ElasticsearchCache, and ElasticsearchEmbeddingsCache give embeddings and application state their own integration points. An application can adopt just the adapters it needs rather than wiring up all six. The root .mcp.json file does not establish a bundled MCP server or transport; the concrete runtime surface is the Python package.

Key Capabilities & Differentiators

The package covers vector storage, retrieval, embeddings, chat message history, application caching, and embedding caching against Elasticsearch. v0.4.0 added vector dimensions and metadata_mappings to ElasticsearchStore with tests. Those controls matter when an existing index has a fixed vector dimension or when metadata fields need a deliberate mapping.

v1.0.0 standardized AsyncElasticsearchCache and AsyncElasticsearchEmbeddingsCache and added run_unasync_check to CI. That is concrete evidence of async maintenance for the two cache classes, not a guarantee of async parity across all adapters. The supported model families, Elasticsearch version matrix, and retrieval performance are not established.

Trade-offs & Limitations

Compared with calling Elasticsearch directly, this adapter is a better fit when LangChain interfaces are already the application boundary: it can reduce the glue code your team owns. Direct client integration gives the application more control over Elasticsearch-specific requests and responses, at the cost of owning the integration code and its tests.

Using the same backend for retrieval, chat history, and caches can simplify the infrastructure footprint, but it can also put workloads with different retention and throughput needs on one cluster. Plan index lifecycles and workload isolation rather than assuming the adapters handle them. MIT licensing applies to the Python integration; review Elasticsearch distribution and service terms separately.

Hardware & Deployment Guide

Run langchain-elasticsearch in the Python environment that hosts the LangChain application and provide a reachable Elasticsearch backend. A self-hosted deployment still requires a separately operated Elasticsearch instance; the Python package is not a standalone offline search engine. Confirm Python and Elasticsearch version compatibility, connection security, and embedding execution requirements for the deployment you intend to run.

v0.4.0 expanded index configuration and updated the test suite. v1.0.0, released on December 16, 2025, changed telemetry, included refactoring, and standardized the async cache classes. Before upgrading, test existing index mappings, sync and async cache behavior, and telemetry settings. Size the Python application, Elasticsearch cluster, and any embedding compute separately.

Package boundary: One MIT-licensed Python package integrates LangChain with Elasticsearch.
Retrieval: ElasticsearchStore and ElasticsearchRetriever expose separate interfaces for vector storage and retrieval.
Application state: Dedicated adapters cover chat message history, application caching, and embedding caching.
Index configuration: v0.4.0 added vector dimensions and metadata_mappings to ElasticsearchStore, with tests.
Async maintenance: v1.0.0 standardized AsyncElasticsearchCache and AsyncElasticsearchEmbeddingsCache and added run_unasync_check to CI.
MCP scope: A root .mcp.json file is present, but it does not establish a runnable MCP server or transport.
Best For

Teams already using LangChain and Elasticsearch that want to integrate vector retrieval, chat history, or caching without maintaining every adapter themselves.

Skip If

You need a standalone RAG service, rely on a different search backend, or need direct control over most Elasticsearch requests and responses.

Reviewed on 2026-12-03 · Grounded in GitHub README, root file tree & releasesMethodology

Comparison vs. Top RAG, Data & Memory Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
langchain-elastic ★79+1PythonMITPython adapters connecting LangChain retrieval, state, and caching to Elasticsea
auto-ontology19.1k+3.7kPythonApache-2.0An ontology framework that grounds agent-generated SQL in reviewed business defi
llama_index53.1k+104PythonMITA modular Python SDK for document ingestion, indexing, and RAG
langextract39.5k+85PythonApache-2.0Python SDK for extracting structured data with traceable source spans

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/langchain-ai/langchain-elastic.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

langchain-ai/langchain-elastic Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about langchain-elastic

How does the package fit into an existing LangChain application?

Choose the adapter by responsibility: ElasticsearchStore for vector storage, ElasticsearchRetriever for retrieval, and separate adapters for embeddings, chat history, and caching. They are not a single application service. The MCP tag and the root .mcp.json file do not establish that the package ships an MCP server.

Does this integration require a GPU, and how should I size it?

There is no verified GPU or VRAM requirement for the Python adapter. Size the application workers, Elasticsearch cluster, and embedding execution separately. Index size, vector dimensions, and concurrent traffic are more useful sizing inputs than the adapter alone. If your chosen embedding setup uses a GPU, size its memory for that workload.

Can we use it commercially and run Elasticsearch ourselves?

The Python integration is MIT-licensed, which generally permits commercial use subject to its notice requirements. That license does not cover Elasticsearch itself or every feature of a chosen distribution or hosted service. Check those terms separately before self-hosting or redistributing a combined deployment.

When should we use the Elasticsearch client directly instead?

Choose the adapter when your application already uses LangChain interfaces and you want to avoid maintaining Elasticsearch glue code. Use the Elasticsearch client directly when Elasticsearch-specific queries, mappings, or response handling dominate the integration. Test the most demanding production query and mapping before committing.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining langchain-ai/langchain-elastic? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature langchain-ai/langchain-elastic on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare