FalkorDB extends Valkey with native graph database capabilities

Learn more →
FalkorDB
Solutions
Use cases
Why FalkorDB
Developers

GraphRAG That
Gets It Right.

A specialized toolkit for building GraphRAG systems: knowledge graphs, ontology management and LLMs in one pipeline. Available as a developer SDK or a ready-to-use GraphRAG Server.

Open source Documents and tables #1 on GraphRAG-Bench
Sources
policy.pdf
accounts.csv
filings.md
Knowledge graph 5 entities · 8 relations
Question Which parties does Rule 7 bind?
Answer 3 sources cited

Northwind Ltd and Acme Holdings, through their 2025 filings.

policy.pdf chunk 14
filings.md chunk 3
accounts.csv row 112

#1 on GraphRAG-Bench

GraphRAG SDK has the top overall score on the public GraphRAG-Bench leaderboard, 16 points above vector RAG with reranking.

Overall accuracy
71.48 FalkorDB GraphRAG SDK
Next best 66.12
Vector RAG 55.39
Overall accuracy on GraphRAG-Bench (higher is better) Novel Medical Overall
FalkorDB GraphRAG SDK
66.09 76.87 71.48
G-reasoner
58.94 73.30 66.12
AutoPrunedRetriever
63.72 67.00 65.36
HippoRAG2
56.48 64.85 60.67
Fast-GraphRAG
52.02 64.12 58.07
Vector RAG (with rerank)
48.35 62.43 55.39
LightRAG
45.09 62.59 53.84
HippoRAG
44.75 59.08 51.92
MS-GraphRAG (local)
50.93 45.16 48.05

Overall is the mean of the Novel and Medical dataset scores. FalkorDB was scored in August 2026 with gpt-4o-mini; the other systems' numbers come from the published leaderboard.

See the methodology →

What is GraphRAG?

GraphRAG is a retrieval-augmented generation approach that uses a knowledge graph to retrieve entities, relationships and multi-hop context for an LLM. Unlike vector-only RAG, GraphRAG reasons over the connections between facts, which improves traceability and answer quality on complex questions.

Question Which suppliers of our top three products share a director with a sanctioned entity?
Vector RAG Nearest text chunks
suppliers.pdf · chunk 12 0.83
registry.csv · row 88 0.81
sanctions.md · chunk 4 0.79

Context is flattened

GraphRAG Entities, relationships and multi-hop paths

A path through the graph

FalkorDB GraphRAG-SDK

FalkorDB's GraphRAG-SDK supplies the four pieces that pipeline needs: ontology discovery from your raw data, knowledge-graph construction from documents and tables, multi-path retrieval that combines graph traversal with vector search, and grounded answers that cite their sources. Use it as a Python library, or use GraphRAG Server to upload documents and query them without writing code.

Why FalkorDB for GraphRAG

Multi-hop retrieval

Traversals run as sparse matrix operations in memory, keeping relationship-heavy queries at low latency.

Retrieval docs →

Built for agents

Give Claude Code, Cursor or any MCP client read-only tools on your graph: hybrid search over entities, relations and passages, with numbered evidence and a citation check.

Agent tools →
MCP tool call search("Rule 7") Evidence
policy.pdf chunk 14
filings.md chunk 3
accounts.csv row 112

Citation check passed

Automatic ontology discovery

Detected from raw and structured data, then reviewable and editable before the graph is built.

Ontology docs →

Native knowledge-graph construction

Entities and relationships written straight into FalkorDB, with no separate graph-modelling step.

Read the guide →

LLM-agnostic

OpenAI, Azure OpenAI, Anthropic, Gemini and 100+ other providers through LiteLLM or OpenRouter. Swap providers without touching the pipeline.

Supported models →

Open source

Apache 2.0, and developed in the open on GitHub.

View repository →

GraphRAG vs vector RAG

GraphRAG is not always the answer. Where a question resolves inside a single passage, vector RAG is cheaper and sufficient.

Vector RAG

