From RAG to context engineering: how agent retrieval evolved through three eras
mdancho84 · x · 2026-10-13
Matt Dancho's thread argues context engineering isn't just RAG rebranded — both solve the same problem of building the right context for your LLM, but the paradigm has shifted through three stages:
- RAG (2020–2023): fixed one-shot pipeline — retrieve, inject, generate. Rigid; the LLM had no say in its context window.
- Agentic RAG (2023–2024): retrieval becomes a tool the agent can call or skip, with multi-hop retrieval and index routing. The model starts deciding whether and what to retrieve.
- Agentic search in context engineering (2025+): the agent combines file search, database queries, semantic search, web search, memory retrieval, and shell tools to dynamically assemble the context window per query.
The thread includes architecture diagrams comparing all three stages. Why data scientists should care: it changes how you pick data sources, design retrieval tools, manage token budgets, and debug bad retrievals. RAG isn't dead — it's now just one tool in a much larger system.
More from coding & agent
- Dev ships throwaway Postgres for agents: pg19 via pglite on Cloudflare DO over raw TCP — ritakozlov · 2026-11-29
- Product idea: cloud Android VMs and home WiFi proxies to make agents look human — Darpinian · 2026-11-29
- 38 free agent skills distilled from shipping three live AI products — PawelHuryn · 2026-11-29
- Step 5: run evals on synthetic data pre-launch, watch real traces after — PawelHuryn · 2026-11-29
- Break your agent before attackers do: 6 tests mapped to OWASP LLM Top 10 — PawelHuryn · 2026-11-29
- PM shares playbook for shipping 4 customer-facing Claude agents into production — PawelHuryn · 2026-11-29