rag-architecture

Installation
SKILL.md

RAG architecture

Verified 2026-07-29. Model names, prices and benchmark positions in this space go stale in months — treat every named model below as an example of a class, not a recommendation to copy.

1. When RAG fails, it is retrieval that failed

Industry analysis through 2026 consistently puts the failure point at retrieval roughly three quarters of the time, not generation. The visible symptom is a bad answer, so the instinct is to edit the prompt — and prompt edits cannot recover a chunk that never entered the context.

Before touching the prompt, ask: was the right chunk retrieved at all? Log the retrieved chunk ids for every query. That single log line separates "the model ignored good context" from "the model never saw it", and those have opposite fixes.

2. RAG vs CAG vs long context — a routing decision, not a religion

Installs
2
GitHub Stars
6
First Seen
Sep 28, 2026