[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M757KX76P6F4Z84B4JQQRWW4":3,"skill-same:01M757KX76P6F4Z84B4JQQRWW4":52},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":35,"ownerDescription":36,"updatedAt":37,"install":38,"resources":51},"01M757KX76P6F4Z84B4JQQRWW4","llm-evals-and-retrieval-quality",null,"Reference-grade guide to evaluating LLM and RAG systems — golden\u002Fregression\u002Fadversarial eval sets, LLM-as-judge and its biases, retrieval metrics (recall@k, MRR, nDCG), grounding\u002Ffaithfulness\u002Fattribution, RAGAS-style scoring, eval-set construction from production traces, and the CI gates that stop silent regressions.","jpoindexter\u002FVanta","jpoindexter","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F2729617?v=4","01M72VRRYY1CP7RPF3B7GHH0CR","01M757GWDBT6RD147ZZ79N4MEX",4,"MIT","https:\u002F\u002Fgithub.com\u002Fjpoindexter\u002FVanta\u002Fblob\u002Fmain\u002Fai-engineering-skills\u002Fllm-evals-and-retrieval-quality\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: llm-evals-and-retrieval-quality\ndescription: Reference-grade guide to evaluating LLM and RAG systems — golden\u002Fregression\u002Fadversarial eval sets, LLM-as-judge and its biases, retrieval metrics (recall@k, MRR, nDCG), grounding\u002Ffaithfulness\u002Fattribution, RAGAS-style scoring, eval-set construction from production traces, and the CI gates that stop silent regressions.\ntags: [ai-engineering, evals, testing, llm-as-judge]\n---\n# LLM & Retrieval Evals\n\nEvals are the core discipline of AI engineering. A model is a stochastic component you do not control: a prompt tweak, a temperature change, a model version bump, or a vendor silently re-routing your traffic can move quality in any direction, and none of it shows up in a stack trace. The only way to know whether a change helped or hurt is to **measure task performance on a fixed set of inputs you trust**. \"It looks better\" is a hypothesis, not a result. Vibes don't ship — a passing eval suite does.\n\nEvals are to LLM systems what tests are to ordinary software, with one twist: the output is non-deterministic and often open-ended, so the *grader* is itself a system you must build and validate. This guide covers what to measure (eval types, generation metrics, retrieval metrics, grounding), how to grade (exact match, embeddings, LLM-as-judge, humans), how to build and maintain an eval set, and how to wire evals into your delivery process so regressions get caught before users do.\n\nThe mental model: **inputs → system → outputs → grader → score → decision.** Every section below is one link in that chain. If any link is weak — a stale eval set, a biased judge, a metric that doesn't track the task — the score lies, and you ship blind.\n\n---\n\n## 1. Why evals, concretely\n\n- **You can't improve what you can't measure.** Iteration without a scorecard is a random walk. With a scorecard, every change is a labeled experiment.\n- **Silent regressions are the default failure.** LLM output degrades gracefully-looking: still fluent, still confident, subtly wrong. No exception, no 500. Only an eval catches \"accuracy dropped from 88% to 71% after the model upgrade.\"\n- **Model swaps are not drop-in.** GPT-4o → GPT-4.1, Sonnet → a cheaper Haiku, an open-weights migration — each shifts the output distribution. The eval is the acceptance test for the swap.\n- **Prompts are code with no type system.** A one-word prompt edit can break JSON formatting on 12% of inputs. Regression evals are your compiler.\n- **Evals turn arguments into experiments.** \"Should we use few-shot here?\" is answerable in an hour with an eval set, versus a week of stakeholder opinion.\n\n**Capability evals ≠ product evals.** Public benchmarks (MMLU, GSM8K, HumanEval, MT-Bench) measure a *model's* general capability and help you pick a base model. They tell you almost nothing about *your* task on *your* data — a model can top a leaderboard and fail your extraction schema. They are also heavily contaminated (leaked into training sets), so a high public score is partly memorization. Build **product evals** on your own inputs; treat benchmarks only as a coarse shortlist for which models to even try.\n\n> Rule of thumb: if you cannot state the metric and the threshold a change must clear, you are not ready to make the change.\n\n---\n\n## 2. Eval types — what to build\n\n| Type | What it is | Catches | Cadence |\n|---|---|---|---|\n| **Golden \u002F reference set** | Curated `input → expected output` pairs, hand-blessed | Core correctness on representative cases | Every change |\n| **Regression set** | Frozen suite of previously-passing cases | Quality drops on deploy \u002F model swap \u002F prompt change | CI, **blocking** |\n| **Adversarial \u002F red-team** | Edge cases, injections, jailbreaks, refusal probes | Safety + robustness failures | Pre-release, periodic |\n| **Unit eval** | One component in isolation (a tool call, a router, a parser) | Localized defects, fast feedback | Per-commit |\n| **End-to-end eval** | Full pipeline, real user inputs | Integration + emergent failures | Pre-deploy, canary |\n\n**Golden sets** are the backbone: small, high-quality, human-verified. Each item carries the input, the expected output (or a rubric\u002Fchecklist when output is open-ended), and metadata (category, difficulty, source). Quality over quantity — 80 well-chosen cases beat 5,000 noisy ones.\n\n**Regression sets** exist to fail loudly. They are golden cases promoted to a CI gate: if a change drops the pass rate below threshold, the build is red. No regression gate = a prompt tweak can quietly break prod and nobody knows until a customer complains.\n\n**Adversarial sets** probe the unhappy path on purpose: prompt injection (\"ignore previous instructions…\"), jailbreaks, PII exfiltration attempts, out-of-scope requests that *should* trigger refusal, ambiguous or contradictory inputs, and inputs in the wrong language\u002Fformat. Track refusal correctness in both directions — over-refusal (declining valid requests) is as much a failure as under-refusal (complying with harmful ones).\n\n**Unit vs end-to-end.** Decompose the pipeline (retriever, reranker, prompt assembly, generation, post-parse) and eval each unit so failures are attributable, then run an end-to-end eval so you catch interaction effects. A retriever can score 95% recall and the end-to-end answer still be wrong because the generator ignored the context. You need both.\n\n---\n\n## 3. Grading methods — how to score an output\n\n### 3.1 Exact \u002F structural match\nUse when the output space is closed: classification labels, extracted fields, JSON conforming to a schema, SQL that must run, a number. Grade with `==`, schema validation (Zod\u002FPydantic\u002FJSON-Schema), or execution (does the SQL return the right rows?). Cheap, deterministic, zero judge bias. **Prefer this whenever the task can be made structured** — it's the gold standard when it applies.\n\nFor classification\u002Fextraction tasks, report the confusion-matrix family, not bare accuracy: **precision** = TP\u002F(TP+FP), **recall** = TP\u002F(TP+FN), **F1** = 2·P·R\u002F(P+R). Accuracy lies on imbalanced data (99% \"not-spam\" accuracy by always answering \"not-spam\"). Use **macro-F1** when every class matters equally, **micro-F1** when frequent classes should dominate. For a router\u002Fclassifier, the per-class confusion matrix tells you *which* class it confuses, which an aggregate score hides.\n\n### 3.2 Reference-based text metrics (BLEU, ROUGE, METEOR, exact-string)\nN-gram overlap against a reference answer. **Weak for generation.** They reward surface lexical overlap, not meaning: a correct paraphrase with different words scores low; a fluent wrong answer that reuses input words scores high. Acceptable as a cheap signal for translation\u002Fsummarization with tight references; near-useless for open-ended Q&A, chat, or agentic output. Do not gate releases on ROUGE alone.\n\n### 3.3 Embedding \u002F semantic similarity\nCosine similarity between embeddings of output and reference. Captures meaning better than n-grams, tolerates paraphrase. But it's a blunt scalar — it can't tell you *why* something is wrong, conflates topical similarity with correctness, and a confidently-wrong answer on the right topic scores high. Use as a coarse filter or a regression tripwire, not a final verdict.\n\n### 3.4 LLM-as-judge (the workhorse for open-ended output)\nA strong model grades the output against a rubric. Two modes:\n\n- **Pointwise \u002F rubric:** judge scores one output on an absolute scale (e.g., 1–5 on \"faithfulness\", or pass\u002Ffail per criterion). Better for tracking absolute quality over time and for CI thresholds.\n- **Pairwise:** judge picks the better of two outputs (A vs B). Lower variance, more reliable for *ranking* two systems\u002Fprompts, the basis of preference leaderboards. Worse for absolute thresholds.\n\n**Use pairwise to choose between candidates; use pointwise\u002Frubric to gate and trend.**\n\nLLM-as-judge **gotchas** — every one of these is a known, measured bias:\n\n| Bias | What happens | Mitigation |\n|---|---|---|\n| **Position bias** | Judge favors the first (or last) option in pairwise | Randomize order; run both orders and average; require consistency |\n| **Verbosity \u002F length bias** | Longer answers rated higher regardless of quality | Rubric penalizing fluff; control for length; pairwise on equal-length |\n| **Self-preference** | Judge prefers outputs from its own model family | Use a different model family as judge than as generator |\n| **Sycophancy \u002F leniency** | Judge agrees with assertive or confident phrasing | Concrete rubric, require evidence\u002Fquote citations in the verdict |\n| **Miscalibration** | \"7\u002F10\" means nothing stable across runs | Use few discrete levels (pass\u002Ffail, 1–3), anchor each level with an example |\n| **Format\u002Fstyle halo** | Well-formatted markdown rated as more correct | Separate \"format\" and \"correctness\" criteria in the rubric |\n\nA usable rubric looks like a graded checklist, not a vibe scale. Example for a support-answer faithfulness judge:\n\n```\nFor each claim in the ANSWER, label it against the CONTEXT:\n  SUPPORTED   — context entails the claim\n  UNSUPPORTED — context neither entails nor contradicts (no basis)\n  CONTRADICTED— context contradicts the claim\nFirst list claims with labels and a quoted supporting span; THEN output:\n  PASS  = all claims SUPPORTED\n  FAIL  = any claim UNSUPPORTED or CONTRADICTED\nOutput JSON: { \"claims\": [...], \"verdict\": \"PASS\"|\"FAIL\" }\n```\n\nThis binds the judge to evidence (quoted spans), forces reasoning before the verdict, and yields a binary gateable result instead of an uncalibrated 7\u002F10.\n\nNon-negotiables for LLM-as-judge:\n- **Give it a rubric**, not \"rate this 1–10.\" Define each score level with criteria and an anchor example. Ask for a brief justification *before* the score (chain-of-thought lifts judge reliability).\n- **Use a strong judge.** A weak judge is a noisy ruler. The judge should be at least as capable as the system under test, ideally stronger.\n- **The judge needs its own eval.** Validate judge verdicts against ~100+ human labels; report judge–human agreement (Cohen's κ or % agreement). An unvalidated judge is an opinion with API costs. Re-validate when you change the judge model.\n- **Pin the judge model + prompt + temperature (0).** A judge that drifts is worse than no judge — your whole metric history becomes incomparable.\n\n### 3.5 Human eval\nRequired when: defining ground truth for a new task, validating an LLM judge, evaluating subjective quality (tone, helpfulness, brand voice), safety-critical decisions, or when automated metrics disagree with intuition. Make it rigorous:\n- **Clear rubric + labeled examples** so annotators apply the same standard.\n- **Inter-rater agreement:** ≥2 raters per item on a subset; report Cohen's κ (2 raters) or Fleiss' κ \u002F Krippendorff's α (>2). κ \u003C 0.6 means your rubric is ambiguous — fix the rubric, not the raters. Adjudicate disagreements; they reveal edge cases worth adding to the golden set.\n- **Sample, don't boil the ocean:** stratified sample across categories; size for a tolerable confidence interval (a few hundred items gives useful precision). Blind raters to which system produced which output.\n\n### 3.6 Picking a method\n\n| Output shape | Use | Avoid |\n|---|---|---|\n| Closed labels \u002F schema'd JSON \u002F runnable code | Exact + structural match, F1 | LLM-judge (overkill, noisier) |\n| Short factual answer with a reference | Exact \u002F embedding similarity, LLM-judge as backstop | BLEU\u002FROUGE alone |\n| Long open-ended generation, chat, summaries | LLM-as-judge (rubric) + targeted human sample | BLEU\u002FROUGE\u002Fperplexity as a gate |\n| Choosing between two systems\u002Fprompts | Pairwise LLM-judge or human preference | Pointwise absolute scores (higher variance for ranking) |\n| Subjective quality, safety-critical, new task | Human eval (defines ground truth) | Automated metric as sole signal |\n\nDefault ladder: **make it structured → exact match; if you can't → LLM-judge with a rubric; validate the judge with humans; reserve full human eval for ground-truth and safety.**\n\n---\n\n## 4. Retrieval evals (RAG, search, memory)\n\nRetrieval quality caps everything downstream: the generator cannot answer from context it never saw. Eval the retriever **separately** from the generator. You need a labeled set mapping queries → relevant documents\u002Fchunks (binary relevant, or graded relevance for nDCG).\n\n| Metric | Formula \u002F definition | Answers |\n|---|---|---|\n| **Recall@k** | (# relevant in top-k) \u002F (total relevant) | Did we fetch the right chunks at all? |\n| **Precision@k** | (# relevant in top-k) \u002F k | How much of what we fetched is noise? |\n| **Hit-rate@k** | fraction of queries with ≥1 relevant in top-k | Did we get *anything* useful? |\n| **MRR** | mean of 1\u002Frank of the first relevant result | How high is the first good hit? |\n| **MAP** | mean of average-precision per query | Ranking quality across all relevant items |\n| **nDCG@k** | DCG\u002FIDCG, DCG = Σ relᵢ\u002Flog₂(i+1) | Graded relevance + position-discounted ranking |\n\n`MRR = (1\u002FN) Σ 1\u002Frankᵢ` — only the first relevant hit matters, good for \"one right answer\" lookups. `nDCG` rewards putting *more* relevant items *higher* with graded labels, the right metric when many chunks are partially relevant.\n\n**Context-level RAG metrics** (RAGAS-style):\n- **Context recall** — of the facts needed to answer, what fraction are present in the retrieved context? Low recall = retriever is the bottleneck.\n- **Context precision** — are the relevant chunks ranked above the irrelevant ones? Low precision = reranking\u002Ffiltering problem; also wastes the context window and invites distraction.\n\n**Recall vs precision tradeoff at k:** raising k lifts recall but dilutes precision and bloats the prompt (cost + lost-in-the-middle errors). Tune k against the end-to-end answer metric, not recall in isolation.\n\n**What retrieval evals diagnose.** A low recall@k is rarely \"the embedding model is bad\" — it's usually upstream: chunks too large (relevant fact buried with noise, embedding washed out) or too small (fact split across chunks); the wrong embedding model for the domain; no hybrid (dense + BM25\u002Flexical) so exact-match terms like IDs and error codes are missed; or no reranker so the relevant chunk sits at rank 18. Ablate each: hold the eval set fixed and vary chunk size, embedding model, hybrid on\u002Foff, reranker on\u002Foff — the metric delta attributes the gain. This is why the labeled query→chunk set is worth building once and reusing for every retrieval change.\n\n---\n\n## 5. Grounding, faithfulness, and attribution (the hallucination guards)\n\nA RAG answer can retrieve perfectly and still hallucinate. These metrics check the *generation* against the retrieved context:\n\n- **Faithfulness \u002F groundedness:** is every claim in the answer *supported by* the retrieved context? Decompose the answer into atomic claims, then check each against the context (NLI model or LLM-judge: entailed \u002F contradicted \u002F unsupported). `Faithfulness = supported claims \u002F total claims`. An unsupported-but-true claim still fails grounding — it means the model is generating from parametric memory, which you cannot audit.\n- **Answer relevance:** does the answer actually address the question (vs answering a related question, or padding)? Often scored by generating questions the answer would answer and comparing to the original.\n- **Attribution \u002F citation quality:** when the system cites sources, are the citations correct?\n  - **Citation precision** = correct citations \u002F total citations (no fabricated or wrong-source cites).\n  - **Citation recall** = claims-with-a-supporting-cite \u002F claims-that-need-one (no uncited claims that should be sourced).\n  - A confidently-cited answer where the cited passage doesn't support the claim is the most dangerous failure — it *looks* trustworthy.\n\n**The RAG triad** — measure all three or you can't localize a failure: **context relevance** (retriever), **faithfulness** (generator grounding), **answer relevance** (generator on-task). Low context relevance → fix retrieval. High context relevance + low faithfulness → fix the prompt\u002Fgenerator. High on both + low answer relevance → fix instruction-following.\n\n---\n\n## 6. Building and maintaining an eval set\n\nThe eval set *is* the asset. The model is rented; the labeled eval set is owned IP and the moat.\n\n- **Source from production traces.** Real user inputs beat synthetic ones — they carry the actual distribution, including the weird 5% you'd never invent. Log inputs, outputs, retrieved context, and (when available) user feedback \u002F corrections.\n- **Mine failures continuously.** Every thumbs-down, every escalation, every bug report → a candidate eval case. The failures of today are the regression tests of tomorrow. This is the flywheel: ship → observe failures → add to eval set → fix → the fix is now guarded forever.\n- **Cover the space deliberately.** Stratify by category, difficulty, input length, language, and user segment. Track a coverage matrix; backfill thin cells. Include the boring happy path *and* the long tail.\n- **Size:** start small (50–100 high-signal cases) and grow toward the failure modes that matter. Precision of your pass-rate estimate scales with set size; for tight gates you want a few hundred per critical category.\n- **Freshness:** eval sets rot. New features, new user behavior, new model versions change the distribution. Schedule reviews; retire stale cases; add new ones from recent traces. A two-year-old eval set measures a product that no longer exists.\n- **Avoid train\u002Feval leakage:** never put eval inputs into few-shot prompt examples, fine-tuning data, or the retrieval corpus you're testing against. If the model has seen the answer, the score is fiction. Keep a held-out set the system has *never* been tuned against, and rotate a fresh holdout periodically to detect overfitting to the eval itself.\n- **Version the eval set.** Treat it like code: it's in git, changes are reviewed, and every metric is reported against a named eval-set version so historical numbers stay comparable.\n\n---\n\n## 7. Process — eval-driven development\n\nWire evals into delivery so measurement is automatic, not heroic.\n\n1. **Eval-driven development:** write\u002Fextend the eval set *before* changing the prompt or model, the way TDD writes the test first. Define the metric and target, then iterate until the number moves.\n2. **Run on every change** to prompts, models, retrieval config, chunking, or tooling. No \"I just tweaked one word\" exceptions — that's exactly where regressions hide.\n3. **Thresholds and gates:** the regression suite blocks CI. Define gates per metric (e.g., faithfulness ≥ 0.9, no drop > 2pts vs baseline on the golden set, zero new jailbreak passes). A failing gate is a red build, not a Slack warning everyone mutes.\n4. **Dashboards:** trend metrics per eval-set version over time and per model\u002Fprompt version. A single number today is noise; the trend line is the signal. Slice by category so a localized regression isn't hidden by a healthy average.\n5. **Offline vs online evals.**\n   - **Offline** — fixed eval set, pre-deploy, reproducible, gates releases.\n   - **Online** — production signals: user feedback (👍\u002F👎, edits, retries, abandonment), task-completion rate, automated LLM-judge on a sample of live traffic, latency\u002Fcost. Online catches what your offline set didn't anticipate. Mine **implicit** signals too — they're cheaper and less biased than thumbs: edit-distance between the model's answer and what the user shipped, copy\u002Faccept events, follow-up \"no, I meant…\" turns, regenerate clicks, session abandonment, and downstream success (did the generated code pass CI? did the email get sent?). Route low-scoring live samples straight into the failure-mining queue (§6).\n6. **A\u002FB + canary:** roll a change to a small slice, compare online metrics against control, ramp only if it wins (or holds) on the metrics that matter. Canary first when the blast radius is large.\n7. **Drift detection:** monitor input distribution (new topics, languages, lengths) and output metrics over time. A silent provider model update or a seasonal shift in user behavior degrades quality with no deploy on your side. Cross-reference observability\u002Ftracing to attribute drift. (See an observability\u002Ftracing skill for span-level instrumentation.)\n\n**Aggregation and significance.** A pass rate is an estimate with error bars. Two systems at 84% and 86% on 100 cases are *not* distinguishable — the 95% CI on a proportion is roughly ±10pts at n=100, ±3pts at n=1000. Before declaring a winner: report the confidence interval (Wilson interval for proportions), and for paired comparisons on the same inputs use a paired test (McNemar's for pass\u002Ffail, bootstrap for continuous scores). Run non-deterministic systems **k times per input** (k≥3) and average to separate true change from sampling noise. \"It went up 2 points\" on a tiny set is the single most common way teams ship a regression while celebrating.\n\n**Quality is not the only axis.** Every eval run should also report **cost** (tokens\u002F$ per task) and **latency** (p50\u002Fp95 end-to-end). A change that lifts faithfulness 1pt while doubling cost or pushing p95 past your budget is often a net loss — surface all three so the decision is honest. The cheaper model that's \"98% as good\" is frequently the right call, and only a multi-axis eval makes that visible.\n\n**Tooling.** You can hand-roll evals (a JSONL set + a scoring script + a CI job — start here, it's a day of work). Mature options: RAGAS (RAG faithfulness\u002Frelevance\u002Fcontext metrics), promptfoo and DeepEval (declarative eval suites + CI), Braintrust \u002F LangSmith \u002F Langfuse (eval + tracing + dashboards), OpenAI Evals \u002F inspect-ai (framework-grade harnesses). Pick one once you've outgrown the script; don't let tool selection delay having *any* eval.\n\n> Every metric should map to a decision. If a number can't change what you ship, stop computing it.\n\n---\n\n## 8. Do \u002F Don't\n\n**Do**\n- Make the task structured (closed labels, schema-validated JSON) whenever you can — exact match beats every fuzzy grader.\n- Validate your LLM judge against human labels and report agreement before trusting it.\n- Build the eval set from real production traces and mined failures.\n- Gate CI on a frozen regression suite; block the build on a drop.\n- Eval retriever and generator separately, then end-to-end.\n- Measure grounding\u002Ffaithfulness and citation accuracy for any RAG system.\n- Version eval sets and report metrics against a named version.\n- Randomize order and control for length in pairwise LLM-as-judge.\n\n**Don't**\n- Ship on vibes or a handful of cherry-picked examples.\n- Gate releases on BLEU\u002FROUGE\u002Fperplexity for open-ended generation.\n- Use the same model family as both generator and judge (self-preference).\n- Leak eval inputs into prompts, few-shot, fine-tuning, or the retrieval corpus.\n- Let the eval set go stale or stay tiny for a system that's grown.\n- Optimize a proxy metric until it decouples from the real task (Goodhart).\n- Trust a single average — slice by category and watch the trend.\n- Run an unvalidated, unpinned judge whose verdicts drift run to run.\n\n---\n\n## 9. Failure modes (the ones that bite in production)\n\n- **No eval set →** silent regressions. The most common and most expensive failure: quality drops on a model\u002Fprompt change and you find out from churn, not CI.\n- **Judge bias →** position\u002Fverbosity\u002Fself-preference skew the metric; you optimize toward the bias (longer, more confident, same-family answers) instead of quality.\n- **Tiny or stale set →** a pass rate with a huge confidence interval, or one that measures a product you no longer ship. Looks green, means nothing.\n- **Train\u002Feval leakage →** inflated scores that collapse in production. The model memorized the test.\n- **Measuring perplexity, not task →** low perplexity ≠ correct answers, faithful grounding, or completed tasks. Perplexity is a language-modeling metric, not a product metric.\n- **Gaming the metric (Goodhart) →** the system learns to satisfy the grader, not the user — verbose answers to please a length-biased judge, keyword-stuffed text to please ROUGE, refusals to dodge a safety metric. Rotate held-out sets and keep humans in the loop to detect it.\n- **No regression gate →** a \"harmless\" prompt tweak quietly breaks 8% of prod traffic because nothing blocked the merge.\n- **Averaging away a regression →** overall score flat, but a critical category cratered. Always slice.\n- **Retriever-only evaluation →** 95% recall@k and the end-to-end answer is still wrong because the generator ignored or contradicted the context. Grounding eval is mandatory, not optional.\n- **Citing without verifying citations →** answers that *look* sourced but cite passages that don't support the claim — the highest-trust, highest-risk failure.\n\n---\n\n## 10. Minimum viable eval program\n\nIf you do nothing else, do this, in order:\n\n1. A **golden set** of 50–100 real, human-verified `input → expected\u002Frubric` cases from production traces.\n2. A **regression gate** in CI that runs that set and blocks merges on a drop.\n3. For RAG: **retrieval metrics** (recall@k, MRR) + a **faithfulness** check on answers.\n4. An **LLM-as-judge** with a written rubric, a non-self judge model, and a **one-time human validation** of its agreement.\n5. **Online feedback** capture (👍\u002F👎 + edits) feeding new failures back into the golden set.\n\nThat loop — measure, gate, observe, mine failures, grow the set — is the entire discipline. Everything else is refinement.\n","# LLM & Retrieval Evals\n\nEvals are the core discipline of AI engineering. A model is a stochastic component you do not control: a prompt tweak, a temperature change, a model version bump, or a vendor silently re-routing your traffic can move quality in any direction, and none of it shows up in a stack trace. The only way to know whether a change helped or hurt is to **measure task performance on a fixed set of inputs you trust**. \"It looks better\" is a hypothesis, not a result. Vibes don't ship — a passing eval suite does.\n\nEvals are to LLM systems what tests are to ordinary software, with one twist: the output is non-deterministic and often open-ended, so the *grader* is itself a system you must build and validate. This guide covers what to measure (eval types, generation metrics, retrieval metrics, grounding), how to grade (exact match, embeddings, LLM-as-judge, humans), how to build and maintain an eval set, and how to wire evals into your delivery process so regressions get caught before users do.\n\nThe mental model: **inputs → system → outputs → grader → score → decision.** Every section below is one link in that chain. If any link is weak — a stale eval set, a biased judge, a metric that doesn't track the task — the score lies, and you ship blind.\n\n---\n\n## 1. Why evals, concretely\n\n- **You can't improve what you can't measure.** Iteration without a scorecard is a random walk. With a scorecard, every change is a labeled experiment.\n- **Silent regressions are the default failure.** LLM output degrades gracefully-looking: still fluent, still confident, subtly wrong. No exception, no 500. Only an eval catches \"accuracy dropped from 88% to 71% after the model upgrade.\"\n- **Model swaps are not drop-in.** GPT-4o → GPT-4.1, Sonnet → a cheaper Haiku, an open-weights migration — each shifts the output distribution. The eval is the acceptance test for the swap.\n- **Prompts are code with no type system.** A one-word prompt edit can break JSON formatting on 12% of inputs. Regression evals are your compiler.\n- **Evals turn arguments into experiments.** \"Should we use few-shot here?\" is answerable in an hour with an eval set, versus a week of stakeholder opinion.\n\n**Capability evals ≠ product evals.** Public benchmarks (MMLU, GSM8K, HumanEval, MT-Bench) measure a *model's* general capability and help you pick a base model. They tell you almost nothing about *your* task on *your* data — a model can top a leaderboard and fail your extraction schema. They are also heavily contaminated (leaked into training sets), so a high public score is partly memorization. Build **product evals** on your own inputs; treat benchmarks only as a coarse shortlist for which models to even try.\n\n> Rule of thumb: if you cannot state the metric and the threshold a change must clear, you are not ready to make the change.\n\n---\n\n## 2. Eval types — what to build\n\n| Type | What it is | Catches | Cadence |\n|---|---|---|---|\n| **Golden \u002F reference set** | Curated `input → expected output` pairs, hand-blessed | Core correctness on representative cases | Every change |\n| **Regression set** | Frozen suite of previously-passing cases | Quality drops on deploy \u002F model swap \u002F prompt change | CI, **blocking** |\n| **Adversarial \u002F red-team** | Edge cases, injections, jailbreaks, refusal probes | Safety + robustness failures | Pre-release, periodic |\n| **Unit eval** | One component in isolation (a tool call, a router, a parser) | Localized defects, fast feedback | Per-commit |\n| **End-to-end eval** | Full pipeline, real user inputs | Integration + emergent failures | Pre-deploy, canary |\n\n**Golden sets** are the backbone: small, high-quality, human-verified. Each item carries the input, the expected output (or a rubric\u002Fchecklist when output is open-ended), and metadata (category, difficulty, source). Quality over quantity — 80 well-chosen cases beat 5,000 noisy ones.\n\n**Regression sets** exist to fail loudly. They are golden cases promoted to a CI gate: if a change drops the pass rate below threshold, the build is red. No regression gate = a prompt tweak can quietly break prod and nobody knows until a customer complains.\n\n**Adversarial sets** probe the unhappy path on purpose: prompt injection (\"ignore previous instructions…\"), jailbreaks, PII exfiltration attempts, out-of-scope requests that *should* trigger refusal, ambiguous or contradictory inputs, and inputs in the wrong language\u002Fformat. Track refusal correctness in both directions — over-refusal (declining valid requests) is as much a failure as under-refusal (complying with harmful ones).\n\n**Unit vs end-to-end.** Decompose the pipeline (retriever, reranker, prompt assembly, generation, post-parse) and eval each unit so failures are attributable, then run an end-to-end eval so you catch interaction effects. A retriever can score 95% recall and the end-to-end answer still be wrong because the generator ignored the context. You need both.\n\n---\n\n## 3. Grading methods — how to score an output\n\n### 3.1 Exact \u002F structural match\nUse when the output space is closed: classification labels, extracted fields, JSON conforming to a schema, SQL that must run, a number. Grade with `==`, schema validation (Zod\u002FPydantic\u002FJSON-Schema), or execution (does the SQL return the right rows?). Cheap, deterministic, zero judge bias. **Prefer this whenever the task can be made structured** — it's the gold standard when it applies.\n\nFor classification\u002Fextraction tasks, report the confusion-matrix family, not bare accuracy: **precision** = TP\u002F(TP+FP), **recall** = TP\u002F(TP+FN), **F1** = 2·P·R\u002F(P+R). Accuracy lies on imbalanced data (99% \"not-spam\" accuracy by always answering \"not-spam\"). Use **macro-F1** when every class matters equally, **micro-F1** when frequent classes should dominate. For a router\u002Fclassifier, the per-class confusion matrix tells you *which* class it confuses, which an aggregate score hides.\n\n### 3.2 Reference-based text metrics (BLEU, ROUGE, METEOR, exact-string)\nN-gram overlap against a reference answer. **Weak for generation.** They reward surface lexical overlap, not meaning: a correct paraphrase with different words scores low; a fluent wrong answer that reuses input words scores high. Acceptable as a cheap signal for translation\u002Fsummarization with tight references; near-useless for open-ended Q&A, chat, or agentic output. Do not gate releases on ROUGE alone.\n\n### 3.3 Embedding \u002F semantic similarity\nCosine similarity between embeddings of output and reference. Captures meaning better than n-grams, tolerates paraphrase. But it's a blunt scalar — it can't tell you *why* something is wrong, conflates topical similarity with correctness, and a confidently-wrong answer on the right topic scores high. Use as a coarse filter or a regression tripwire, not a final verdict.\n\n### 3.4 LLM-as-judge (the workhorse for open-ended output)\nA strong model grades the output against a rubric. Two modes:\n\n- **Pointwise \u002F rubric:** judge scores one output on an absolute scale (e.g., 1–5 on \"faithfulness\", or pass\u002Ffail per criterion). Better for tracking absolute quality over time and for CI thresholds.\n- **Pairwise:** judge picks the better of two outputs (A vs B). Lower variance, more reliable for *ranking* two systems\u002Fprompts, the basis of preference leaderboards. Worse for absolute thresholds.\n\n**Use pairwise to choose between candidates; use pointwise\u002Frubric to gate and trend.**\n\nLLM-as-judge **gotchas** — every one of these is a known, measured bias:\n\n| Bias | What happens | Mitigation |\n|---|---|---|\n| **Position bias** | Judge favors the first (or last) option in pairwise | Randomize order; run both orders and average; require consistency |\n| **Verbosity \u002F length bias** | Longer answers rated higher regardless of quality | Rubric penalizing fluff; control for length; pairwise on equal-length |\n| **Self-preference** | Judge prefers outputs from its own model family | Use a different model family as judge than as generator |\n| **Sycophancy \u002F leniency** | Judge agrees with assertive or confident phrasing | Concrete rubric, require evidence\u002Fquote citations in the verdict |\n| **Miscalibration** | \"7\u002F10\" means nothing stable across runs | Use few discrete levels (pass\u002Ffail, 1–3), anchor each level with an example |\n| **Format\u002Fstyle halo** | Well-formatted markdown rated as more correct | Separate \"format\" and \"correctness\" criteria in the rubric |\n\nA usable rubric looks like a graded checklist, not a vibe scale. Example for a support-answer faithfulness judge:\n\n```\nFor each claim in the ANSWER, label it against the CONTEXT:\n  SUPPORTED   — context entails the claim\n  UNSUPPORTED — context neither entails nor contradicts (no basis)\n  CONTRADICTED— context contradicts the claim\nFirst list claims with labels and a quoted supporting span; THEN output:\n  PASS  = all claims SUPPORTED\n  FAIL  = any claim UNSUPPORTED or CONTRADICTED\nOutput JSON: { \"claims\": [...], \"verdict\": \"PASS\"|\"FAIL\" }\n```\n\nThis binds the judge to evidence (quoted spans), forces reasoning before the verdict, and yields a binary gateable result instead of an uncalibrated 7\u002F10.\n\nNon-negotiables for LLM-as-judge:\n- **Give it a rubric**, not \"rate this 1–10.\" Define each score level with criteria and an anchor example. Ask for a brief justification *before* the score (chain-of-thought lifts judge reliability).\n- **Use a strong judge.** A weak judge is a noisy ruler. The judge should be at least as capable as the system under test, ideally stronger.\n- **The judge needs its own eval.** Validate judge verdicts against ~100+ human labels; report judge–human agreement (Cohen's κ or % agreement). An unvalidated judge is an opinion with API costs. Re-validate when you change the judge model.\n- **Pin the judge model + prompt + temperature (0).** A judge that drifts is worse than no judge — your whole metric history becomes incomparable.\n\n### 3.5 Human eval\nRequired when: defining ground truth for a new task, validating an LLM judge, evaluating subjective quality (tone, helpfulness, brand voice), safety-critical decisions, or when automated metrics disagree with intuition. Make it rigorous:\n- **Clear rubric + labeled examples** so annotators apply the same standard.\n- **Inter-rater agreement:** ≥2 raters per item on a subset; report Cohen's κ (2 raters) or Fleiss' κ \u002F Krippendorff's α (>2). κ \u003C 0.6 means your rubric is ambiguous — fix the rubric, not the raters. Adjudicate disagreements; they reveal edge cases worth adding to the golden set.\n- **Sample, don't boil the ocean:** stratified sample across categories; size for a tolerable confidence interval (a few hundred items gives useful precision). Blind raters to which system produced which output.\n\n### 3.6 Picking a method\n\n| Output shape | Use | Avoid |\n|---|---|---|\n| Closed labels \u002F schema'd JSON \u002F runnable code | Exact + structural match, F1 | LLM-judge (overkill, noisier) |\n| Short factual answer with a reference | Exact \u002F embedding similarity, LLM-judge as backstop | BLEU\u002FROUGE alone |\n| Long open-ended generation, chat, summaries | LLM-as-judge (rubric) + targeted human sample | BLEU\u002FROUGE\u002Fperplexity as a gate |\n| Choosing between two systems\u002Fprompts | Pairwise LLM-judge or human preference | Pointwise absolute scores (higher variance for ranking) |\n| Subjective quality, safety-critical, new task | Human eval (defines ground truth) | Automated metric as sole signal |\n\nDefault ladder: **make it structured → exact match; if you can't → LLM-judge with a rubric; validate the judge with humans; reserve full human eval for ground-truth and safety.**\n\n---\n\n## 4. Retrieval evals (RAG, search, memory)\n\nRetrieval quality caps everything downstream: the generator cannot answer from context it never saw. Eval the retriever **separately** from the generator. You need a labeled set mapping queries → relevant documents\u002Fchunks (binary relevant, or graded relevance for nDCG).\n\n| Metric | Formula \u002F definition | Answers |\n|---|---|---|\n| **Recall@k** | (# relevant in top-k) \u002F (total relevant) | Did we fetch the right chunks at all? |\n| **Precision@k** | (# relevant in top-k) \u002F k | How much of what we fetched is noise? |\n| **Hit-rate@k** | fraction of queries with ≥1 relevant in top-k | Did we get *anything* useful? |\n| **MRR** | mean of 1\u002Frank of the first relevant result | How high is the first good hit? |\n| **MAP** | mean of average-precision per query | Ranking quality across all relevant items |\n| **nDCG@k** | DCG\u002FIDCG, DCG = Σ relᵢ\u002Flog₂(i+1) | Graded relevance + position-discounted ranking |\n\n`MRR = (1\u002FN) Σ 1\u002Frankᵢ` — only the first relevant hit matters, good for \"one right answer\" lookups. `nDCG` rewards putting *more* relevant items *higher* with graded labels, the right metric when many chunks are partially relevant.\n\n**Context-level RAG metrics** (RAGAS-style):\n- **Context recall** — of the facts needed to answer, what fraction are present in the retrieved context? Low recall = retriever is the bottleneck.\n- **Context precision** — are the relevant chunks ranked above the irrelevant ones? Low precision = reranking\u002Ffiltering problem; also wastes the context window and invites distraction.\n\n**Recall vs precision tradeoff at k:** raising k lifts recall but dilutes precision and bloats the prompt (cost + lost-in-the-middle errors). Tune k against the end-to-end answer metric, not recall in isolation.\n\n**What retrieval evals diagnose.** A low recall@k is rarely \"the embedding model is bad\" — it's usually upstream: chunks too large (relevant fact buried with noise, embedding washed out) or too small (fact split across chunks); the wrong embedding model for the domain; no hybrid (dense + BM25\u002Flexical) so exact-match terms like IDs and error codes are missed; or no reranker so the relevant chunk sits at rank 18. Ablate each: hold the eval set fixed and vary chunk size, embedding model, hybrid on\u002Foff, reranker on\u002Foff — the metric delta attributes the gain. This is why the labeled query→chunk set is worth building once and reusing for every retrieval change.\n\n---\n\n## 5. Grounding, faithfulness, and attribution (the hallucination guards)\n\nA RAG answer can retrieve perfectly and still hallucinate. These metrics check the *generation* against the retrieved context:\n\n- **Faithfulness \u002F groundedness:** is every claim in the answer *supported by* the retrieved context? Decompose the answer into atomic claims, then check each against the context (NLI model or LLM-judge: entailed \u002F contradicted \u002F unsupported). `Faithfulness = supported claims \u002F total claims`. An unsupported-but-true claim still fails grounding — it means the model is generating from parametric memory, which you cannot audit.\n- **Answer relevance:** does the answer actually address the question (vs answering a related question, or padding)? Often scored by generating questions the answer would answer and comparing to the original.\n- **Attribution \u002F citation quality:** when the system cites sources, are the citations correct?\n  - **Citation precision** = correct citations \u002F total citations (no fabricated or wrong-source cites).\n  - **Citation recall** = claims-with-a-supporting-cite \u002F claims-that-need-one (no uncited claims that should be sourced).\n  - A confidently-cited answer where the cited passage doesn't support the claim is the most dangerous failure — it *looks* trustworthy.\n\n**The RAG triad** — measure all three or you can't localize a failure: **context relevance** (retriever), **faithfulness** (generator grounding), **answer relevance** (generator on-task). Low context relevance → fix retrieval. High context relevance + low faithfulness → fix the prompt\u002Fgenerator. High on both + low answer relevance → fix instruction-following.\n\n---\n\n## 6. Building and maintaining an eval set\n\nThe eval set *is* the asset. The model is rented; the labeled eval set is owned IP and the moat.\n\n- **Source from production traces.** Real user inputs beat synthetic ones — they carry the actual distribution, including the weird 5% you'd never invent. Log inputs, outputs, retrieved context, and (when available) user feedback \u002F corrections.\n- **Mine failures continuously.** Every thumbs-down, every escalation, every bug report → a candidate eval case. The failures of today are the regression tests of tomorrow. This is the flywheel: ship → observe failures → add to eval set → fix → the fix is now guarded forever.\n- **Cover the space deliberately.** Stratify by category, difficulty, input length, language, and user segment. Track a coverage matrix; backfill thin cells. Include the boring happy path *and* the long tail.\n- **Size:** start small (50–100 high-signal cases) and grow toward the failure modes that matter. Precision of your pass-rate estimate scales with set size; for tight gates you want a few hundred per critical category.\n- **Freshness:** eval sets rot. New features, new user behavior, new model versions change the distribution. Schedule reviews; retire stale cases; add new ones from recent traces. A two-year-old eval set measures a product that no longer exists.\n- **Avoid train\u002Feval leakage:** never put eval inputs into few-shot prompt examples, fine-tuning data, or the retrieval corpus you're testing against. If the model has seen the answer, the score is fiction. Keep a held-out set the system has *never* been tuned against, and rotate a fresh holdout periodically to detect overfitting to the eval itself.\n- **Version the eval set.** Treat it like code: it's in git, changes are reviewed, and every metric is reported against a named eval-set version so historical numbers stay comparable.\n\n---\n\n## 7. Process — eval-driven development\n\nWire evals into delivery so measurement is automatic, not heroic.\n\n1. **Eval-driven development:** write\u002Fextend the eval set *before* changing the prompt or model, the way TDD writes the test first. Define the metric and target, then iterate until the number moves.\n2. **Run on every change** to prompts, models, retrieval config, chunking, or tooling. No \"I just tweaked one word\" exceptions — that's exactly where regressions hide.\n3. **Thresholds and gates:** the regression suite blocks CI. Define gates per metric (e.g., faithfulness ≥ 0.9, no drop > 2pts vs baseline on the golden set, zero new jailbreak passes). A failing gate is a red build, not a Slack warning everyone mutes.\n4. **Dashboards:** trend metrics per eval-set version over time and per model\u002Fprompt version. A single number today is noise; the trend line is the signal. Slice by category so a localized regression isn't hidden by a healthy average.\n5. **Offline vs online evals.**\n   - **Offline** — fixed eval set, pre-deploy, reproducible, gates releases.\n   - **Online** — production signals: user feedback (👍\u002F👎, edits, retries, abandonment), task-completion rate, automated LLM-judge on a sample of live traffic, latency\u002Fcost. Online catches what your offline set didn't anticipate. Mine **implicit** signals too — they're cheaper and less biased than thumbs: edit-distance between the model's answer and what the user shipped, copy\u002Faccept events, follow-up \"no, I meant…\" turns, regenerate clicks, session abandonment, and downstream success (did the generated code pass CI? did the email get sent?). Route low-scoring live samples straight into the failure-mining queue (§6).\n6. **A\u002FB + canary:** roll a change to a small slice, compare online metrics against control, ramp only if it wins (or holds) on the metrics that matter. Canary first when the blast radius is large.\n7. **Drift detection:** monitor input distribution (new topics, languages, lengths) and output metrics over time. A silent provider model update or a seasonal shift in user behavior degrades quality with no deploy on your side. Cross-reference observability\u002Ftracing to attribute drift. (See an observability\u002Ftracing skill for span-level instrumentation.)\n\n**Aggregation and significance.** A pass rate is an estimate with error bars. Two systems at 84% and 86% on 100 cases are *not* distinguishable — the 95% CI on a proportion is roughly ±10pts at n=100, ±3pts at n=1000. Before declaring a winner: report the confidence interval (Wilson interval for proportions), and for paired comparisons on the same inputs use a paired test (McNemar's for pass\u002Ffail, bootstrap for continuous scores). Run non-deterministic systems **k times per input** (k≥3) and average to separate true change from sampling noise. \"It went up 2 points\" on a tiny set is the single most common way teams ship a regression while celebrating.\n\n**Quality is not the only axis.** Every eval run should also report **cost** (tokens\u002F$ per task) and **latency** (p50\u002Fp95 end-to-end). A change that lifts faithfulness 1pt while doubling cost or pushing p95 past your budget is often a net loss — surface all three so the decision is honest. The cheaper model that's \"98% as good\" is frequently the right call, and only a multi-axis eval makes that visible.\n\n**Tooling.** You can hand-roll evals (a JSONL set + a scoring script + a CI job — start here, it's a day of work). Mature options: RAGAS (RAG faithfulness\u002Frelevance\u002Fcontext metrics), promptfoo and DeepEval (declarative eval suites + CI), Braintrust \u002F LangSmith \u002F Langfuse (eval + tracing + dashboards), OpenAI Evals \u002F inspect-ai (framework-grade harnesses). Pick one once you've outgrown the script; don't let tool selection delay having *any* eval.\n\n> Every metric should map to a decision. If a number can't change what you ship, stop computing it.\n\n---\n\n## 8. Do \u002F Don't\n\n**Do**\n- Make the task structured (closed labels, schema-validated JSON) whenever you can — exact match beats every fuzzy grader.\n- Validate your LLM judge against human labels and report agreement before trusting it.\n- Build the eval set from real production traces and mined failures.\n- Gate CI on a frozen regression suite; block the build on a drop.\n- Eval retriever and generator separately, then end-to-end.\n- Measure grounding\u002Ffaithfulness and citation accuracy for any RAG system.\n- Version eval sets and report metrics against a named version.\n- Randomize order and control for length in pairwise LLM-as-judge.\n\n**Don't**\n- Ship on vibes or a handful of cherry-picked examples.\n- Gate releases on BLEU\u002FROUGE\u002Fperplexity for open-ended generation.\n- Use the same model family as both generator and judge (self-preference).\n- Leak eval inputs into prompts, few-shot, fine-tuning, or the retrieval corpus.\n- Let the eval set go stale or stay tiny for a system that's grown.\n- Optimize a proxy metric until it decouples from the real task (Goodhart).\n- Trust a single average — slice by category and watch the trend.\n- Run an unvalidated, unpinned judge whose verdicts drift run to run.\n\n---\n\n## 9. Failure modes (the ones that bite in production)\n\n- **No eval set →** silent regressions. The most common and most expensive failure: quality drops on a model\u002Fprompt change and you find out from churn, not CI.\n- **Judge bias →** position\u002Fverbosity\u002Fself-preference skew the metric; you optimize toward the bias (longer, more confident, same-family answers) instead of quality.\n- **Tiny or stale set →** a pass rate with a huge confidence interval, or one that measures a product you no longer ship. Looks green, means nothing.\n- **Train\u002Feval leakage →** inflated scores that collapse in production. The model memorized the test.\n- **Measuring perplexity, not task →** low perplexity ≠ correct answers, faithful grounding, or completed tasks. Perplexity is a language-modeling metric, not a product metric.\n- **Gaming the metric (Goodhart) →** the system learns to satisfy the grader, not the user — verbose answers to please a length-biased judge, keyword-stuffed text to please ROUGE, refusals to dodge a safety metric. Rotate held-out sets and keep humans in the loop to detect it.\n- **No regression gate →** a \"harmless\" prompt tweak quietly breaks 8% of prod traffic because nothing blocked the merge.\n- **Averaging away a regression →** overall score flat, but a critical category cratered. Always slice.\n- **Retriever-only evaluation →** 95% recall@k and the end-to-end answer is still wrong because the generator ignored or contradicted the context. Grounding eval is mandatory, not optional.\n- **Citing without verifying citations →** answers that *look* sourced but cite passages that don't support the claim — the highest-trust, highest-risk failure.\n\n---\n\n## 10. Minimum viable eval program\n\nIf you do nothing else, do this, in order:\n\n1. A **golden set** of 50–100 real, human-verified `input → expected\u002Frubric` cases from production traces.\n2. A **regression gate** in CI that runs that set and blocks merges on a drop.\n3. For RAG: **retrieval metrics** (recall@k, MRR) + a **faithfulness** check on answers.\n4. An **LLM-as-judge** with a written rubric, a non-self judge model, and a **one-time human validation** of its agreement.\n5. **Online feedback** capture (👍\u002F👎 + edits) feeding new failures back into the golden set.\n\nThat loop — measure, gate, observe, mine failures, grow the set — is the entire discipline. Everything else is refinement.\n",{"name":5,"tags":23,"description":7},[24,25,26,27],"ai-engineering","evals","testing","llm-as-judge","main","4911ae44bbb35beef4511ba298475ba5a82b7e1c","ai-engineering-skills\u002Fllm-evals-and-retrieval-quality",0,"https:\u002F\u002Fgithub.com\u002Fjpoindexter\u002FVanta","https:\u002F\u002Fdocs.vanta.theft.studio","https:\u002F\u002Fgithub.com\u002Fjpoindexter","jason.theft.studio","Just some guy trying to build stuff","2026-11-12 17:11:35",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add jpoindexter\u002FVanta --skill llm-evals-and-retrieval-quality",{"tool":44,"command":45},"bunx","bunx skills add jpoindexter\u002FVanta --skill llm-evals-and-retrieval-quality",{"tool":47,"command":48},"pnpm","pnpm dlx skills add jpoindexter\u002FVanta --skill llm-evals-and-retrieval-quality","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjpoindexter\u002FVanta\u002Fblob\u002Fmain\u002Fai-engineering-skills\u002Fllm-evals-and-retrieval-quality\u002FSKILL.md",true,[],[53,60,67,74,81,87],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M7582PEM7XM8B98VFRDV0C0J","write-changelog","Turn a range of commits into a user-facing changelog","https:\u002F\u002Fgithub.com\u002Fjpoindexter\u002FVanta\u002Fblob\u002Fmain\u002Fvanta-ts\u002Fsrc\u002Fmigrate\u002F__fixtures__\u002Fopenclaw\u002Fskills\u002Fwrite-changelog\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M7582KTQJMP5Y7GS83MS1C7Z","debug-flaky-test","Reproduce and isolate a flaky test before fixing it","https:\u002F\u002Fgithub.com\u002Fjpoindexter\u002FVanta\u002Fblob\u002Fmain\u002Fvanta-ts\u002Fsrc\u002Fmigrate\u002F__fixtures__\u002Fopenclaw\u002Fskills\u002Fdebug-flaky-test\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M7582HG7XFM4Z5NGG1YFECT8","triage-incident","First 10 minutes of an incident — stabilize, then diagnose","https:\u002F\u002Fgithub.com\u002Fjpoindexter\u002FVanta\u002Fblob\u002Fmain\u002Fvanta-ts\u002Fsrc\u002Fmigrate\u002F__fixtures__\u002Fhermes\u002Fskills\u002Ftriage-incident\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M7582DQABK7A96XHMB770KQZ","writing-plans","Write implementation plans: bite-sized tasks, paths, code.","https:\u002F\u002Fgithub.com\u002Fjpoindexter\u002FVanta\u002Fblob\u002Fmain\u002Fvanta-ts\u002Fskills-library\u002Fwriting-plans\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M7582BBK8H0HGSXKK08FCXJ1","vanta-port-adapter","https:\u002F\u002Fgithub.com\u002Fjpoindexter\u002FVanta\u002Fblob\u002Fmain\u002Fvanta-ts\u002Fskills-library\u002Fvanta-port-adapter\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":18},"01M75828P8PX5XSBMJ2BVVDA9Y","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002Fjpoindexter\u002FVanta\u002Fblob\u002Fmain\u002Fvanta-ts\u002Fskills-library\u002Ftest-driven-development\u002FSKILL.md",[],[]]