When should a business not use RAG? Do not start with RAG when the job is an exact database lookup, a calculation, a deterministic policy decision, a small fixed-context task, a behaviour or formatting problem, or a knowledge-quality problem. Use SQL or an API for live records, code or rules for repeatable decisions, direct context for bounded evidence, prompting or fine-tuning for behaviour, and information governance for unreliable source material. Add retrieval only when it solves a real evidence-discovery problem.

What RAG is good at

The original retrieval-augmented generation research combined a language model's parametric memory with passages retrieved from an external index for knowledge-intensive tasks. In a business system, the practical version is a pipeline: ingest approved material, parse and chunk it, create searchable representations, retrieve likely evidence for a question, place selected passages into model context and generate an answer that can point back to its sources.

That pattern is valuable when relevant information is scattered across policies, manuals, product documentation, research or case files; when the material changes more often than a model should be retrained; and when a reader needs evidence for an answer. OpenAI's current Retrieval API, for example, performs semantic search over vector stores and supports attributes that can be used to filter results. Google Cloud's reference architectures make the operational footprint visible: RAG includes ingestion, preparation, storage, retrieval and serving components, not merely a prompt switch.

RAG does not turn generation into a database transaction. Retrieval can miss the right passage, return an outdated or unauthorized passage, or surface conflicting evidence. The model can still misunderstand what it receives. Before building a retrieval layer, define whether the task actually needs semantic evidence discovery.

Five situations where RAG is a poor fit

01

Exact operational facts

The answer depends on a current record, exact filter, count, balance or status.

Better starting point: Query the system of record through SQL or a typed API.

02

Deterministic decisions

The same inputs must always produce the same auditable result.

Better starting point: Use validated rules, calculations or a policy engine.

03

Small bounded evidence

The trusted material is short enough to supply directly for each task.

Better starting point: Use direct context with a fixed source and version.

04

Repeatable behaviour

The goal is consistent tone, format, classification or instruction-following rather than new knowledge.

Better starting point: Improve prompts and examples; evaluate fine-tuning where justified.

05

Unowned information

The corpus is stale, duplicated, contradictory or missing access and lifecycle rules.

Better starting point: Repair information ownership and architecture before retrieval.

Shuhaib's five-part RAG poor-fit map. Match the architecture to the kind of truth the workflow needs.

1. The answer is an exact operational fact

“What is order 8421's current status?”, “How many invoices are overdue?” and “Which customers exceeded their credit limit?” are structured-data questions. Their answers depend on live rows, filters, joins, aggregates and authorization. PostgreSQL's current documentation describes the deterministic operations designed for this work: WHERE filters rows, GROUP BY groups them, aggregates calculate values and ORDER BY makes result order predictable.

Embedding transaction records and asking a model to infer the answer creates a delayed, lossy copy of the system of record. Query the database or business API, validate the result and let the model explain it if natural language is useful. The model should never estimate an account balance from semantically similar chunks.

2. The outcome must follow deterministic rules

Approval thresholds, tax calculations, discount limits, access decisions and safety interlocks need explicit logic. If the same verified inputs must produce the same outcome, encode the policy as rules or code with versioned tests. A retrieved paragraph may explain why the rule exists, but it should not replace the executable rule.

A good hybrid separates decision from explanation. The rules engine returns “manager approval required” and the relevant policy version. Retrieval can then find the human-readable policy section for the response. If the prose conflicts with the executable rule, the workflow stops and sends the mismatch to the policy owner instead of letting the model choose.

3. The trusted evidence is small and already bounded

If a task uses one short contract, one application, a single current policy or a small set of selected passages, direct context is often clearer. The application can attach the exact source and version to the request. This removes retrieval ranking as a failure point and makes it easier to reproduce what the model saw.

Direct context still needs boundaries. Do not send unrelated sensitive pages “just in case.” Preserve source identity, protect against instructions embedded in documents and test no-answer behaviour. If the evidence set later grows beyond a practical context or users cannot identify the relevant document, retrieval may become justified.

4. The problem is behaviour, not knowledge

RAG is not the default answer to inconsistent JSON, weak classification, the wrong tone or failure to follow a stable response format. Those are behaviour and evaluation problems. Start with a clearer instruction, representative examples, structured output constraints and a test set.

OpenAI's supervised fine-tuning guidance positions fine-tuning for use cases such as classification, specific formats and instruction-following improvements. Fine-tuning should follow evaluation, not replace it. It is also not a factual database: use it to shape repeatable behaviour, while retrieving or querying facts from the appropriate source at runtime.

5. The source material is not ready to be trusted

