retrieval-evaluation

retrieval-evaluation is a skill for Claude Code, Codex from KimYx0207/Kim_Service. It costs 79 tokens per session (727 once invoked), scanned A, original, MIT.

A retrieval-quality evaluation checks whether a search system finds the right documents and puts them in a useful order. RAG, or retrieval-augmented generation, is a system that first retrieves documents for an answer, so this evaluates that retrieval step separately from answer writing.

In plain words
What is it for?
Use it to compare search systems or document chunking, calculate measures such as Recall@k and MRR, examine results by language or task, and choose the next focused test.
Why use it?
It shows whether poor answers come from missing documents, filtering, ranking, or incorrect labels. Fixed questions, documents, and held-out examples make comparisons more trustworthy.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to compare search systems or document chunking, calculate measures such as Recall@k and MRR, examine results by language or task, and choose the next focused test.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kimyx0207/kim_service/retrieval-evaluation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add KimYx0207/Kim_Service --skill retrieval-evaluation
Clone the repo
git clone --depth 1 https://github.com/KimYx0207/Kim_Service

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for retrieval-evaluation

README.md
[![agentmods](https://agentmods.dev/badge/skills/kimyx0207/kim_service/retrieval-evaluation/github.svg)](https://agentmods.dev/skills/kimyx0207/kim_service/retrieval-evaluation)
Your own site
<a href="https://agentmods.dev/skills/kimyx0207/kim_service/retrieval-evaluation"><img src="https://agentmods.dev/badge/skills/kimyx0207/kim_service/retrieval-evaluation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for retrieval-evaluation

Your own site · 80×15
<a href="https://agentmods.dev/skills/kimyx0207/kim_service/retrieval-evaluation"><img src="https://agentmods.dev/badge/skills/kimyx0207/kim_service/retrieval-evaluation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 727 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00079 $0.00727
Opus 5.5 $0.00032 $0.00291
Sonnet 5.5 $0.00016 $0.00145
Haiku 4.5 $0.00008 $0.00073

Measured 15d ago against content hash 9020711d1301, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

retrieval-evaluation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 15d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/score-retrieval.mjs, tests/calculation.test.mjs, tests/contract.test.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/retrieval-evaluation/SKILL.md · 49 lines

What it actually says

检索质量评估

用独立标注和固定语料判断检索是否找到了相关材料,区分召回、排序与答案质量。

输入与开始方式

  • dataset:问题、相关文档ID、标注规则与留出划分。无标注先建设小型分层评价集。
  • runs:相同语料版本下各查询返回的有序ID与分数。缺完整运行记录先按现有样本诊断。
  • policy:k值、过滤权限、空结果处理及统计口径。先声明指标定义;无相关项单列不可计算。

缺少非关键资料时,先给明确假设下的草案或局部结果;资料补齐后只重验受影响部分。授权已覆盖的可逆工作继续,不重复确认。

执行

  1. 固定问题、语料、权限范围和相关性定义,检查重复或泄漏标签。 核语料、用户身份与策略版本;来源更新/撤回涉及派生知识时,记录模型实际看到的材料,按需把生命周期审查交 knowledge-architecture-evaluation。
  2. 按相同k取得各版本有序结果,记录无结果和异常。
  3. 逐题去重计算命中、召回及首个相关位置,再按约定聚合。
  4. 分语言/任务/难度比较结果,回读失败文档定位原因。
  5. 选择一个最可能原因做下一次试验,保持独立留出集不参与调参。

按需要读 专业方法 和 完整案例。

交付

  • metrics:召回与排序指标。
  • slices:分层和回归结果。
  • diagnosis:错误归因。
  • nextExperiment:下次试验。
  • lifecycleFindings / evaluationBoundary:适用时记录更新、撤回、权限、派生缓存和真实/合成观察边界;检索 ID 算分不能证明这些操作已执行。

检查结果

  • 明确P@k/Recall@k/MRR定义,去重文档并保留空结果和无标签情况。
  • 按问题类别、语言和权限比较同题版本,报告分子分母。
  • 区分缺文档、过滤、召回、排序和标注错误,回读原文。
  • 每次改变可解释因素,保留基线和独立留出题。

检查方法和证据要求在 method.json;参考 作者正反例 识别实际错误。

需要额外处理的动作

使用真实敏感语料或新增模型评分费用依当前授权;离线ID评分和标签审查可继续。

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 15d ago Changed · +2 lines 9020711d1301
  2. 19d ago First seen · 47 lines · 79 tokens per session scan A 087e5742288e

Subscribe to this mod's changes

retrieval-evaluation is a skill published in the GitHub repository KimYx0207/Kim_Service (198 stars, last pushed 12d ago), licensed MIT. It adds 79 tokens to every session and 727 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-11.

Related

retrieval-evaluation compared with skills from other repositories

retrieval-evaluation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
retrieval-evaluationKimYx0207/Kim_ServiceSkill19812d agoMITA79Claude Code, Codex
agent-platform-rag-engine-managementgoogle/skillsSkill25ktodayApache-2.0A85Claude Code, Codex
embeddingsruvnet/rufloSkill83ktodayMITA62Claude Code
llm-app-patternsdavila7/claude-code-templatesSkill34ktodayMITA54Claude Code, Codex
graphifyGraphify-Labs/graphifySkill155kyesterdayApache-2.0B76Claude Code
9router-embeddingsdecolua/9routerSkill33k7d agoMITA66Claude Code, Codex
eddtruera/trulensSkill3.7k2d agoMITA63Claude Code, Codex