• AI Bootcamp
  • Marketingová Plzeň
  • SEO Pivo
  • Contact
  • [email protected]
  • Personal website
[email protected]
Personal website
SEO, AI and Marketing Blog
Martin Bangho
  • Home
  • GEO & SEO
  • AI
  • Marketing
  • CS
  • EN
  • Home
  • GEO & SEO
  • AI
  • Marketing
  • CS
  • EN
Home AI & LLMs
Muž v bílé košili si u stolu prohlíží otevřenou publikaci s fotografiemi.

What is RAG, and why does a retrieved source not yet mean a correct answer?

Martin Bangho by Martin Bangho
November 24, 2026
in AI & LLMs
Reading Time: 8 mins read
0
0

RAG combines retrieving supporting material with generating an answer. An application selects relevant information from available sources and supplies it to a language model as context. The model therefore need not answer solely from what it learned during training. But a retrieved document is not yet a correct answer, and a link below an answer is not automatic proof that the source supports every claim.

The acronym stands for retrieval-augmented generation: generation supplemented with retrieved information. For someone commissioning an AI project, the key questions are where the correct version of the material can be lost and how to distinguish a retrieval error from an interpretation error. The same distinction helps when assessing citations of your website in AI answers.

RAG gives the model sources, but does not fix them

Imagine an assistant answering questions using company documentation. Without connected material, it may know general principles for handling claims but not the current contractual terms for your product. RAG is supposed to supply the relevant information rather than let it fill a missing detail with a guess.

Further reading

Ilustrační schéma: od neutrální postavy vedou šipky k symbolům textu, zvuku a digitálního prezentujícího.

AI avatars for video localization: when they help and what humans must review

November 24, 2026
Tři zdroje, uložené verze a kontrola reportu v bílo-modrém schématu.

How to monitor public-source changes with Hermes Agent and prepare a report for review

November 24, 2026
Muž v bílé košili propojuje kabelové konektory na dřevěném přípravku vedle malé krabice.

UCP and ACP: what they do and when to integrate them into an online store

November 24, 2026
Zadání, technická práva a ověření jsou odlišné kroky. Profil není sandbox, schválení není izolace a prohlášení hotovo není důkaz.

Hermes Agent: permissions and safe access to files and accounts

November 24, 2026

The principle of combining learned parameters with external memory is already described in the 2020 paper by Patrick Lewis and colleagues. Their particular research model also used a vector index of Wikipedia. That is a historical research design, not a complete blueprint for today’s commercial search engines. Various implementations now fall under the RAG label.

In your own solution, you can control sources, permissions, document versions and retrieval logs. In public AI search, most of these steps are hidden from you. It is therefore misleading to describe a generic RAG diagram and present it as exact documentation of Google, ChatGPT or another specific service.

Several separate steps lead from a document to an answer

In a simplified implementation, you first prepare the sources: text must be extracted correctly, have a known origin and be split into usable sections. These sections are often called chunks. It is useful to retain each chunk’s document title, date or version, location within the document and access permissions. Without them, you can find a plausible-sounding paragraph from the wrong contract.

After receiving a question, the application searches the available sources and selects candidates. It may further reorder the results by relevance and limit them to information that fits into the model’s input. The language model then receives the question, instructions and selected material and generates an answer. Displaying citations and checking the output are additional components that must be designed, not assumed.

The Azure AI Search documentation on RAG connects these tasks with data preparation, result relevance, limited model input capacity and access control. This is more than attaching a PDF to a conversation. The appropriate architecture depends on the questions the application should answer and the consequences of an error.

Retrieval need not mean vector search alone

Vector search uses embeddings: numerical representations of text that allow similar meanings to be found. This can help, for example, when a customer asks about “returning goods” while the document uses different wording. Similarity, however, proves neither truth nor whether a paragraph applies correctly.

For an exact product code, name or specialised technical term, a text-search match may matter more. A hybrid approach combines the two. Microsoft describes hybrid search in Azure AI Search as parallel text and vector searches whose results are merged. This is one specific implementation option, not evidence that every RAG system uses the same ranking.

This has an important implication for the brief: do not automatically adopt the requirement “we need a vector database”. First prepare real questions and define how you will recognise the correct source. A query about the current status of an order may be better served by controlled access to an operational system than by searching a manual for a similar paragraph.

