AI RAG and Agents
Knowledge from "AI Engineering" by Chip Huyen (Chapter 6). Practical guidance for building retrieval-augmented and agentic systems.
Quick Start
- Check
guidelines.mdto find which files to load for your task - Load only relevant files (each topic has knowledge.md, rules.md, examples.md)
- Apply guidance to your work
Contents
References
| Category | Purpose |
|---|---|
rag-architecture |
RAG overview, architecture, when to use RAG |
retrieval-algorithms |
Term-based (BM25, TF-IDF), embedding-based, hybrid retrieval |
retrieval-optimization |
Chunking strategies, reranking, query rewriting, contextual retrieval, multimodal RAG, tabular RAG |
agent-overview |
Agent definition, tools (knowledge augmentation, capability extension, write actions) |
agent-planning |
Plan generation, reflection, error correction, tool selection |
agent-failures |
Planning failures, tool failures, efficiency issues, evaluation |
agent-memory |
Memory systems for agents and conversations |
Workflows
| Task | Workflow |
|---|---|
| Build a RAG system end-to-end | workflows/build-rag.md |
| Build an agent end-to-end | workflows/build-agent.md |
| Diagnose and fix agent failures | workflows/debug-agent.md |
Guidelines
See guidelines.md for task-based file selection.