Skip to main content
Version: 0.0.8 (stable)

Installation

To use Agentic GraphRAG, install agentic-graphrag from your Python package manager, for example pip:

pip install agentic-graphrag

If you are using uv, create a virtual environment and install the package into it:

uv venv
uv pip install agentic-graphrag

To install uv, see the installation docs.

Agentic GraphRAG needs Python 3.11 or newer and a graph server to store the graph and its indexes. Use Neo4j 5.23 or later, or FalkorDB 4.22.2 or later. Install the matching driver extra and configure the backend. The Quickstart uses Neo4j.

The base install includes the loaders, the chunkers, the data models, and the default embedder. Storage, extraction, the agent, and the MCP server are extras.

Alternative PyTorch distributions

The embed-local, extract, and docling extras depend on PyTorch. Depending on your hardware, pick a different distribution of torch, for example a CPU-only build or a build for another accelerator. The PyTorch install page lists all the ways to install torch.

When you install with uv, add --torch-backend=auto. uv looks for a GPU driver. It installs the build that matches the driver, or the CPU build when it finds no GPU.

uv pip install "agentic-graphrag[neo4j,extract]" --torch-backend=auto

To always install the CPU build, use --torch-backend=cpu. Use this flag with uv pip install.

What the base install includes​

The base install has the parts of Agentic GraphRAG that need no database, no GPU, and no LLM client:

  • The data models, such as the graph schema and the search result.
  • Loaders for files, directories, and raw text. Docling reads Markdown, HTML, AsciiDoc, Word, PowerPoint, and Excel files without a model. Other loaders read plain text, XML, CSV, and JSON.
  • The section chunker, which packs the sections of every document into chunks.
  • The default embedder, which runs ONNX embedding models on the CPU.
  • The OpenTelemetry API calls that trace each step. Without the observability extra, these calls do nothing.

To build and search a graph, you also need a graph store and an extractor. Each one is an extra.

Available extras​

Other parts of Agentic GraphRAG need more third-party packages. These packages install only if you select them as extras. If an extra is missing, Agentic GraphRAG raises an error that names the extra to install.

Install the extras with pip install "agentic-graphrag[NAME1,NAME2]" or uv pip install "agentic-graphrag[NAME1,NAME2]".

ExtraDescription
neo4jInstalls the driver for Neo4j, including Aura. The server holds the graph, full-text indexes, and vector indexes.
falkordbInstalls the driver for FalkorDB. The server holds the graph, full-text indexes, and vector indexes.
qdrantInstalls the optional Qdrant client for an exclusive external vector index. A Neo4j or FalkorDB graph store is still required. Choose where vectors live.
milvusInstalls PyMilvus (pymilvus>=3.0.2) for external dense and BM25 vectors, including Zilliz Cloud. The compose files in docker/ run Milvus v3.0.1. A graph-store extra is still required.
weaviateInstalls the Weaviate client for exclusive external vector storage. A graph backend is still required.
embed-localInstalls Sentence Transformers, to embed with models that the default embedder does not support.
extractInstalls GLiNER 2.5, to run entity extraction on your machine.
llmInstalls BAML, to extract entities and review matches with an LLM.
agentsInstalls LangGraph, DeepAgents, and the LangChain OpenAI client for the built-in agent.
mcpInstalls the MCP SDK for the agrag-mcp server.
doclingInstalls the Docling layout and table models, to read PDF and image files.
observabilityInstalls the OpenTelemetry SDK, the OTLP exporter, and the asyncio and LangChain instrumentation.
communityInstalls Leiden community detection.
evalInstalls DeepEval, AgentEvals, er-evaluation, scikit-learn, the LangChain OpenAI client, and OpenTelemetry tracing support for the metrics in agrag.eval.
schema-formatsInstalls rdflib for OWL and RDFS Turtle imports.

Extras by goal​

The combinations use Neo4j. Replace neo4j with falkordb to use FalkorDB, and keep the other extras unchanged. Compare backend behavior before choosing.

GoalExtras
Build a first graph (the Quickstart)neo4j,extract
Also ask questions with the agentneo4j,extract,agents
Give an MCP client access to the graphneo4j,mcp
Read PDF and image filesAdd docling
Extract with an LLM instead of a local modelneo4j,llm
Find communities of related entitiesAdd community
Record tracesAdd observability
Measure answer qualityAdd eval and agents

Next steps​

Follow the Quickstart to build your first graph.