AI RAG Defense
Knowledge from "Context Engineering for Multi-Agent Systems" (Chapters 6-7). The reduction, fidelity, and defense layers that turn a working engine into a trustworthy one.
Quick Start
- Check
guidelines.mdto find which files to load - Load only relevant files (each topic has knowledge.md, rules.md, examples.md)
- Apply guidance to your work
Contents
References
| Category | Purpose |
|---|---|
summarizer-agent |
Cost-management agent for proactive context reduction |
micro-context-engineering |
Prompt design inside agents (macro vs micro) |
high-fidelity-rag |
Source-metadata-on-chunks pattern, citations-mandatory Researcher |
input-sanitization |
Untrusted context boundary, prompt-injection threat model + smells |
grounded-reasoning |
Report-negative-finding pattern, multi-case validation |
Workflows
| Workflow | Purpose |
|---|---|
workflows/add-summarizer.md |
Integrate Summarizer agent for proactive context reduction |
workflows/add-citations.md |
Upgrade RAG to high-fidelity (source metadata + cite) |
workflows/defend-against-injection.md |
Add untrusted-context boundary + run grounded-reasoning validation suite |
Guidelines
See guidelines.md for task-based file selection.