Field noteNov 26, 20263 min read1 source

Code and evaluation harness released at thomouvic/graph-rag-qa-pub.

In one minute

The public thomouvic/graph-rag-qa-pub repository contains reproduction code for a paper on structured prompting and context compression, with experiments on HotpotQA, MuSiQue and 2WikiMultiHopQA using KET-RAG and LightRAG with Llama models through Groq. (github.com)

What changed: A new Graph-RAG QA evaluation code and harness has been released in the thomouvic/graph-rag-qa-pub repository.

What happened

The prompting approach decomposes questions into triple-pattern queries aligned with entity-relationship context; a lightweight question-type classifier routes questions to SPARQL or generic chain-of-thought prompting, retrying after abstention. The README says the graph index is model-independent, so you can build it with the 8B model and reuse it for QA with another model without re-indexing. Included scripts calculate F1 and exact match, normalize answers, assess context coverage and compare configurations.

The repository reports graph-walk compression of about 60% through knowledge-graph breadth-first traversal without LLM calls. Main experiments sample 500 questions per dataset with seed 42. Its documented KET-RAG baseline uses about 10,000 tokens of full context versus about 4,000 with compression; these figures describe context size, not answer quality. The README lists local MiniLM-L6-v2 embeddings as free, Llama-3.1-8B on Groq at $0.05/M for indexing and budget QA, and Llama-3.3-70B at $0.59/M for standard QA.

Why it matters

The model-independent index makes it practical to separate indexing from QA-model comparisons, but that reuse applies to the graph index; LightRAG must be installed separately, and its dataset scripts run after LightRAG indexes are built.

Limits and uncertainty

The project requires Python 3.10–3.12, a Groq API key and about 4 GB of disk space, but no GPU. The README recommends Groq's paid tier for indexing speed: it says the free tier's 30 RPM rate limit causes frequent retries, compared with 1K RPM on the paid tier. LightRAG is a separate install. The experiment code is MIT-licensed, while bundled KET-RAG code and benchmark datasets retain their own licenses. The README text does not report QA accuracy results, so treat the compression figure as a context-size result rather than evidence of improved answers.

Skill to build now

Copy .env.example to .env and add a Groq API key. The documented setup command is python setup.py --dataset hotpotqa --split large_scale; it installs dependencies, patches KET-RAG, builds an index and creates dataset context. Then run python run.py --dataset hotpotqa --split large_scale --graph-compress to evaluate baseline, SPARQL and generic chain-of-thought configurations with and without graph-walk compression. Add --run-self-ask to include the Self-Ask baseline. Before cloning, note that the quick-start command points to anonymous/graph-rag-qa, not the public thomouvic/graph-rag-qa-pub repository.

Reader takeaway

The repository offers a runnable comparison of several Graph-RAG prompting and compression approaches, and reports about 60% context reduction. That is not an accuracy claim: the README text does not report QA scores. Expect Groq API setup, indexing rate limits and a clone-command mismatch before you can run it.

Evidence / sources

  1. 1github.com/thomouvic/graph-rag-qa-pub
All Field Notes

Next reads

Read next

Open the graph
  1. 01topicModelsExplore the models topic hub.
  2. 02archiveField NotesOpen the latest editorial analysis.
  3. 03sourcesSourcesSee the original sources this archive cites.
Who read this page?Machine requests, hidden until opened

Loading the privacy-safe route aggregate...

Open the JSON contract