langchain-graph-retriever
LangChain retriever for traversing document graphs on top of vector-based similarity search.
Decision gist · record as of 2026-08-14
Yes, if you need graph-aware document retrieval in a LangChain application and are comfortable with a Beta-status library that has not been actively developed for several months. The package has low install friction, permissive licensing, and no known vulnerabilities. However, verify that the graph traversal strategies and vector store adapters you need are production-ready before deploying to critical systems.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; also requires a configured vector store (e.g., Chroma) and an embedding function.
- Low install friction with a pure-Python wheel.
- Maintenance status is aging—last commit was 2025-05-05 and the package is 497 days past its initial release, though the repository remains active and not archived.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing commercial use, modification, and distribution with minimal restrictions beyond attribution and liability disclaimers.
last release 2025-04-04 (497 days) · last repo commit 2025-05-05 · 91 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 186,653 downloads/mo, #9,979 on PyPI
Alternatives
Verify before relying
pip install langchain-graph-retriever
from langchain_graph_retriever import GraphRetriever
from langchain_core.vectorstores import Chroma
vector_store = Chroma(embedding_function=your_embedding_function)
retriever = GraphRetriever(store=vector_store, edges=[("keywords", "keywords")])
documents = retriever.retrieve("What is the capital of France?")- Whether graph traversal strategies (Eager, MMR) are fully documented and production-ready.
- Performance characteristics when working with large document graphs.
- Support status for the listed vector store adapters (AstraDB, Cassandra, Chroma, OpenSearch).
What it is and what it does
LangChain Graph Retriever extends LangChain's retriever framework by combining vector-based similarity search with graph traversal. Instead of treating documents as isolated results, it models them as nodes in a graph and explores relationships between them using strategies like breadth-first search or Maximal Marginal Relevance. This is useful for retrieval-augmented generation (RAG) systems where document relationships matter—for example, retrieving not just the most similar document but also semantically related neighbors.
The package depends on LangChain's core abstractions (langchain-core), graph utilities (networkx), and standard Python libraries (pydantic, immutabledict, typing-extensions). It supports both synchronous and asynchronous retrieval workflows and integrates with multiple vector stores. The codebase is in Beta status and has not seen active development recently, though the repository remains maintained.
Use it for
- Build RAG pipelines that retrieve semantically related document clusters instead of isolated top-k results.
- Explore document relationships in knowledge graphs where metadata edges define connections between records.
- Implement graph-aware search in applications like research paper discovery or knowledge base navigation.
- Combine vector similarity with graph structure to improve retrieval relevance in multi-hop reasoning tasks.
- Integrate graph traversal into LangChain agents that need to explore connected document sets.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need graph-aware document retrieval in a LangChain application and are comfortable with a Beta-status library that has not been actively developed for several months.
The package has low install friction, permissive licensing, and no known vulnerabilities. However, verify that the graph traversal strategies and vector store adapters you need are production-ready before deploying to critical systems.
Install
langchain-graph-retriever on PyPI
Before you install
Low install friction with a pure-Python wheel. Maintenance status is aging—last commit was 2025-05-05 and the package is 497 days past its initial release, though the repository remains active and not archived.
Requires Python 3.10 or later; also requires a configured vector store (e.g., Chroma) and an embedding function.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial use, modification, and distribution with minimal restrictions beyond attribution and liability disclaimers.
Quickstart
pip install langchain-graph-retriever
from langchain_graph_retriever import GraphRetriever
from langchain_core.vectorstores import Chroma
vector_store = Chroma(embedding_function=your_embedding_function)
retriever = GraphRetriever(store=vector_store, edges=[("keywords", "keywords")])
documents = retriever.retrieve("What is the capital of France?")
Verify before relying
- Whether graph traversal strategies (Eager, MMR) are fully documented and production-ready.
- Performance characteristics when working with large document graphs.
- Support status for the listed vector store adapters (AstraDB, Cassandra, Chroma, OpenSearch).
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 7 packagesbackoffgraph-retrieverimmutabledictlangchain-corenetworkxpydantictyping-extensions |
| Maintenance | Aging 497 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 186,653 / month, #9,979 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Topic :: Scientific/Engineering :: Artificial IntelligenceTopic :: Scientific/Engineering :: Information AnalysisTopic :: Software Development :: Libraries :: Python Modules |
Evidence: langchain_graph_retriever-0.8.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “langchain graph rag”
- langchain-graph-retrieverRetrieves documents from a graph structure using vector similarity…
- ragstack-ai-knowledge-storeStores and retrieves LangChain documents using a hybrid graph…
- graph-retrieverCombines vector similarity search with graph traversal over metadata…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also deepsearch-glm · graph-retriever · ragstack-ai-knowledge-store · langchain-plaid · langchain-milvus · langchain-chroma · langchain-mongodb · langchain-oracledb · lightrag-hku · kuzu