evaluate-rag
Skill0 starsChanged 7 months agoApache-2.0View on GitHub
Guardrail for evaluating RAG retrieval and generation quality, including retrieval datasets, Recall@k, chunking experiments, grounding, and leakage checks.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- ai-evals-course/evals-skillstheir own version, first seen Aug 31, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- ai-evals-course/evals-skills★ 1.4ksame name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository57 other files it gives its agents.
- ai-app-integrationSkill
- anti-llm-frontend-designSkill
- aspnet-core-web-developmentSkill
- async-python-patternsSkill
- browser-game-foundationsSkill
- browser-local-qaSkill
- build-mcp-server-sdk-v2Skill
- canva-design-opsSkill
- check-completionSkill
- cli-tool-creatorSkill
- cloudflare-agents-mcpSkill
- cloudflare-durable-objectsSkill
- cloudflare-workers-platformSkill
- deployment-preview-workflowsSkill
- docx-document-artifactsSkill
- durable-workflow-orchestrationSkill
- dynamic-og-imagesSkill
- eval-auditSkill
- figma-design-to-code-rulesSkill
- fine-tuningSkill
- frontend-product-builderSkill
- game-asset-pipeline-expansionSkill
- game-ui-playtestSkill
- generate-synthetic-dataSkill
- github-pr-ci-opsSkill
- gmail-inbox-opsSkill
- golden-datasetSkill
- huggingface-llm-trainerSkill
- javascript-monorepo-buildsSkill
- linear-issue-managementSkill
- media-generation-transcriptionSkill
- millrace-rs-contract-paritySkill
- minecraft-mod-qa-automationSkill
- notion-workspace-flowsSkill
- openai-docsSkill
- optimize-agentic-cliSkill
- pdf-artifact-workflowSkill
- phaser-2d-game-developmentSkill
- postgres-query-performanceSkill
- product-ui-polish-reviewSkill
- pydantic-v2-patternsSkill
- python-repo-refactoring-hygieneSkill
- rag-corpus-hygieneSkill
- react-next-performance-reviewSkill
- rust-best-practicesSkill
- shadcn-ui-compositionSkill
- skill-evaluation-harnessSkill
- tauri-desktopSkill
- tauri-mcp-cliSkill
- tauri-ptySkill
- tile-pixel-art-transitionsSkill
- train-sentence-transformersSkill
- typer-cli-patternsSkill
- using-dbt-for-analytics-engineeringSkill
- validate-evaluatorSkill
- visual-asset-pipelineSkill
- watchdog-file-watcher-patternsSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 9 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
Do trace-level error analysis before selecting metrics.
- Distinctive: line 35
Do not rely on one end-to-end score.
- Distinctive: line 36
Do not tune generation before checking whether the needed context was retrieved.
- Distinctive: line 37
Use Recall@k for first-pass retrieval and precision, MRR, or NDCG for reranking as appropriate.
- Distinctive: line 38
Treat synthetic questions as useful but not sufficient without realism filtering.
- Distinctive: line 39
Check train/eval leakage when RAG traces become training data.
- Distinctive: line 57
Test chunk size, overlap, and content-aware chunking when retrieval is weak.
- Distinctive: line 59
If converting traces to training rows, audit final serialized rows for leakage, citation/source alignment, prompt residue, and malformed …
- Distinctive: line 69
Start with trace inspection and retrieval/generation separation.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Evaluate RAG
Purpose
Help agents evaluate retrieval-augmented generation systems by separating retrieval quality from generation quality. This skill covers retrieval eval datasets, Recall@k, reranking metrics, chunking experiments, faithfulness, relevance, and training-data leakage checks.
Quick Start
- Do trace-level error analysis before selecting metrics.
- Build query-to-relevant-chunk datasets for retrieval.
- Optimize first-pass retrieval for recall.
- Evaluate generation separately for faithfulness and relevance.
- Grid-search chunking before tuning generation when retrieval is weak.
Operating Constraints
- Do not rely on one end-to-end score.
- Do not tune generation before checking whether the needed context was retrieved.
- Use Recall@k for first-pass retrieval and precision, MRR, or NDCG for reranking as appropriate.
- Treat synthetic questions as useful but not sufficient without realism filtering.
- Check train/eval leakage when RAG traces become training data.
Inputs This Skill Expects
- RAG traces showing query, retrieved chunks, context, and answer.
- Corpus chunks, chunking strategy, retriever, reranker, and prompt.
- Retrieval eval dataset or source documents from which to build one.
- Generation eval criteria such as grounding, relevance, citation support, and omissions.
Output Contract
- State whether failures come from retrieval, generation, or both.
- Provide retrieval metrics and generation findings separately.
- Recommend chunking, embedding, reranking, prompt, or generation changes based on the diagnosed failure.
- Include leakage and source-alignment checks if traces become training rows.
Procedure
- Inspect failed traces and classify retrieval versus generation failures.
- Build or review query-to-relevant-chunk labels.
- Measure first-pass retrieval and reranking separately.
- Test chunk size, overlap, and content-aware chunking when retrieval is weak.
- Evaluate generated answers for faithfulness, relevance, omissions, and hallucinations.
- If converting traces to training rows, audit final serialized rows for leakage, citation/source alignment, prompt residue, and malformed text.
Pitfalls And Gotchas
- Using similarity metrics as primary answer-quality measures.
- Overfitting to synthetic retrieval questions.
- Ignoring multi-hop queries that need multiple chunks.
- Treating reranker precision as a fix when first-pass recall is too low.
- Training on RAG traces without checking final assistant text quality.
Progressive Disclosure
Start with trace inspection and retrieval/generation separation. Expand into synthetic QA, adversarial retrieval, chunking grid search, reranking, multi-hop metrics, or training-data audits only when the problem requires it.
Verification Pattern
- Confirm traces were inspected before metrics were chosen.
- Confirm retrieval and generation are measured separately.
- Confirm first-pass retrieval recall is adequate before generation tuning.
- Confirm chunking changes are evaluated against a labeled retrieval set.
- Confirm RAG-derived training rows are checked for leakage and source alignment.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

