Operating-system distillation of LlamaIndex — the leading RAG / document-agent
framework. Activate when the calling agent must build, debug, harden, or evaluate
a Retrieval-Augmented Generation pipeline over unstructured/private data, decide
between RAG primitives (Index types, retrievers, query engines, routers, agents),
or pick LlamaIndex vs LangChain / Haystack / raw vector store for a coding task.
Encodes the 5-layer mental model (Documents → Nodes → Indices → Retrievers →
Query Engines / Response Synthesizers), the canonical RAG bootstrap SOP from
baseline `VectorStoreIndex` through hybrid + reranker + eval-loop hardening,
the official 13-failure-mode checklist, and 5 dilemma cases distilled from docs,
GitHub issues, and 2025 production post-mortems.