Agent Skillsmohitagw15856/pm-claude-skills › rag-architecture-review

rag-architecture-review

GitHub

用于审查现有RAG系统性能,通过分阶段分析(摄取、检索等)定位幻觉或错误回答的根本原因,并提供优先级修复方案。

exports/openclaw/rag-architecture-review/SKILL.md mohitagw15856/pm-claude-skills

触发场景

审查RAG管道架构 诊断聊天机器人产生错误或非基于上下文的答案 优化已构建的知识助手性能

安装

npx skills add mohitagw15856/pm-claude-skills --skill rag-architecture-review -g -y
更多选项

非标准路径

npx skills add https://github.com/mohitagw15856/pm-claude-skills/tree/main/exports/openclaw/rag-architecture-review -g -y

不安装直接使用

npx skills use mohitagw15856/pm-claude-skills@rag-architecture-review

指定 Agent (Claude Code)

npx skills add mohitagw15856/pm-claude-skills --skill rag-architecture-review -a claude-code -g -y

安装 repo 全部 skill

npx skills add mohitagw15856/pm-claude-skills --all -g -y

预览 repo 内 skill

npx skills add mohitagw15856/pm-claude-skills --list

SKILL.md

Frontmatter
{
    "name": "rag-architecture-review",
    "homepage": "https:\/\/mohitagw15856.github.io\/pm-claude-skills\/skill\/rag-architecture-review.html",
    "metadata": {
        "openclaw": {
            "emoji": "🤖"
        }
    },
    "description": "Review an existing Retrieval-Augmented Generation system and find why it underperforms. Use when asked to review or audit a RAG pipeline, diagnose wrong\/ungrounded answers from a 'chat with your docs' feature, or improve an already-built knowledge assistant. Produces a staged review — ingestion, chunking, retrieval, reranking, generation, evaluation — with prioritised findings, root causes, and concrete fixes."
}

RAG Architecture Review Skill

A RAG system that "hallucinates sometimes" is almost never one bug — it's a chain where the weakest stage caps quality, and the symptom (a wrong answer) is far from the cause (a chunk that was never retrieved). This skill reviews an existing pipeline stage by stage, isolates where quality leaks, and ranks fixes by impact so you work the biggest lever first. (Designing a new system from scratch? Use rag-design-doc.)

Working from a brief

Given a partial description ("it uses pgvector and sometimes makes things up"), deliver the full staged review anyway — infer the likely setup for each unstated stage, label the inference, and flag what to confirm. Never withhold the review for missing detail; a labelled assumption plus "confirm this" beats a blank.

Required Inputs

Ask for these only if they aren't already provided (else infer and label):

  • The current architecture — ingestion, chunking, embedding model, vector store, retrieval (top-k, hybrid?), reranking, and the generation prompt.
  • The symptoms — examples of bad answers (wrong, ungrounded, stale, refuses) with the expected answer.
  • The corpus — what's retrieved over, its size, structure, and update frequency.
  • Constraints — latency, cost, and per-tenant/permission isolation needs.

Output Format

RAG Review: [system]

1. Summary — the headline: where quality is leaking and the top 3 fixes, in priority order.

2. Stage-by-stage findings — for each stage, what's working, what's not, and why:

Stage Finding Severity Root cause Fix
Chunking 1500-tok fixed chunks split tables mid-row High structure-blind splitting structure-aware chunking + metadata
Retrieval pure vector, no keyword High exact IDs/terms missed add hybrid (BM25 + dense)
Generation weak grounding instruction Med model answers from prior "answer only from context; else say unknown"

3. Diagnosis: symptom → stage — map each reported bad answer to the stage that caused it, so fixes target the real cause (a confident-but-wrong answer is usually retrieval, not the LLM).

4. Prioritised fix plan — ordered by impact-to-effort, with the one change likely to move quality most first.

5. Evaluation gap — whether retrieval quality (recall@k, MRR) is measured separately from answer quality (faithfulness, correctness); if not, that's finding #1 — you can't fix what you can't isolate. Pair with an ai-eval-plan.

