| name | retrieval-rag-systems |
| description | Design, evaluate, and debug retrieval and RAG systems including indexing, chunking, embedding choice, reranking, context packing, citation grounding, and latency-cost tradeoffs. Use when building or auditing a search, QA, or agent memory stack for research or production. |
Retrieval RAG Systems
Use this skill when a retrieval pipeline needs to be treated as a system, not a prompt.
Core Workflow
- Define the task and what counts as grounded success.
- Decompose the pipeline:
- ingestion,
- cleaning,
- chunking,
- embedding,
- retrieval,
- reranking,
- context construction,
- generation.
- Add evaluation at both retrieval and answer levels.
- Measure recall, precision, latency, cost, and citation faithfulness separately.
- Audit failure cases by query type and document source.
Execution Rules
- Do not judge the system by answer quality alone.
- Keep retrieval metrics separate from generation metrics.
- Treat chunking and metadata as major model choices.
- Check contamination, stale indices, and duplicate passages.
Output Contract
Return:
- Pipeline map.
- Measurement plan.
- Failure buckets.
- Ranked interventions.
- Risks around grounding, cost, and latency.