Reducing LLM Hallucinations
How grounded retrieval, source provenance, and an explicit abstention path make answers verifiable instead of guessed.
Key Highlights
- #1 on GraphRAG-Bench — 66.09 ACC on Novel and 76.87 on Medical (benchmark)
- Simple API —
ingest()+finalize()+completion()with sensible defaults - Documents and tables in one graph — a CSV row and a prose mention of the same thing are one node, with declared column types (Structured Ingestion)
- Incremental and crash-safe — re-ingest only what changed, and
finalize()deduplicates only the new entities, with an LLM judge - 100+ LLM providers via LiteLLM (OpenAI, Azure, Anthropic, Cohere, Ollama, and more)
- Fully modular — swap chunking, extraction, resolution, retrieval, reranking and dedup-judge strategies
- Production-ready — async-first, connection pooling, retries, circuit breaker, batched writes
- Full provenance — every answer traces back to its source document and chunk
Quick Start
GraphRAG SDK needs FalkorDB 4.20 or later (6.0.x is supported too).finalize() runs once after a batch of ingests. It checks the entities added since the last call, plus any entities an earlier run left pending, and asks an LLM judge which candidates are the same entity.
Next Steps
- Getting Started — Full tutorial from install to first query
- Architecture — How the ingestion and retrieval pipelines work
- Structured Ingestion — Tables (CSV, TSV) declared on the ontology
- Reducing LLM Hallucinations — Grounded retrieval, provenance, and abstention
- Strategies — All swappable strategy ABCs and built-in options
- Ontology Discovery — Auto-draft a schema from a corpus (
method="llm"ormethod="grounded"with DBpediaCatalog) - Ontology Evolution — Safely change schema on a populated graph
- Incremental Updates —
update(),delete_document(),apply_changes(),finalize() - Configuration — Connection, timeouts, chunking, retrieval and dedup settings
- Benchmark — Methodology and reproduction instructions
- API Reference — Full API documentation