Example question "What does our refund policy say about digital goods?"
Retrieval unit Nearest text chunks
Multi-hop questions Weak. Context is flattened
Explainability Chunk provenance only
Setup cost Lowest. Embed and index
Best fit Single-passage lookup, FAQ, search

GraphRAG

Example question "Which suppliers of our top three products share a director with a sanctioned entity?"
Retrieval unit Entities, relationships and multi-hop paths
Multi-hop questions Strong. Traversal follows the links
Explainability A path through the graph
Setup cost Ontology plus graph construction
Best fit Relationship-heavy, regulated, aggregate questions

Using agents? GraphRAG SDK gives them the graph as tools over MCP, so your agent retrieves connected, cited evidence instead of loose chunks.

Agentic retrieval →

Knowledge-graph RAG and GraphRAG describe the same retrieval model; GraphRAG adds the automated construction and orchestration around it.

How it works

Step 01

Remove the barrier of ontology creation

Transform raw data into structured knowledge models automatically.

Use generative AI to detect and construct ontologies from your datasets Review, modify and iterate on detected ontologies to optimize graph structures Define custom parameters to scope and control ontology detection processes
# draft an ontology from your files draft = await Ontology.from_sources( ["policy.pdf", "filings.md"], llm) print(len(draft.entities)) # 14 # review and edit, then commit await rag.set_ontology(draft)
Detected ontology
Account
Policy
Rule
Party
Filing
+ edit
Step 02

Handle structured and unstructured data

Bring documents and tables into one graph through one ingestion path.

Ingest PDF, Markdown and plain-text documents, and map CSV tables onto typed entities Re-ingest only the files that changed, and the graph updates in place Utilize genAI capabilities to construct knowledge graphs efficiently
Step 03

Get grounded answers you can trace

Answer from connected evidence, and show where every fact came from.

Multi-path retrieval combines graph traversal with vector search over entities, relationships and passages Every entity links back to the passages it was mentioned in Check the retrieved context before answering, and decline when the evidence is insufficient
Question

Which parties does Rule 7 bind?

Answer

Northwind Ltd and Acme Holdings, through their 2025 filings.

Sources
policy.pdf chunk 14
filings.md chunk 3
accounts.csv row 112

Get started

Start FalkorDB locally, install the SDK, and ingest your first file. The FalkorDB Browser on port 3000 shows the graph as it builds.

01 · Run FalkorDB
$ docker run -d -p 6379:6379 -p 3000:3000 --name falkordb falkordb/falkordb:v4.22.2
02 · Install the SDK
$ pip install "graphrag-sdk[litellm]"
03 · Ingest and ask
from graphrag_sdk import GraphRAG, ConnectionConfig, LiteLLM, LiteLLMEmbedder # inside an async function, with OPENAI_API_KEY set async with GraphRAG( connection=ConnectionConfig(host="localhost", graph_name="docs"), llm=LiteLLM(model="openai/gpt-5.5"), embedder=LiteLLMEmbedder(model="openai/text-embedding-3-large", dimensions=256), ) as rag: await rag.ingest("notes.txt") await rag.finalize() answer = await rag.completion("Who signed the lease?") print(answer.answer)

How teams use GraphRAG

Stay ahead of financial regulations with GraphRAG-SDK.

01

Extract key requirements

NLP-driven analysis organizes regulatory mandates into a knowledge graph for precise insights.

02

Map regulations to processes

Link policies to workflows, ensuring compliance across departments.

03

Identify compliance gaps

Query relationships to spot misalignments and track updates.

04

Suggest improvements

Get data-driven recommendations to refine policies, training, and risk management.

Detect and analyze financial crime with GraphRAG-SDK.

01

Trace fund flows

Visualize transaction networks across institutions to track money movement with clarity.

02

Identify shell companies

Uncover hidden relationships and detect illicit entities within financial ecosystems.

03

Flag suspicious patterns

Use graph-based analysis to detect anomalies, refine detection over time, and scale AML efforts effectively.

Deliver precise financial recommendations using GraphRAG-SDK.

01

Analyze customer data