Quality Checks

  • Every reported symptom is traced to a specific stage, not blamed on "the model"
  • Retrieval quality and answer quality are evaluated separately (or that gap is finding #1)
  • Findings are severity-ranked and the fix plan is ordered by impact, not by stage order
  • Hybrid retrieval and reranking are assessed for queries with exact terms/IDs
  • Grounding instruction and "I don't know" behaviour are checked in the generation stage
  • Per-tenant / permission isolation is verified in retrieval, not just the UI

Anti-Patterns

  • Do not recommend fine-tuning the model when the failure is in retrieval — fix what's retrieved first
  • Do not review only the generation prompt — most RAG quality is won or lost before the LLM sees anything
  • Do not present findings without severity and priority — a flat list doesn't tell the team what to do Monday
  • Do not assume the corpus is fine — stale or badly-structured source data caps every downstream stage
  • Do not skip the eval gap — without separated metrics, every fix is a guess

Based On

Retrieval-Augmented Generation practice — staged diagnosis, separated retrieval/answer evaluation, hybrid retrieval, and grounded generation.

版本历史

  • 54fad50 当前 2026-07-19 12:29

同 Skill 集合

exports/openclaw/360-feedback-template/SKILL.md
exports/openclaw/401k-plan-decoder/SKILL.md
exports/openclaw/ab-test-planner/SKILL.md
exports/openclaw/ab-test-readout/SKILL.md
exports/openclaw/accessibility-audit/SKILL.md
exports/openclaw/account-plan/SKILL.md
exports/openclaw/acquirer-red-team/SKILL.md
exports/openclaw/ad-copy/SKILL.md
exports/openclaw/aeo-optimizer/SKILL.md
exports/openclaw/agenda-or-cancel/SKILL.md
exports/openclaw/agent-design-review/SKILL.md
exports/openclaw/agent-hiring-panel/SKILL.md
exports/openclaw/agent-observability-spec/SKILL.md
exports/openclaw/agent-severance/SKILL.md
exports/openclaw/agent-spec/SKILL.md
exports/openclaw/agm-in-a-box/SKILL.md
exports/openclaw/ai-ethics-review/SKILL.md
exports/openclaw/ai-eval-plan/SKILL.md
exports/openclaw/ai-feature-prd/SKILL.md
exports/openclaw/ai-product-canvas/SKILL.md
exports/openclaw/air-quality/SKILL.md
exports/openclaw/altitude-shifter/SKILL.md
exports/openclaw/ambiguity-resolver/SKILL.md
exports/openclaw/analyst-relations-brief/SKILL.md
exports/openclaw/announcement-card/SKILL.md
exports/openclaw/api-docs-writer/SKILL.md
exports/openclaw/api-test-plan/SKILL.md
exports/openclaw/api-versioning-strategy/SKILL.md
exports/openclaw/apology-letter/SKILL.md
exports/openclaw/architecture-decision-record/SKILL.md
exports/openclaw/architecture-diagram/SKILL.md
exports/openclaw/archive-strategy/SKILL.md
exports/openclaw/assumption-bounty/SKILL.md
exports/openclaw/assumption-mapper/SKILL.md
exports/openclaw/async-update-format/SKILL.md
exports/openclaw/auto-repair-estimate-decoder/SKILL.md
exports/openclaw/autopilot-charter/SKILL.md
exports/openclaw/awkward-message-helper/SKILL.md
exports/openclaw/behavior-intervention-plan/SKILL.md
exports/openclaw/benefits-decoder/SKILL.md
exports/openclaw/bennett-time-audit/SKILL.md
exports/openclaw/bid-tender-review/SKILL.md
exports/openclaw/board-deck-narrative/SKILL.md
exports/openclaw/board-game-designer/SKILL.md
exports/openclaw/board-game-night-planner/SKILL.md
exports/openclaw/board-minutes/SKILL.md
exports/openclaw/board-pre-read/SKILL.md
exports/openclaw/bom-cost-review/SKILL.md
exports/openclaw/bookkeeping-categorization/SKILL.md
exports/openclaw/boolean-search-builder/SKILL.md

元信息

文件数
0
版本
c3bc7df
Hash
65b31005
收录时间
2026-07-19 12:29

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-11 02:09
浙ICP备14020137号-1 $访客地图$