跳到正文
cccskills
免费在 GitHub 公开

docs-search

Search documentation effectively for agents: index docs, query precisely, and cite sources. Use when agents need accurate answers from documentation rather than guesses.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md3.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Docs Search

Overview

Agents hallucinate when they guess; docs search grounds them in written sources. The pattern: indexed documentation, precise queries, cited answers.

Effective docs search for agents means: curated doc sets, chunked and indexed content, query expansion, and answers that cite their sources.

Goal: every factual claim traceable to a doc passage — no confident inventions.

When to use

  • Agent answering questions from documentation
  • Building a knowledge base agents can query
  • Reducing hallucinations in agent responses
  • Onboarding agents to a codebase or product
  • Keeping agent answers current with doc updates

Core concepts

  • Curated doc sets. Index the right docs: official, current, complete. Garbage in, garbage out — curation beats index size.
  • Chunking. Split docs into retrievable passages (sections, not whole pages). Good chunks: self-contained, titled, with context.
  • Query expansion. Expand user questions into 2-3 search phrasings, including synonyms and related terms. One phrasing misses; several hit.
  • Hybrid retrieval. Keyword (BM25) + semantic (embeddings) together. Keywords catch exact terms; semantics catch paraphrases. Hybrid beats either alone.
  • Reranking. Rerank top candidates with a stronger model/scorer before answering. Retrieval gets candidates; reranking picks winners.
  • Cited answers. Every claim linked to its source passage. Citations let humans verify and agents stay honest.
  • Freshness. Docs change; indexes must follow. Re-index on doc updates; flag answers sourced from outdated passages.
  • Fallback honesty. No good source found? Say so. 'Not in the docs' beats a fabricated answer every time.

Practical workflow

  1. Curate the corpus. Select authoritative, current docs. Exclude drafts, duplicates, and deprecated versions. Document what's indexed.
  2. Chunk and index. Section-level chunks with titles and metadata (source, version, date). Build keyword + semantic indexes.
  3. Expand queries. For each question: 2-3 phrasings with synonyms. Search all; merge and dedupe results.
  4. Retrieve and rerank. Hybrid retrieval for candidates, rerank top 20 -> top 5. Quality over quantity in the answer context.
  5. Answer with citations. Compose from retrieved passages only; cite each claim to its passage. No source = no claim.
  6. Handle gaps honestly. Weak or no sources: say what's missing, suggest where to look. Never fill gaps with invention.
  7. Maintain freshness. Re-index on doc changes; version the index; surface source dates in answers.
  8. Evaluate regularly. Test questions with known answers; measure retrieval hit rate and answer accuracy. Improve chunking/queries from failures.

Common pitfalls

  • Uncurated indexes. Indexing everything including drafts and deprecated docs. Stale/wrong sources produce confident wrong answers.
  • Whole-page chunks. Retrieving 5,000-word pages as 'passages.' Chunk by section; precision matters.
  • Single-phrasing queries. One literal query missing paraphrased content. Expand phrasings or miss half the corpus.
  • Citation-free answers. Fluent answers with no sources. Unverifiable = untrustworthy, however fluent.
  • Fabrication on gaps. No source found, answer invented anyway. The cardinal sin of docs search — always admit gaps.
  • Stale indexes. Docs updated, index months old. Answers cite superseded information confidently.
  • Keyword-only or semantic-only. Each misses what the other catches. Hybrid retrieval is the standard for a reason.
  • No evaluation. Never testing whether retrieval actually works. A test set of known Q&A pairs keeps the system honest.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Master 1Password: vaults, Watchtower, passkeys, SSH agent, CLI, and family/team administration. Use when getting full value from 1Password personally or administering it for others.

中文简介正在准备中。当前显示原文说明。

aicodedecode/awesome-muse-skills282026年10月10日 更新

Create 3D visuals with modeling, texturing, lighting, rendering, and optimization for web and product.

中文简介正在准备中。当前显示原文说明。

aicodedecode/awesome-muse-skills282026年10月10日 更新

Create 3D web experiences: scene setup, models, materials, lighting, animation, scroll-driven scenes, and performance budgets. Use when adding 3D to websites beyond basic demos.

中文简介正在准备中。当前显示原文说明。

aicodedecode/awesome-muse-skills282026年10月10日 更新

Writing abstracts that get papers read — structured content, the 5-sentence core, and journal-specific constraints.

中文简介正在准备中。当前显示原文说明。

aicodedecode/awesome-muse-skills282026年10月10日 更新

Learn effectively from courses and academies: choosing programs, studying actively, and converting courses into skills. Use when investing time/money in structured learning.

中文简介正在准备中。当前显示原文说明。

aicodedecode/awesome-muse-skills282026年10月10日 更新

Audit designs for accessibility with WCAG checklists covering color, type, focus, motion, and content.

中文简介正在准备中。当前显示原文说明。

aicodedecode/awesome-muse-skills282026年10月10日 更新

查看 aicodedecode 的全部技能

报告此技能的问题