An illustrative example: the right answer from the wrong terms

A fictional retailer’s documentation contains old and new terms for a service programme. A user asks whether their particular purchase includes device replacement in the event of a fault. This is an illustrative situation, not a description of a real offer or legal advice.

Search finds a paragraph that explicitly mentions device replacement. But it belongs to an older programme and applies to a different group of contracts. The model may produce a factual-sounding answer that does not apply to this purchase. A larger model or a more polished prompt will not solve that error on its own.

You need to know which product and contract version the customer has, when the terms took effect and whether that user may access the document. If those details are missing, the system should ask a follow-up or refer the case to a person. It should not choose the most convincing paragraph and conceal its uncertainty.

Where you make the fix matters. If the correct document is absent from the knowledge base, you add the source. If it is present but search fails to find it, you address retrieval. If the model receives it but still confuses a condition, you check instructions and synthesis. If the answer is correct but the attached link points elsewhere, you fix citation handling. A single “good/bad answer” grade will not reveal these distinctions.

Retrieved, supplied to the model, used and cited are different states

A source may appear among search candidates yet not fit into the final input. It may be in the input but contribute nothing to the answer. Even if the answer uses it, the particular interface may not display a corresponding citation. These are possible loss points in an application’s design, not claims that every product works this way.

In your own RAG system, therefore, maintain a traceable link from the question through the selected document passages to the answer. A citation should lead to material that genuinely supports the claim. Topical similarity is not enough. For a sentence containing several assertions, one link may cover only part of it.

For a public website, the reverse limitation applies: if AI does not list you among its sources, that does not tell you at which stage you were dropped or whether the page ever became a candidate. A bot visit in a server log does not prove that your content became part of a particular answer either. The article on mentions, links and citations in AI explains how to distinguish visible outcomes.

Agentic RAG adds decisions; it is not a mandatory new standard

A simpler solution retrieves material once and passes it to the model. An agentic variant may split the question, choose different tools, assess results so far and search again if needed. This can be useful for several connected questions, but it adds decision points, costs and opportunities for failure.

The current documentation for agentic retrieval in Azure AI Search, for example, describes planning subqueries and executing them in parallel. It also distinguishes generally available features from preview features: LLM-based planning and some synthesis capabilities are labelled preview in the documentation retrieved in November 2026. Before designing a deployment, check the particular capability, API version and service terms.

This does not mean simple RAG has ceased to exist or that every public AI product always performs the same number of internal searches. A research paper or patent describing a process does not prove that it was deployed in a particular answer either. Your own simulation can help test content in your system, not reveal another platform’s hidden decision.

For marketing, breaking a question down relates to query fan-out. But the practical task is not to produce a separate page for every conceivable subquestion. You need to cover real information gaps and connect related material.

RAG, fine-tuning and long context address different needs

Fine-tuning changes a model’s parameters through further training. In ordinary RAG, relevant content is added when a particular query is processed. These approaches can be combined; they are not two competing boxes from which you must always choose only one.

If you need to keep product terms up to date and trace their origin, you are primarily dealing with managing and selecting supporting material. If you need to change model behaviour on a particular task, fine-tuning may be an option. Simply putting company documentation into the context is not fine-tuning. The Hugging Face guide also explains the difference between training and using a model.

Long context, meanwhile, lets you supply more content at once. But it does not fix a contradiction between two versions of terms, incorrect permissions or the wrong source. For a small, clearly defined task, a carefully selected document may suffice without a separate retrieval system. A large, changing knowledge base requires attention to selection, updates and access. Decide according to the task, not the size of a number in a model catalogue.

What to ask for before a pilot, and what to check during it

Do not start with how many documents you can upload. Choose one area, name the person responsible for correct answers and prepare questions representing both common and problematic situations. For each, define the expected supporting material and acceptable behaviour when information is insufficient.

  • Correct material: is the decisive information in the knowledge base, in a valid version and with traceable provenance?
  • Selection: does the correct passage reach the results and then the model’s input?
  • Interpretation: does the answer preserve conditions, exceptions, units and scope?
  • Citations: does the link lead to actual support for the claim, not just a similar topic?
  • Boundaries: does the system ask a follow-up or acknowledge missing evidence instead of inventing an answer?
  • Permissions: does non-public data remain inaccessible to users who should not be allowed to read it?

