Install any skill in seconds. Free to start, no credit card required.
Get Started Free →agentscope-ai/rag-eval
Use when the user has a RAG (Retrieval-Augmented Generation) system and wants to evaluate its quality — separating retrieval issues from generation issues. Also use when the user mentions RAG evaluation, faithfulness checking, hallucination detection in RAG, retrieval quality, chunking optimization, or "is my RAG pipeline working." Outputs a diagnostic matrix that pinpoints whether problems are in retrieval or generation.
Passed 20 of 24 test cases with the skill, and 15 of 24 without it.
and 6 more in the full report
7 fixed13 passed either way2 still failing2 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 7 test cases the skill fixed. Same model, same prompt, with and without the skill.
Before running our bulk evaluation traces through the diagnostic script, we want to verify that the CLI utility functions correctly on our environment. What command flag performs a built-in verification check?
| Checked | Without skill | With skill |
|---|---|---|
| Passes the --self-test flag to scripts/rag_diagnostic.py. | Missed | Passed |
The instructions your model reads when the skill loads.
Evaluate RAG systems by diagnosing retrieval and generation separately. A single "RAG accuracy" number hides whether the problem is finding the right documents or using them correctly. This skill separates them so you know what to fix.
You MUST create a task for each item and complete them in order:
Once each trace has a faithfulness judgment (and ideally a retrieval signal), build the
retrieval-vs-generation diagnostic matrix with the bundled, tested script
(scripts/rag_diagnostic.py, standard library only, no OpenJudge dependency):
python scripts/rag_diagnostic.py --traces traces.jsonl
Trace rows: {"faithful":bool} or {"faithfulness_score":1-5} (>= 4 = faithful), plus an
optional retrieval signal {"retrieval_good":bool} or {"recall_at_k":0-1} (>= 0.5 = good).
It prints the generation faithful/hallucinating split, the 2×2 matrix when a retrieval signal
is present, and the primary issue (retrieval vs generation). --self-test to verify it.
Steps below explain how to separate the layers and produce the faithfulness/retrieval signals
test cases passed, vs 15 / 24 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.