Prompt Kit
New RAG War Not Vectors Prompt Kit
Prompt Kit: The New RAG War Is Not About Vectors
Three engineering prompts for builders who operate agents in production and need to get their retrieval architecture right. This kit produces artifacts you paste into design docs, ADRs, and postmortems — not slide decks. Each prompt operationalizes the "retrieval contract" framing from The New RAG War Is Not About Vectors: define what your agent must receive before it acts, diagnose why it failed when it didn't, and formalize your architectural decisions with honest tradeoffs.
How to use this kit
Who this is for. Senior engineers, tech leads, staff engineers, or solo developers building or operating an agent that retrieves information from external sources. You have a retrieval stack (Pinecone, Weaviate, Qdrant, Chroma, pgvector, Elasticsearch, or something else). You have logs. You have at least one agent in production or headed there.
Run these in a thinking-capable model. ChatGPT, Claude, or Gemini. These prompts have strict input gates and multi-step reasoning — thinking models handle them more reliably.
Bring real inputs. These prompts will refuse to produce output from vague descriptions. Have your agent's actual task description, your actual stack, and ideally a real failure or real architectural decision ready before you start. The prompts are designed to handle raw log pastes, stack names, and engineering specifics.
The three prompts and when to use each:
| Prompt | Use when... | What you get |
|---|---|---|
| 1. Retrieval Contract Spec | You're designing a new agent's retrieval layer, or you suspect an existing agent's retrieval is underspecified | A specification document naming exactly what the system must deliver per task — pasteable into a design doc or ADR |
| 2. Retrieval Failure Triage | Your agent failed in production and you need to diagnose whether it's a retrieval architecture problem vs. something else | A diagnostic report naming the root cause, the minimum fix, and what NOT to rebuild |
| 3. Retrieval Stack ADR | You're considering an architectural change to your retrieval stack and need to formalize the decision | A complete Architecture Decision Record with honest tradeoffs, alternatives, and rollback plan |
They chain together. Prompt 1's output feeds directly into Prompt 3 as the contract the architecture must serve. Prompt 2's diagnosis may reveal you need Prompt 1 to redesign from scratch. Start wherever your current problem is.
Prompt 1 — Retrieval Contract Spec
Job: Produces a written specification of what your agent must receive before it starts acting — the full retrieval contract across all seven dimensions from the article's knowledge layer framework.
When to use: You're designing a new agent's retrieval layer. Or you have an agent in production and you've never written down what it actually needs to receive. Or your agent works on easy tasks but fails on hard ones and you suspect the retrieval bundle is underspecified.
What you'll get: An engineering spec document with named systems, named artifacts, a permissions model, provenance requirements, compiled context candidates, write-back contract, and explicit eliminations. Pasteable into a design doc or ADR.
What the AI will ask you: Your agent's description and tools, the work objects it operates on, your current retrieval stack, one task it handles well, and one it handles badly. Then it walks through each of the seven contract dimensions one at a time, pushing for specifics.
Prompt 2 — Retrieval Failure Triage
Job: Pattern-matches an observed agent failure against the seven retrieval failure modes from the article and produces a triage report naming the root cause and the minimum fix.
When to use: Your agent did something wrong in production. You have logs, traces, or at least a clear description of what happened vs. what should have happened. You want to know whether this is a retrieval architecture problem — and if so, which specific failure mode — before you commit to a fix.
What you'll get: A diagnostic report with the most likely root cause, the failure modes it's NOT (to prevent misdiagnosis), the minimum viable fix for your specific stack, what NOT to rebuild, and a verification plan.
What the AI will ask you: Your agent's description, the specific failure, relevant logs or traces, and what you've already ruled out.
Prompt 3 — Retrieval Stack ADR
Job: Produces an Architecture Decision Record for a specific retrieval stack decision — the standard engineering artifact for "we chose X over Y because Z."
When to use: You're considering a change to your retrieval architecture: adding a component (GraphRAG, document trees, a semantic layer, a memory store), switching vendors (Pinecone to Weaviate, pgvector to Qdrant), changing strategy (naive top-K to hybrid BM25 + vector, adding reranking, adding compiled context objects), or removing something. You need the decision written down with honest tradeoffs before you commit.
What you'll get: A complete ADR with context, decision, positive and negative consequences, rejected alternatives with real reasons, a verification plan, and a rollback plan.
What the AI will ask you: The specific decision under consideration, the triggering pressure, your retrieval contract or a short description of what the agent needs, and your current stack with its operating constraints.