ragcheck is a Go CLI for evaluating retrieval and RAG runs offline.
It gives you fast Precision@k, Recall@k, HitRate@k, MRR@k, MAP@k, nDCG@k, and lightweight answer/context judges without spinning up notebooks or Python-based eval tooling.
brew install itamaker/tap/ragcheckYou can also download binaries from GitHub Releases.
Current release archives:
- macOS (Apple Silicon/arm64):
ragcheck_0.2.0_darwin_arm64.tar.gz - macOS (Intel/x86_64):
ragcheck_0.2.0_darwin_amd64.tar.gz - Linux (arm64):
ragcheck_0.2.0_linux_arm64.tar.gz - Linux (x86_64):
ragcheck_0.2.0_linux_amd64.tar.gz
Each archive contains a single executable: ragcheck.
Run:
ragcheckThis launches the interactive Bubble Tea terminal UI.
You can still use the direct command form:
ragcheck score -qrels examples/qrels.json -run examples/run.json -k 3Judge answer quality and grounding:
ragcheck judge -input examples/judge.json- Go
1.22+
go run . score -qrels examples/qrels.json -run examples/run.json -k 3Supported metrics:
Precision@kRecall@kHitRate@kMRR@kMAP@knDCG@k
make buildgo build -o dist/ragcheck .- Loads qrels and retrieval run files from JSON.
- Matches retrieved document IDs against relevant sets.
- Computes standard and graded top-k retrieval metrics.
- Can judge answer relevance, context relevance, groundedness, and reference coverage for RAG outputs.
- Prints quick offline evaluation summaries for engineering and research loops.
- Keep qrels and run files aligned on
query_id. - Maintainer release steps live in
PUBLISHING.md.
![]() |
|---|
| Zhaoyang Jia |

