Corpus retrieval lab

From jmagly/aiwg · View interactive version

Corpus retrieval lab is an AI agent skill from the GitHub repository jmagly/aiwg. Benchmark current research-query and direct lexical baselines against experimental vector, BM25, typed concept-graph PPR, and RRF source selection without replacing production retrieval.

How to use this skill

Skill file

Corpus Retrieval Lab

Run the local experimental benchmark:

aiwg corpus retrieval-lab --queries <jsonl> --concepts <json> --json

Use reviewed narrow implementation questions with expected REF evidence. Preserve the current research-query behavior regardless of the result; the report may only recommend a later explicit adoption decision.

The lab reports baseline and hybrid Hit@k, MRR, latency, failures, confidence/dispersion, faithfulness, and concept-scheme drift. Use --expected-scheme-hash when comparing runs across time.

See docs/guides/corpus-retrieval-lab.md for fixture schemas and interpretation.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.