---
title: "Decide Whether Your Business Needs Retrieval-Augmented Generation"
description: "RAG lets an AI search your documents before it answers. Learn how the retrieval pipeline works, what it costs to run, and when a context file is enough."
canonical: "https://scalewithsearch.com/articles/what-is-retrieval-augmented-generation"
date: "2026-01-28"
modified: "2026-11-10"
---
## Site navigation

- [Scale With Search](https://scalewithsearch.com/)
- Services
  - Local
    - [All services](https://scalewithsearch.com/services)
    - [AI visibility tracking](https://scalewithsearch.com/services/ai-visibility-tracking)
    - [Google Maps rank tracking](https://scalewithsearch.com/services/google-maps-rank-tracking)
    - [Local SEO](https://scalewithsearch.com/services/local-seo)
    - [Google Business Profile management](https://scalewithsearch.com/services/google-business-profile)
  - Website and search
    - [SEO solutions](https://scalewithsearch.com/seo)
    - [Technical SEO](https://scalewithsearch.com/seo/technical-seo)
    - [On-page and content SEO](https://scalewithsearch.com/seo/on-page-and-content-seo)
    - [Semantic SEO and topical authority](https://scalewithsearch.com/seo/semantic-seo-and-topical-authority)
    - [Custom SEO tools](https://scalewithsearch.com/seo/custom-seo-tools)
    - [Site build](https://scalewithsearch.com/work#site-build)
    - [Whole website fix](https://scalewithsearch.com/work#whole-website-fix)
  - AI functions
    - [AI operations](https://scalewithsearch.com/ai-systems)
  - First step
    - [Working session](https://scalewithsearch.com/audit)
  - Start here
    - [Send your brief](https://scalewithsearch.com/work#send-your-brief)
    - [Example scope](https://scalewithsearch.com/work#review-the-example-scope)
    - [Prices and terms](https://scalewithsearch.com/work#prices-and-terms)
- Industries
  - Agencies
    - [SEO agencies and consultants](https://scalewithsearch.com/for/seo-agencies-and-consultants)
    - [Marketing agencies and freelancers](https://scalewithsearch.com/for/marketing-agencies-and-freelancers)
    - [AI visibility check for SEO agencies](https://scalewithsearch.com/check/seo-agencies-and-consultants)
    - [Marketing and SEO agencies](https://scalewithsearch.com/for/#group-agencies)
  - Browse by business
    - [Trades and field service](https://scalewithsearch.com/for/#group-trades)
    - [Real estate agents and teams](https://scalewithsearch.com/for/real-estate)
    - [Health, wellness, and animal care](https://scalewithsearch.com/for/#group-practices)
    - [Chiropractic and wellness practices](https://scalewithsearch.com/for/chiropractic-and-wellness-practices)
    - [Law, finance, and IT](https://scalewithsearch.com/for/#group-professional)
    - [Machine shops and manufacturers](https://scalewithsearch.com/for/#group-manufacturing)
    - [Restaurants, shops, studios, and nonprofits](https://scalewithsearch.com/for/#group-local-services)
  - [All industries](https://scalewithsearch.com/for/)
- Resources
  - Free tools
    - [AI visibility check](https://scalewithsearch.com/check)
    - [All free tools](https://scalewithsearch.com/tools/)
    - [Free starter kit (.zip)](https://scalewithsearch.com/kit/business-memory-starter-kit.zip)
  - Guides
    - [AI-native library](https://scalewithsearch.com/ai-native)
    - [Industry intelligence](https://scalewithsearch.com/intelligence)
    - [Office job guides](https://scalewithsearch.com/guides/)
    - [Business memory](https://scalewithsearch.com/articles/business-memory-for-ai-agents-guide)
    - [Agent governance](https://scalewithsearch.com/articles/ai-agent-governance-guide-small-business)
    - [Ownership and migration](https://scalewithsearch.com/articles/leaving-vendor-ai-memory-guide)
  - Articles
    - [All articles](https://scalewithsearch.com/articles/)
- About
  - Evidence
    - [Proof](https://scalewithsearch.com/proof)
  - Scale With Search
    - [About](https://scalewithsearch.com/about)
    - [How it works](https://scalewithsearch.com/how-it-works)

# Decide Whether Your Business Needs Retrieval-Augmented Generation.

Built from 4 notes in Victor's vault. Drafted with Claude Opus 5.5 and Claude Fable 5.1, rewritten against Victor's notes with Claude Opus 5.5. Reviewed by Victor on 2026.11.11.

A customer asks your support assistant about the refund window for annual plans. The model answers with a confident 30 days. Your policy says 14. The model never saw your policy. It answered from general patterns in its training data. A confident wrong answer looks the same as a confident right one.

AI models do not know your business by default. They know what was in their training data, and that data stops at a fixed date. Your documents, processes, and customer records are not in it.

Retrieval-augmented generation (RAG) is one way to close that gap. Before the model answers, a search step finds the relevant parts of your documents and adds them to the prompt. The model then answers from that material.

## Follow the three steps of RAG

RAG has three steps: retrieval, augmentation, and generation.

**Retrieval.** You ask a question. Before the model answers, the system searches your knowledge base for relevant passages. A question about the refund policy finds the policy document.

**Augmentation.** The system adds the retrieved passages to your question. The prompt becomes, in effect: "Here are the relevant policy passages. Answer this question from them."

**Generation.** The model reads the passages and the question, then writes an answer based on both. That is the difference between an AI that quotes your real pricing and one that invents a number.

RAG reduces guessing. It does not remove it. The model can still misread a passage, merge two passages, or answer when the search returned the wrong document. Ask the system to cite the passages it used, so a person can check the answer.

## Know the parts of a RAG system

A typical RAG system has five parts.

| Part | Job | Examples |
|---|---|---|
| Chunker | Splits each document into passages of a set size | A script that cuts documents at headings or every few hundred words |
| Embedding model | Converts each passage and each question into a list of numbers (a vector) that represents its meaning | OpenAI's text-embedding models; open-source Sentence Transformers |
| Vector database | Stores the vectors and finds the ones closest to a question | Pinecone, Weaviate, Qdrant |
| Retriever | Returns the top matches for a question, usually 3 to 10 passages, ranked by a relevance score | Vector search, keyword search, or both combined |
| Language model | Writes the answer from the question and the retrieved passages | Any chat model with an API |

The embedding model does its work twice. It converts your documents into vectors when you build the index. It converts each question into the same kind of vector when someone asks. Passages with similar meaning sit close together, so a question about "cancellations" can find a policy that says "refunds."

Meaning search and word search catch different misses. Keyword search finds the exact name, number, or phrase. Vector search finds the same idea in other words. Use both. The vector store you pick today will change. The pairing of exact and meaning search should not.

## Know where RAG helps

**Large document sets.** Thousands of support tickets, hundreds of policy documents, or a long product catalog cannot all go into one prompt. RAG finds the few passages that matter for each question.

**Changing information.** The model's training data stays frozen, but a RAG index reads your current documents. Update a document and refresh the index, and the next answer uses the new text.

**Many users with different access.** One system serves everyone, and each person sees only the passages their permissions allow. That permission filter must run in the retriever, not in the prompt.

## Know where RAG adds work without benefit

**Small knowledge bases.** If the whole knowledge base fits in the model's context window, you can load all of it. The search step then adds complexity and a chance to miss the right passage.

**Stable information.** Brand voice, standard procedures, and your service list change rarely. A Markdown file that loads at the start of each session gives the model all of it without a search system.

**One user.** A solo operator who wants the AI to know the business does not search thousands of documents. A well-organized context file is simpler to build and simpler to check than a vector database.

## Count what RAG costs to run

RAG has three running costs. The exact figures change often, so check each vendor's pricing page before you plan.

**Storage and queries.** Hosted vector databases such as Pinecone, Weaviate, and Qdrant charge for stored data and query volume. The bill grows with documents and questions.

**Latency.** Each question now needs an embedding call and a search before the model starts to write. Speed decides whether people use it. A memory you have to wait on is a filing cabinet. Measure the delay in your own setup before you promise response times to customers.

**Maintenance.** Someone must chunk new documents, refresh the index when documents change, and remove retired documents. A RAG system is a small software product, not a one-time setup.

## Size your documents against a context window

Before you build anything, estimate whether your material fits in one prompt. A token is a piece of a word. One token averages about three quarters of an English word.

**Worked example 1: a policy handbook.** Fifty pages at about 500 words per page is 25,000 words, or about 33,000 tokens. Claude Sonnet 4.5, released in September 2025, accepts 200,000 tokens. The handbook fits with room for the conversation. Load it as a file. You do not need RAG.

**Worked example 2: a support archive.** Four thousand tickets at about 300 words each is 1.2 million words, or about 1.6 million tokens. That is larger than most context windows, and it grows every week. This archive needs a search step. RAG fits.

Context windows keep growing. A record that grows every week will still outgrow them. A window that can hold your material is also not a guarantee that the model uses all of it well. Recall of details in the middle of a long prompt is weaker than recall at the start and end. Keep the loaded material as small as the job allows. The [context window and persistent memory comparison](/articles/context-window-vs-persistent-ai-memory) explains the two limits.

## Use a context file first

A context file is one Markdown document with your key information. It loads at the start of a session, so there is no index, no embedding step, and no search delay.

A context file works when the content is stable and fits in the context window. It holds four things: who the model acts as, what it needs to know about the situation, how to do the work, and the lines it does not cross. Your business overview, writing rules, service list, and client roster belong in a context file, not in a RAG system. The guide to [what context an agent should read](/articles/#cluster-owned-memory)<!-- reading-origin:XSgvYXJ0aWNsZXMvd2hhdC1jb250ZXh0LXNob3VsZC1hbi1hZ2VudC1yZWFkKQ== --> shows how to pick the smallest set of files for a job.

You can combine the two approaches. Use a context file for stable information that every session needs. Use RAG for lookups in a large, changing document set. Most small businesses need the file. Fewer need RAG.

My own setup follows that order. Every session reads one root file first. Search starts at the narrowest likely source and widens only after a miss: exact search first, meaning search when the words do not match. The files stay plain text that I own. The search tools on top of them can change.

## Test retrieval before you trust it

If you build RAG, test the search step on its own before you judge the answers.

1. Write 10 questions that your documents answer.
2. For each question, record the document that holds the correct answer.
3. Run each question through the retriever only.
4. Check whether the correct document appears in the top five results.
5. Record each miss and the document that ranked above it.
6. Fix the chunk size, the metadata, or the search method.
7. Run the same 10 questions again.

A retriever that misses the right document cannot produce a correct answer, however good the model is. The [context-aware search guide](/articles/ai-knowledge-base-context-aware-search) covers further tests.

Relevance is also not authority. A search can rank an old, detailed pricing page above a short current decision because the old page matches the question's words. The current file outranks the convincing one. The [RAG and business memory guide](/articles/#cluster-owned-memory)<!-- reading-origin:XSgvYXJ0aWNsZXMvcmFnLXZzLWJ1c2luZXNzLW1lbW9yeSk= --> shows how to record which document governs and how to test that the current record wins.

## Decide with four questions

Answer these four questions for the job in front of you:

- Does the material exceed the context window, or will it soon?
- Does the material change every week or month?
- Do different users need different subsets of the material?
- Can someone maintain an index, refresh it, and test it?

If you answer no to the first three, start with a context file. If you answer yes to the first two and yes to the fourth, build RAG for that document set. Keep a context file for the stable rules. If you answer yes to the first three but no to the fourth, the system will drift after launch. Name an owner before you build.

Either way, keep the source documents as files you own. Lose the documents and no index brings them back.


## More reading on retrieval-augmented generation for business

- [RAG Is Retrieval. Business Memory Also Needs Authority.](/articles/#cluster-owned-memory)<!-- reading-origin:XSgvYXJ0aWNsZXMvcmFnLXZzLWJ1c2luZXNzLW1lbW9yeSk= -->
- [Best AI for Long Document Analysis: Run a Retrieval Test Before You Trust the Context Window](/articles/best-ai-long-document-analysis-business)
- [Seed a Company List from Entity Search, Then Research Each One](/articles/entity-search-company-research-list)

----

```text
                  .|########||.                                       .|########||.                                       .|########||.
               |##||.      .||##|.                                 |##||.      .||##|.                                 |##||.      .||##|.
             |#|.              .|#|.                             |#|.              .|#|.                             |#|.              .|#|.
           |#|                    |#|                          |#|                    |#|                          |#|                    |#|
         .#|                        |#.                      .#|                        |#.                      .#|                        |#.
        .#.                          .#|                    .#.                          .#|                    .#.                          .#|
       |#.                            .#|                  |#.                            .#|                  |#.                            .#|
      |#             ......             #|                |#             ......             #|                |#             ......             #|
     .#           ||#########|           #|              .#           ||#########|           #|              .#           ||#########|           #|
    .#.         |######||######|.        .#.            .#.         |######||######|.        .#.            .#.         |######||######|.        .#.
    #.        .##|###|##|#|######|        .#            #.        .##|###|##|#|######|        .#            #.        .##|###|##|#|######|        .#
   ||        |##|#||||||||||||#||#|        ||          ||        |##|#||||||||||||#||#|        ||          ||        |##|#||||||||||||#||#|        ||
   #        |#||||||||||||||||||||#|        #.         #        |#||||||||||||||||||||#|        #.         #        |#||||||||||||||||||||#|        #.
  ||       |#||||||||||||||||||||||#|       ||        ||       |#||||||||||||||||||||||#|       ||        ||       |#||||||||||||||||||||||#|       ||
  #       .#||||||||||||||||||||||||#|       #        #       .#||||||||||||||||||||||||#|       #        #       .#||||||||||||||||||||||||#|       #
 ||   ....|||#||||||##|#|||#|#||##||||....|. ||      ||   ....|||#||||||##|#|||#|#||##||||....|. ||      ||   ....|||#||||||##|#|||#|#||##||||....|. ||
 #.  .  ....|#  ....#|||   ||| .#|||  ....#. .#      #.  .  ....|#  ....#|||   ||| .#|||  ....#. .#      #.  .  ....|#  ....#|||   ||| .#|||  ....#. .#
 #   .  ||||#| .#####||  . .#| .#|||  ||||#   #.     #   .  ||||#| .#####||  . .#| .#|||  ||||#   #.     #   .  ||||#| .#####||  . .#| .#|||  ||||#   #.
.|   |||||  #. |#|||||. ||  #. |#||. .|||||   ||    .|   |||||  #. |#|||||. ||  #. |#||. .|||||   ||    .|   |||||  #. |#|||||. ||  #. |#||. .|||||   ||
||   |....  #. ....|#.      |. ...|. ....||   ||    ||   |....  #. ....|#.      |. ...|. ....||   ||    ||   |....  #. ....|#.      |. ...|. ....||   ||
#.  .||||||##||||||##||####|||||||#||||||#|   .#    #.  .||||||##||||||##||####|||||||#||||||#|   .#    #.  .||||||##||||||##||####|||||||#||||||#|   .#
#    .||####|###########################|.     #    #    .||####|###########################|.     #    #    .||####|###########################|.     #
#      .#||||||.#.|| # |. ..# #| #|||||#|      #    #      .#||||||.#.|| # |. ..# #| #|||||#|      #    #      .#||||||.#.|| # |. ..# #| #|||||#|      #
#      .#|||||| ..  |# ## |#| ...#|#|||#|      #    #      .#|||||| ..  |# ## |#| ...#|#|||#|      #    #      .#|||||| ..  |# ## |#| ...#|#|||#|      #
#      .#|||#|# .# .#| #| ##|.#..#|||||#|      #    #      .#|||#|# .# .#| #| ##|.#..#|||||#|      #    #      .#|||#|# .# .#| #| ##|.#..#|||||#|      #
#      .#||||||############|######|||||#|      #    #      .#||||||############|######|||||#|      #    #      .#||||||############|######|||||#|      #
#   |...||#||||||#||||#|#||||||#|||||#||| |.|  #    #   |...||#||||||#||||#|#||||||#|||||#||| |.|  #    #   |...||#||||||#||||#|#||||||#|||||#||| |.|  #
#. .. ||||# .|||##|.  |#| .|| || .|||#. #|  # .#    #. .. ||||# .|||##|.  |#| .|| || .|||#. #|  # .#    #. .. ||||# .|||##|.  |#| .|| || .|||#. #|  # .#
|| |  ...||  ...##| |  #| .|. |. #####  .. .| ||    || |  ...||  ...##| |  #| .|. |. #####  .. .| ||    || |  ...||  ...##| |  #| .|. |. #####  .. .| ||
|| ||||| || ||||#|  .  |. |. |#. ||||| |#| || ||    || ||||| || ||||#|  .  |. |. |#. ||||| |#| || ||    || ||||| || ||||#|  .  |. |. |#. ||||| |#| || ||
.# |.....#|....|#.||||.|||##.|#|....||.#||.#. #.    .# |.....#|....|#.||||.|||##.|#|....||.#||.#. #.    .# |.....#|....|#.||||.|||##.|#|....||.#||.#. #.
 #.|||||||#############################| ||| .#      #.|||||||#############################| ||| .#      #.|||||||#############################| ||| .#
 ||       ##||#||#||||||#||#||#||#||##.      ||      ||       ##||#||#||||||#||#||#||#||##.      ||      ||       ##||#||#||||||#||#||#||#||##.      ||
  #       .#|||||||||#||#|||||||||||#|       #        #       .#|||||||||#||#|||||||||||#|       #        #       .#|||||||||#||#|||||||||||#|       #
  ||       |#||||||||||||||||||||||#|       ||        ||       |#||||||||||||||||||||||#|       ||        ||       |#||||||||||||||||||||||#|       ||
  .#        |#||||||||||||||||||||#|        #.        .#        |#||||||||||||||||||||#|        #.        .#        |#||||||||||||||||||||#|        #.
   ||        |#||||||||||||||||||#|        ||          ||        |#||||||||||||||||||#|        ||          ||        |#||||||||||||||||||#|        ||
    #.        .######|#|#########|        .#            #.        .######|#|#########|        .#            #.        .######|#|#########|        .#
    .#.         |#####||||#####|         .#.            .#.         |#####||||#####|         .#.            .#.         |#####||||#####|         .#.
     |#           ||########||           #.              |#           ||########||           #.              |#           ||########||           #.
      |#             ......             #|                |#             ......             #|                |#             ......             #|
       |#.                            .#|                  |#.                            .#|                  |#.                            .#|
        |#.                          .#.                    |#.                          .#.                    |#.                          .#.
         .#|                        |#.                      .#|                        |#.                      .#|                        |#.
           |#|                    |#|                          |#|                    |#|                          |#|                    |#|
            .|#|.              .|#|.                            .|#|.              .|#|.                            .|#|.              .|#|.
               |##||.      .||##|                                  |##||.      .||##|                                  |##||.      .||##|
                 .||########||.                                      .||########||.                                      .||########||.

Scale With Search  2026  [scalewithsearch.com](https://scalewithsearch.com)
```
