agentleFS
TakaGotoTakaGoto/rag-learning-academy/.claude/skills/evaluate/SKILL.md

evaluate

Skill24 starsChanged 18 days agoMITView on GitHub

Evaluate your RAG pipeline with metrics

25 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use outreach, apply and 6 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • QuixiAISkill

    outreach

    Decide whether a message is worth someone's attention, then reach the user through the outbox, or people on a connected chat channel, on their behalf or your own initiative

    Also in 4 projects that use this

  • proficientlyjobsSkill

    apply

    Fill out a job application on Greenhouse, Lever, or Workday

    Also in 5 projects that use this

  • dazuckSkill

    interview

    Interview me about a plan to flesh out requirements before implementation. Asks non-obvious questions one at a time until all ambiguities are resolved.

    Also in 3 projects that use this

  • BlockSkill

    plan

    Draft a TDD, PRD, or lightweight plan in the conversation without committing it.

    Also in 3 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 4 projects that use this

  • NVIDIASkill

    research

    Before designing a feature, research how comparable libraries solve the problem, check best practices, known pitfalls, and upstream changes. Use when starting a new feature, investigating an unfamiliar area, or the user asks to research something.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 7 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 24 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run a structured evaluation of the learner's RAG pipeline using established metrics.

    line 10
  2. Very specific:

    Look for a learner profile at progress/learner-profile.md and for code in src/ and projects/.

    line 17
  3. Very specific:

    If pipeline code exists in projects/, great — proceed.

    line 18
  4. Very specific:

    If no pipeline or RAG code exists anywhere in projects/ or src/, guide them warmly:

    line 19
  5. Distinctive:

    Stop here — do not continue to Step 2.

    line 22
  6. Distinctive:

    If a pipeline is found, verify it has the minimum components: a retriever and a generator.

    line 23
  7. Distinctive:

    Before running metrics, teach the learner what they are measuring and why:

    line 27
  8. Distinctive:

    Generate test queries: Create 10-20 representative questions for their corpus.

    line 46
  9. Distinctive:

    If they already have a test set, load and validate it.

    line 50
  10. Distinctive:

    Run each test query through the pipeline, capturing: the query, retrieved contexts, generated answer, and latency.

    line 57

“Common” is measured: kept by at least 6 in 10 of the 24 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Evaluate: Measure Your RAG Pipeline's Quality

Scope: This skill focuses on answer quality metrics (faithfulness, relevancy, correctness) against a labeled test set. For operational performance metrics (latency, throughput, cost), use /benchmark.

Run a structured evaluation of the learner's RAG pipeline using established metrics. This skill teaches evaluation methodology while generating actionable results.

Step 1: Identify the Pipeline

Welcome! Let's see how your RAG pipeline is performing.

First, check whether the learner has existing work to evaluate:

  • Look for a learner profile at progress/learner-profile.md and for code in src/ and projects/.
  • If pipeline code exists in projects/, great — proceed. If multiple pipelines exist, ask which one to evaluate.
  • If no pipeline or RAG code exists anywhere in projects/ or src/, guide them warmly:

    "It looks like you haven't built a pipeline yet — that's totally fine! Let's get you set up first. Run /build to create your first RAG pipeline, and then come back here to see how it scores. It only takes a few minutes to get something running!"

    Stop here — do not continue to Step 2.

  • If a pipeline is found, verify it has the minimum components: a retriever and a generator.

Step 2: Explain the Evaluation Framework

Before running metrics, teach the learner what they are measuring and why:

Core RAG Metrics

  • Faithfulness: Does the generated answer stick to the retrieved context? (measures hallucination)
  • Answer Relevancy: Is the answer actually relevant to the question asked?
  • Context Precision: Are the retrieved documents relevant to the question?
  • Context Recall: Did the retriever find all the relevant information?

Additional Metrics (if applicable)

  • Answer Correctness: How close is the answer to a ground truth answer?
  • Latency: How long does each pipeline stage take?
  • Token Usage: How many tokens are consumed per query?

Explain each metric with a simple analogy so the learner builds intuition.

Step 3: Prepare Test Data

Help the learner create or use evaluation data:

  1. Generate test queries: Create 10-20 representative questions for their corpus.
  2. Create ground truth (if needed): For each question, write the ideal answer and list the relevant source documents.
  3. Save the test set to projects/[pipeline-name]/eval/test-set.json.

If they already have a test set, load and validate it.

Step 4: Run the Evaluation

Walk through running the evaluation step by step:

  1. Set up the evaluation framework (RAGAS, custom, or both).
  2. Run each test query through the pipeline, capturing: the query, retrieved contexts, generated answer, and latency.
  3. Compute metrics for each query.
  4. Aggregate results.

Provide code snippets the learner can run. Explain what each part does.

Step 5: Present Results

Display results in a clear, readable format:

RAG Pipeline Evaluation Report
==============================
Pipeline: [name]
Test queries: [N]
Date: [today]

Overall Scores:
  Faithfulness:      [score] / 1.0
  Answer Relevancy:  [score] / 1.0
  Context Precision:  [score] / 1.0
  Context Recall:     [score] / 1.0

Avg Latency: [X]ms (retrieval: [Y]ms, generation: [Z]ms)

Highlight the weakest metric and explain what it means practically.

Step 6: Improvement Recommendations

Based on the results, provide specific, actionable suggestions:

  • Low faithfulness -> check prompt template, add grounding instructions, consider smaller chunks
  • Low context precision -> revisit chunking strategy, try re-ranking, tune embedding model
  • Low context recall -> check chunk coverage, try hybrid search, increase top-k
  • High latency -> profile each stage, consider caching, batch embeddings

Prioritize the top 2-3 improvements that would have the biggest impact.

Step 7: Save and Track

Save the evaluation report to projects/[pipeline-name]/eval/reports/report-[date].md. Update progress/module-tracker.md to note the evaluation was completed. Encourage the learner to re-evaluate after making improvements to see their progress.

Suggest 2-3 relevant next steps using slash commands:

  • /benchmark — measure operational performance (latency, throughput, cost) alongside quality
  • /debug-rag — diagnose and fix the weakest areas identified in your evaluation
  • /build — implement the improvements suggested above and re-evaluate

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.