Knowledge Retrieval Benchmark · v0.6.2 · Open & Reproducible
CKG vs RAG vs GraphRAG — measured across 64 domains and 11,031 queries on dependency chains, multi-hop paths, and aggregate lookups. Every result is reproducible from the public dataset.
| # | System | Macro F1 ↓ | F1 bar | Tokens / query | Cost / 1K queries | 5-hop F1 | Queries run |
|---|
git clone https://github.com/Yarmoluk/ckg-benchmark pip install anthropic huggingface_hub export ANTHROPIC_API_KEY=sk-... python evaluation/krb_eval.py --system ckg --domain calculus python evaluation/krb_eval.py --system ckg --all
CKG's advantage concentrates in structured tasks — dependency chains, path traversal, and aggregates. Entity lookup (T1) is the hardest for all systems. This breakdown shows where each architecture fits.
CKG leads in every domain. The gap is narrowest in open-ended domains (systems thinking, theory of knowledge) and widest in domains with dense dependency structures (infographics, glp1, fft-benchmarking).
| Domain | CKG F1 | RAG F1 | Δ gap | CKG tokens | RAG tokens |
|---|
Any retrieval system can be evaluated — RAG pipelines, embedding models, graph systems, hybrid approaches, or fine-tuned models. The harness downloads everything from HuggingFace. No proprietary data required.
pip install anthropic huggingface_hub
git clone https://github.com/Yarmoluk/ckg-benchmark
cd ckg-benchmark
from evaluation.krb_eval import Retriever, run_eval
class MyRetriever(Retriever):
def retrieve(self, domain, query_text, meta):
return my_rag_function(domain, query_text)
# Writes krb_submission_my-rag-v1_<timestamp>.json
run_eval(MyRetriever(), system_name="my-rag-v1")
The harness writes krb_submission_*.json with your macro F1, per-task breakdown, token usage, and cost. Open it and copy the full JSON.
Click below — the issue is pre-filled with the submission template. Paste your krb_submission_*.json into the Results section. Results are reviewed and added within 48 hours.
Enterprise: Private evaluations available — run KRB against your proprietary knowledge base and receive a confidential report. Contact Graphify.md →