This guide walks you through everything needed to get the Agentic Graph RAG pipeline running locally. By the end you will have cloned the repository, installed all Python dependencies withDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/avnlp/agentic-med-diag/llms.txt
Use this file to discover all available pages before exploring further.
uv, started Neo4j and Milvus in Docker, selected a Graph RAG backend, and executed your first multi-hop clinical query. The whole process takes under ten minutes on a machine with Docker already installed.
The codebase is actively being developed and the full implementation will be released soon. The usage snippet in Step 7 is illustrative of the described architecture and will be updated to reflect the final API once the code ships.
Prerequisites
Make sure the following tools are available on your machine before proceeding:
You will also need access to an LLM API (for example, an OpenAI API key) to power the reasoning steps inside the pipeline.
| Tool | Purpose | Minimum Version |
|---|---|---|
| Python | Runtime for all pipeline code | 3.10+ |
| uv | Fast Python package and project manager | latest |
| Docker | Runs Neo4j and Milvus containers locally | any recent version |
| Git | Clones the repository | any |
Install Dependencies
This project uses uv for dependency management. If you do not have
uv installed yet, install it first, then let it sync the project’s locked dependencies:uv sync reads the project’s lockfile and installs all dependencies into a project-local virtual environment — no manual venv creation is required.Start Neo4j
Neo4j stores the entity/relationship knowledge graph built from your medical documents. Start a local instance with Docker:Once the container is running, the Neo4j Browser is available at http://localhost:7474. The Bolt connection used by the pipeline listens on port
7687.Start Milvus
Milvus stores dense vector embeddings for the semantic retrieval channel. Start a standalone Milvus instance with Docker:The Milvus gRPC endpoint used by the pipeline listens on port
19530.Choose a Backend
The pipeline supports four Graph RAG backends, each with a different graph construction and retrieval strategy:
For this quickstart, use LightRAG — it is the most general-purpose backend and requires no additional configuration beyond what you have already set up.
| Backend | Retrieval mode | Best for |
|---|---|---|
| LightRAG | Hybrid (KG traversal + dense vector) | General-purpose, balanced depth and speed |
| MiniRAG | Light (nearest-neighbourhood only) | Resource-constrained environments |
| PathRAG | Hybrid (two-tier hierarchy, path-based) | Questions requiring multi-hop chain-of-evidence |
| HyperGraphRAG | Hybrid (hyperedge traversal + dense vector) | Group interactions among multiple medical concepts |
Run a Query
Once the code is released, you will be able to run a multi-hop medical query through the pipeline. The following snippet illustrates the intended usage based on the described architecture:The pipeline will decompose the question into sub-queries, run parallel semantic and relational retrieval hops, and synthesize a final grounded answer.
Next Steps
Now that your environment is running, explore the deeper concepts behind the system:- Architecture — understand the LangGraph state machine, the fan-out/fan-in pattern, and how the dual retrieval channels are orchestrated.
- Backends Overview — compare LightRAG, MiniRAG, PathRAG, and HyperGraphRAG in detail, including their indexing strategies, retrieval modes, and context-filter logic.