---
type: "post"
id: "code-and-evaluation-harness-released-at-thomouvic-graph-f96c80"
slug: "code-and-evaluation-harness-released-at-thomouvic-graph-f96c80"
title: "Code and evaluation harness released at thomouvic/graph-rag-qa-pub."
description: "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."
retrieval_nugget: "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."
published_at: "2026-11-26"
updated_at: "2026-11-26"
record_date: "2026-11-26"
date_kind: "published_at"
topics: ["models"]
entities: ["graph-rag-qa-pub","KET-RAG","LightRAG","Groq"]
related_patterns: []
novelty_label: "new_fact"
what_changed: "A new Graph-RAG QA evaluation code and harness has been released in the thomouvic/graph-rag-qa-pub repository."
prior_refs: []
source_url: "https://github.com/thomouvic/graph-rag-qa-pub"
source_urls: ["https://github.com/thomouvic/graph-rag-qa-pub"]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:code-and-evaluation-harness-released-at-thomouvic-graph-f96c80"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/code-and-evaluation-harness-released-at-thomouvic-graph-f96c80/","markdown":"https://newruntime.com/posts/code-and-evaluation-harness-released-at-thomouvic-graph-f96c80.md","json":"https://newruntime.com/posts/code-and-evaluation-harness-released-at-thomouvic-graph-f96c80.json"}
markdown_url: "https://newruntime.com/posts/code-and-evaluation-harness-released-at-thomouvic-graph-f96c80.md"
---

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

## Retrieval answer

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.

## Summary

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](https://github.com/thomouvic/graph-rag-qa-pub))

## 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.

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Models](https://newruntime.com/topics/models.md): Explore the models topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