Include a question with an invalid premise, a missing document and conflicting versions in the test. For access rights, putting “do not disclose secret information” in the prompt is not enough. The system must enforce permissions when accessing sources. Nor should a retrieved document be treated as permission to execute instructions someone may have planted in it; source content is supporting material, not an instruction controlling the application.

Record retrieval accuracy, answer accuracy, citation accuracy, response time and actual costs separately. This article did not run a pilot and provides no estimate of achievable accuracy. Set the budget and target level according to the task’s risk, not a percentage from someone else’s demonstration.

What RAG means for public SEO

If you manage a business website, you do not control someone else’s retrieval pipeline. But you do control access to important text, the accuracy of claims, version labels and meaningful connections between pages. A source must also genuinely answer the question to be useful. Perfect structure cannot replace missing information.

Google’s guidance for AI Overviews and AI Mode continues to refer to ordinary SEO fundamentals, indexing and a page’s eligibility to appear with a snippet. It does not require a special AI file or special schema.org markup. Treat knowledge of RAG as a way to understand how sources are handled, not a new set of guaranteed ranking factors.

For your own assistant, start with one verifiable scenario and a traceable correct answer. For a public website, start with one specific content gap. In both cases, the first investment should go into the quality of the supporting material and checks on how it is used. RAG can give a model better information. Responsibility for its accuracy and safe use remains with the people commissioning and operating the system.

Planning an assistant for company information?

I can help you clarify the assistant’s task, the sources it needs and how its answers will be checked before you start choosing technology. Let us discuss your plans for company knowledge. We will define technical testing, development and further project guidance according to the specific brief.

Tags: Theory
Previous Post

Google AI Mode: how it works and what it means for your website

Next Post

How AI understands text: from tokens to answers

Martin Bangho

Martin Bangho

I’m Martin Bangho. I’ve worked in digital marketing and built websites since 2015. These days I help companies with SEO and with getting found in AI search. I question things, and I’m picky about the details, but I’m an optimist. I believe marketing can be honest and still make money for a business. When I’m not working on marketing or running my business, you’ll probably find me at the gym, at a hip-hop gig or out with friends. On this blog I write about questions that come up with clients, what I test myself and what I make of the results. Hermes, my AI assistant, helps me write. I bring the notes, the results and my own take. Hermes helps me structure the article, catch grammar mistakes and get back to the point when I’ve gone off on my third tangent in the middle of a sentence. I review and edit every article myself before it goes out, so it says exactly what I mean.

Related articles

Populární AI nástroje
AI & LLMs

Popular AI tools

November 24, 2026
Marketingové strategie v době AI: Jak se připravit na novou dobu
AI & LLMs

Marketing strategy in the age of AI: how to prepare for a new era

November 24, 2026
Adversarial Machine Learning: Jak se manipuluje s AI
AI & LLMs

Adversarial machine learning: how AI can be manipulated

November 24, 2026
Muž v bílé košili propojuje kabelové konektory na dřevěném přípravku vedle malé krabice.
AI & LLMs

UCP and ACP: what they do and when to integrate them into an online store

November 24, 2026
Next Post
Muž v modré košili stojí vedle bílé tabule s řadou barevných obdélníků.

How AI understands text: from tokens to answers

Odebírat
Upozornit na
0 Komentáře
Nejstarší
Nejnovější Nejlépe hodnocené

Martin Bangho

SEO Consultant & AI Strategist

I use data to build marketing plans with people across a business, from sales and development to content. The aim is to strengthen the brand and help it compete.

Tags

Analysis B2B B2C Brand E-commerce Event reports Google Guide Hermes Off-page SEO On-page SEO SaaS Technical SEO Theory Tools User Experience Websites

Latest posts

  • Buying a website: how much of its organic traffic is valuable to you?
  • Visual discoverability: connecting images to the right product and location
  • How to Choose a Copywriter
  • SEO GAP Analysis
  • How to Create a Content Calendar
  • Home
  • GEO & SEO
  • AI
  • Marketing
  • CS
  • EN

© 2025 Martin Bangho – SEO Consultant & AI Strategist

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
  • Home
  • GEO & SEO
  • AI
  • Marketing
  • CS
  • EN
[email protected]

© 2025 Martin Bangho – SEO Consultant & AI Strategist

This website uses cookies. By continuing to use it, you agree to their use. Read our privacy and cookie policy (in Czech).