Structure financial records and life events into knowledge graphs for relevant, personalized insights.

02

Map product relationships

Clearly visualize connections between products, customer segments, and risk profiles.

03

Tailored recommendations

Leverage graph reasoning to offer transparent, explainable suggestions, boosting trust and satisfaction.

GraphRAG FAQ

The basics
What is GraphRAG and how is it different from traditional RAG?

GraphRAG retrieves from a knowledge graph of entities and relationships instead of isolated text chunks. Standard RAG returns the passages that look most similar to the question. GraphRAG returns a connected subgraph, so questions that depend on several linked facts get answered correctly, and you can see why.

How does GraphRAG work, step by step?

Draft an ontology from your data, or write one. Ingest documents and tables and map them onto entities and relationships. Store the graph in FalkorDB. At query time, find the entities the question is about, follow their relationships, and pass the connected facts and their source passages to the LLM as context.

Does GraphRAG require a graph database?

In practice, yes. Retrieval follows relationships, and that needs a graph engine to stay fast. FalkorDB stores the constructed graph and runs those multi-hop queries in memory.

GraphRAG vs vector RAG
What are the benefits of GraphRAG over vector-only RAG?

Multi-hop and aggregate questions get answered correctly. Every answer traces back to specific entities and relationships, so you can audit it. Similar-but-unrelated chunks stop leaking into context, and structured records sit alongside unstructured documents in one retrieval step.

What are the current limitations or challenges of GraphRAG?

Building the graph is an extra step, and the ontology sets a ceiling on answer quality. Keeping it current needs a pipeline. Automated ontology discovery and incremental updates cut most of that work, but it is still more design than loading chunks into a vector index.

How does GraphRAG-SDK reduce hallucinations?

Most hallucinations in RAG start as retrieval failures: the model is asked to answer from context that never held the answer. The SDK retrieves connected evidence by following relationships, links every entity back to the passages it was mentioned in, and can return that context with the answer, so your application can check claims or decline to answer when the evidence is insufficient.

SDK and Server
What's the difference between using the GraphRAG-SDK and the GraphRAG Server?

The SDK is a Python library you build into your application: you control the ontology, chunking, prompts and retrieval. GraphRAG Server is a running service: upload documents and query the graph, no code. Both store the graph in FalkorDB.

What data formats does the GraphRAG-SDK support?

PDF, Markdown and plain-text documents are built in, and CSV tables map onto typed entities when you declare them in the ontology. Other sources plug in through a custom loader. Tables and documents land in one graph, so a single query can join a row in a table to a clause in a document.

Can I use the GraphRAG-SDK with my own LLM?

Yes. The SDK reaches models through LiteLLM or OpenRouter, so OpenAI, Azure OpenAI, Anthropic, Gemini and 100+ other providers work out of the box. For a model you host yourself, subclass the LLM interface and keep the rest of the pipeline unchanged.

Is the FalkorDB GraphRAG-SDK open source?

Yes. The SDK is open source under the Apache 2.0 license and developed in the open on GitHub, so you can read the ontology discovery and retrieval code, extend it, or vendor it into your own stack.

Performance and agents
How does GraphRAG-SDK keep retrieval fast?

FalkorDB runs traversals as sparse matrix operations in memory rather than pointer chasing, and entities and relationships are indexed for lookup and vector search, so the graph queries behind each retrieval return in milliseconds. End-to-end answer time is usually set by the LLM call.

Can my AI agent use GraphRAG-SDK?

Yes. Since version 1.6, the SDK gives an agent you already run a set of graph tools: search for entities, relations and passages, check that a draft answer cites the evidence it received, and, if you allow it, ingest new files. The same tools run as an MCP server for Claude Code, Cursor and other MCP clients. The SDK runs no agent loop of its own: your agent plans the steps and writes the answer.

Build fast and accurate GenAI apps with GraphRAG SDK at scale

FalkorDB offers an accurate, multi-tenant RAG solution based on our low-latency, scalable graph database technology, built for technical teams handling complex, interconnected data in real time.