GraphCite

Multi-hop question answering over a knowledge graph, with citations that are checked rather than trusted.

Documents become a Neo4j knowledge graph; questions are answered by walking the graph across documents; every statement in the answer is then verified against the numbered source sentences it cites. By Madhur Kumar Rana.

View on GitHub CI status Architecture

This page is a showcase. The full app needs Neo4j and a local Ollama model; a no-services demo mode (scripted stand-in model, bundled fictional documents) runs with python -m graphcite.demo or streamlit run app.py.

The interface

Demo mode, answering a two-hop question. Every claim in the answer is checked against the numbered source sentence it cites.

GraphCite interface showing an answer with 100% of claims supported by their citations

The idea

Some questions span documents: "Which company did the founder of Aurora Labs work for before, and what did that company acquire?" needs a chain of facts from three sources. GraphCite merges entities across documents and expands from the entities named in the question, so each hop carries the sentence it came from.

Knowledge graph of the bundled demo documents: Aurora Labs, Maria Santos, Volta Systems, Ionex and related entities

Graph built from three fictional demo documents.

What makes the citations verifiable

Run it

git clone https://github.com/madhur0770/GraphCite.git
cd GraphCite
python -m graphcite.demo        # no dependencies, no services
pip install -r requirements.txt
streamlit run app.py            # demo mode by default

Live mode: docker compose up --build starts the app and Neo4j; point it at a local Ollama model.

Engineering evidence

Known limitations