rag-systems
Installation
SKILL.md
RAG systems
Pipeline stages
- Ingest — parse, clean, preserve structure (headings, tables).
- Chunk — size/overlap tuned to content type; keep metadata (source, section).
- Embed — consistent model; version stored with index.
- Retrieve — hybrid (keyword + vector) when recall matters.
- Rerank — optional cross-encoder for top-k precision.
- Generate — cite sources; refuse when context insufficient.
Chunking heuristics
| Content | Guidance |
|---|---|
| Docs | Split on headings; 300-800 tokens typical |
| Code | Function/class level; include path in metadata |
| Tables | Row batches or markdown table blocks |