CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

rag-pipeline

构建或调优 RAG 检索管道时使用——涵盖文档分块策略与参数、稠密嵌入(BGE-M3、余弦相似度、ANNOY/HNSW 选型)、稀疏嵌入(TF-IDF 到 BM25)、混合检索三阶段(并行召回、RRF 融合、跨编码器重排序)与 recall@k/MRR/nDCG 指标,含稀疏 vs 稠密的胜负判断。

Quality

82%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

63%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A well-organized, knowledge-dense reference with genuinely useful curated parameters, model recommendations, and decision tables, plus a clear three-stage pipeline and staged-metric validation guidance. Main weaknesses: textbook explanations Claude already knows inflate token cost, no explicit feedback loop for tuning, and every referenced external path is absent from the skill bundle.

Suggestions

Remove or compress known-concept explanations (the king-queen vector analogy, why RAG exists, the inverted-index-as-book-index analogy, the headhunter/interviewer metaphor) — keep only the non-obvious curated details like parameter values and failure-mode judgments.

Verify or fix the companion paths: chapter3/retrieval-pipeline/, chapter3/dense-embedding/, chapter3/sparse-embedding/, and book/chapter3.md do not exist in the skill bundle — either ship them in references/ or remove the dangling pointers.

Add an explicit tuning feedback loop, e.g., 'run the test-query set, report recall@k per stage; if dense recall is low → adjust chunk size/overlap, if fusion is weak → check RRF k, if top-k precision is low → add/strengthen the reranker' to turn the implicit validation guidance into a validate→fix→re-measure workflow.

DimensionReasoningScore

Conciseness

The body is mostly efficient and contains high-value curated specifics ("每块 256-1024 token、重叠 10%-20%", "常用 k1=1.5、b=0.75", "DF > N/2 时取值为负,实现需设下限"), but it also spends tokens on concepts Claude already knows: the king-queen analogy ("'国王' - '男性' + '女性' ≈ '女王'"), why RAG exists ("模型训练数据有截止日期"), what an inverted index is ("如同书末术语索引页"), and the headhunter/interviewer metaphor. This matches 'mostly efficient but includes some unnecessary explanation that could be tightened' rather than the noticeably-padded level 2 or the minor-trim level 4.

3 / 5

Actionability

Guidance is concrete and executable in intent: parameter starting points ("重叠 10%-20%", "k1=1.5、b=0.75", "RRF…k 常取 60", "候选池前约 50 个用跨编码器"), named models (BGE-M3, bge-reranker-v2-m3), a query-type decision table, and companion code directories with described functionality. As an instruction-only skill the absence of inline code is not penalized, but there are minor gaps — no inline commands and the referenced code paths are not part of the skill bundle — placing it just below fully copy-paste-ready guidance.

4 / 5

Workflow Clarity

Multi-step processes are clearly sequenced: "分块 → 索引 → 检索 → 注入生成" and "并行检索 → 结果融合 → 神经重排序", with a staged-validation checkpoint ("流水线每一级(稠密、稀疏、融合、重排)都单独报告指标,才能定位是哪一级丢的召回"). However, the fix-and-retry feedback loop is only implicit (hints like "检索质量不达标时定位调优(分块大小、融合方式、是否加重排序)" exist but no explicit validate→adjust→re-measure loop), matching 'clear sequence with most checkpoints; minor validation gaps'.

4 / 5

Progressive Disclosure

Structure is good: well-organized sections (何时使用/核心原则/实践模式/常见陷阱/配套代码/深度阅读) with references clearly signaled one level deep in a dedicated section ("chapter3/retrieval-pipeline/ — 稠密 + 稀疏 + RRF 融合…完整流水线"). However, none of the referenced paths (chapter3/*, book/chapter3.md) exist in the skill bundle — there are no references/, scripts/, or assets/ directories — so the pointers are dangling within the skill, and some dense inline parameter detail could live in reference files. This sits between the well-structured anchor 4 and anchor 3's problematic references; the clearly signaled but unverifiable references keep it at the lower bound of 4 rather than 5.

4 / 5

Total

15

/

20

Passed

Description

92%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description: explicit use-when trigger, comprehensive and specific capability list with named technologies, third-person voice, and a clear niche. The only weakness is modest synonym coverage for trigger terms in the target language (e.g., no mention of vector search or knowledge-base phrasing).

DimensionReasoningScore

Specificity

The description enumerates multiple concrete capabilities with named technologies: "文档分块策略与参数、稠密嵌入(BGE-M3、余弦相似度、ANNOY/HNSW 选型)、稀疏嵌入(TF-IDF 到 BM25)、混合检索三阶段(并行召回、RRF 融合、跨编码器重排序)与 recall@k/MRR/nDCG 指标". Coverage spans the full pipeline domain (chunking, dense, sparse, hybrid, metrics), matching the comprehensive multi-action anchor; a score of 4 would require minor coverage gaps that are not present.

5 / 5

Completeness

It explicitly answers both questions: "构建或调优 RAG 检索管道时使用" is a concrete when-trigger, and the "涵盖…" clause clearly states what the skill covers. Both what and when are present with concrete trigger phrases, matching the top anchor; score 4 would require a weaker or less explicit 'when', which is not the case.

5 / 5

Trigger Term Quality

Good natural keyword coverage for the domain: "RAG 检索管道", "分块", "稠密嵌入", "稀疏嵌入", "BM25", "混合检索", "重排序", "recall@k/MRR/nDCG" — terms a user needing this skill would plausibly say. A few common variations are missing (e.g., "向量检索", "语义搜索", "知识库检索"), so it fits 'good coverage, a few natural terms missing' rather than the fully comprehensive anchor.

4 / 5

Distinctiveness Conflict Risk

"构建或调优 RAG 检索管道" names a clear niche with distinctive trigger vocabulary (chunking, hybrid retrieval, reranking, retrieval metrics) that no generic skill would claim. Conflict risk with other skills is minimal; it does not fit the 'minor overlap with closely related skills' anchor of 4.

5 / 5

Total

19

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

bojieli/ai-agent-book

Path

skills/rag-pipeline/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.