A vector index cannot repair missing ownership, contradictory policies, duplicate files, obsolete product sheets or unrestricted folders. It can make those defects easier to retrieve. Before RAG, inventory the corpus, name an owner for each source class, define the approved version, apply access rules, remove duplicates and establish update and deletion paths.

Knowledge architecture comes first because retrieval quality is bounded by the evidence available to retrieve. If employees cannot agree which policy is current, an AI answer with a fluent citation may create false confidence. In that situation, the first deliverable is a content-governance backlog—not an embedding pipeline.

RAG alternatives decision matrix

Primary needStart withWhy it fitsMain control
Answer from many changing documentsRAGRetrieves relevant approved passages at request timeRetrieval quality, freshness and permissions
Get a live order, balance or KPISQL or business APIReturns exact structured state and calculationsSchema, authorization and query correctness
Apply an eligibility or approval policyRules or policy engineProduces deterministic, testable outcomesRule ownership, versioning and edge cases
Use one short contract or case fileDirect contextKeeps the evidence set explicit and boundedContext size, source version and injection risk
Standardize format, style or classificationPrompting or fine-tuningChanges behaviour rather than retrieving factsRepresentative training data and regression tests
Explain an exact result with supporting policyHybridCombines deterministic truth with retrieved evidenceClear precedence and provenance across components

This is not a product-selection table. It is a truth-selection table. Choose the component that owns the kind of answer you need, then use a model only for the interpretation, transformation or communication that benefits from language reasoning.

Hybrid designs are usually more useful than “RAG everywhere”

Structured truth plus retrieved explanation

Use an API to fetch the current invoice status, calculation and identifiers. Retrieve the relevant payment policy only if the user asks why the status matters. Generate a response that labels the transactional facts separately from the policy explanation.

Rules first, RAG for exceptions

Handle the common, well-defined path with deterministic rules. When an input falls outside the rule set, retrieve the exception policy and prepare a decision packet for a human owner. The agent does not invent a new rule from the nearest paragraph.

Direct context first, retrieval as a fallback

For a case-based workflow, start with the selected case file and current policy. If the question requires wider knowledge, run a permission-filtered search and clearly mark the additional sources. This keeps routine decisions reproducible while preserving broader discovery when it is genuinely needed.

RAG for evidence, tools for action

Retrieval can answer “What does our approved returns policy say?” A typed tool can answer “Is this order eligible under the current rule?” Another tool can draft—not execute—the refund. Each step has its own authority, validation and audit record. The retrieved text informs the workflow but does not silently become permission to act.

The RAG-or-not checklist

Answer these questions before selecting a vector database or knowledge platform. A “no” to the first two usually means the use case needs another architecture. Weak answers to ownership, permissions, evaluation or fallback mean the use case is not ready for production RAG.

  1. 1. Is the needed evidence primarily unstructured text spread across more material than should be sent every time?
  2. 2. Must the system find the latest approved passage rather than calculate an exact operational answer?
  3. 3. Does every source have an owner, audience, version and review date?
  4. 4. Can access permissions be enforced before a passage reaches the model?
  5. 5. Will the answer expose citations or source links that a user can verify?
  6. 6. Do representative questions retrieve the right evidence, including difficult and no-answer cases?
  7. 7. Is there a safe response when retrieval finds weak, conflicting or no evidence?
  8. 8. Are ingestion, parsing, chunking, indexing and deletion worth their operating cost?
  9. 9. Would SQL, an API, a rule, a prompt or direct context solve the same problem more reliably?
  10. 10. Is there a measured outcome that retrieval improves enough to justify the added system?

A small proof is enough to make the decision

Build a representative evaluation set before the full ingestion pipeline. Include ordinary questions, ambiguous questions, questions whose answer appears in several conflicting documents, permission-sensitive questions, current operational lookups and questions with no approved answer. For each case, record the expected source, expected refusal or escalation, required freshness and acceptable response.

Compare at least three candidates: the simplest non-RAG baseline, a narrow retrieval prototype and the proposed hybrid. Score source accuracy, answer correctness, reproducibility, latency, cost, permission enforcement and human correction effort. The winner is not the system that uses the most AI; it is the smallest system that produces the required outcome with evidence and control.

For the retrieval fundamentals, read the business RAG explainer. Use the trusted knowledge-base guide to assess ownership and permissions, and the production agent architecture to separate knowledge retrieval from operational tools and policy.

Primary sources checked

Checked 13 September 2026. The poor-fit map, decision matrix and checklist are Shuhaib's practitioner synthesis; implementation choices should be evaluated against the current source systems and provider documentation.

Choose the smallest reliable system

Review a knowledge architecture before buying a RAG stack

I help SMEs separate structured truth, deterministic policy, direct context and semantic retrieval, then test the smallest architecture against real questions, permissions and operating outcomes.

Request a knowledge architecture review