{"id":2633,"date":"2026-08-20T12:37:10","date_gmt":"2026-08-20T10:37:10","guid":{"rendered":"https:\/\/mairateam.com\/?post_type=glossary&#038;p=2633"},"modified":"2026-08-20T15:55:16","modified_gmt":"2026-08-20T13:55:16","slug":"rag","status":"publish","type":"glossary","link":"https:\/\/mairateam.com\/en\/glossary\/rag\/","title":{"rendered":"RAG"},"content":{"rendered":"<p><strong>RAG<\/strong> stands for Retrieval-Augmented Generation. The model retrieves relevant sources before answering and assembles the answer from them, instead of drawing only on what it learned during training. This mechanism is precisely why a brand's visibility in AI answers can be influenced by content you publish today.<\/p>\n<h2>In short<\/h2>\n<table>\n<tbody>\n<tr>\n<td><strong>What it is<\/strong><\/td>\n<td>Generating an answer from retrieved sources rather than from the model's memory<\/td>\n<\/tr>\n<tr>\n<td><strong>Why marketers care<\/strong><\/td>\n<td>Without RAG you could only influence what was in the training data. With RAG, current content and its availability decide<\/td>\n<\/tr>\n<tr>\n<td><strong>Who uses it<\/strong><\/td>\n<td>Effectively every assistant with web access: ChatGPT, Perplexity, Gemini, Claude, Copilot<\/td>\n<\/tr>\n<tr>\n<td><strong>What RAG rewards<\/strong><\/td>\n<td>Clear statements that make sense out of context, and original data<\/td>\n<\/tr>\n<tr>\n<td><strong>Where it breaks<\/strong><\/td>\n<td>On technical availability. What a crawler cannot fetch never enters an answer<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>How RAG works<\/h2>\n<p>It runs in three steps. The query is first turned into something searchable, often by splitting it into several sub-questions. Passages answering them are then pulled from an index. Finally the model assembles an answer from those passages and attaches source links.<\/p>\n<h3>Retrieval works on passages, not pages<\/h3>\n<p>This is the most important consequence for content. The unit is not a URL, it is a paragraph or a section. A long article with no part that answers standalone has little chance, however well it matches the topic. A short passage carrying a clear definition gets picked up easily.<\/p>\n<h3>Two different crawlers, two different kinds of damage<\/h3>\n<p>Model providers run separate crawlers. One collects content into the index, the other fetches a page only when it comes up inside a specific answer. Each can be blocked on its own and the consequences differ: without the indexing crawler the site never enters the candidate set at all, without the second one the model cannot verify the current wording of the page.<\/p>\n<h3>The model prefers what it can verify<\/h3>\n<p>A claim backed by a number, a date or a source enters answers more often than a general statement. Marketing copy with no data gives the model nothing to hold on to.<\/p>\n<h2>From our own practice: crawlers blocked by the firewall<\/h2>\n<p>In technical audits we test language model and search crawlers directly, each with a request carrying its user agent. Some routinely receive HTTP 403 even though robots.txt explicitly allows them. They are blocked by the firewall at hosting level or by the CDN, a layer most companies never check.<\/p>\n<p>The split between two bots of the same provider is instructive: the crawler that fetches a page during a live answer passes without trouble, while the indexing crawler gets a 403. In practice that means the model can open the page once it knows about it, but will never discover it on its own.<\/p>\n<p>Hence the check that belongs in routine maintenance: go through the crawler list and verify the response code directly. Reading robots.txt is not enough, because robots.txt can contradict a block sitting at firewall level.<\/p>\n<h2>Common mistakes<\/h2>\n<ul>\n<li><strong>Assuming the model reads your site directly.<\/strong> It reads an index. A new page shows up in answers after indexing, not right after publication.<\/li>\n<li><strong>Optimizing whole pages instead of passages.<\/strong> RAG works with sections, not URLs.<\/li>\n<li><strong>Trusting robots.txt.<\/strong> Real availability is decided by the server, not by a file.<\/li>\n<li><strong>Publishing content with no numbers.<\/strong> The model favors verifiable claims and passes over generic text.<\/li>\n<\/ul>\n<h2>What it means for content<\/h2>\n<ol>\n<li><strong>Write in blocks that work standalone.<\/strong> Each section should answer one question in a complete sentence.<\/li>\n<li><strong>Put the answer right under the heading.<\/strong> The first two sentences decide whether the passage is usable.<\/li>\n<li><strong>State the source and the date.<\/strong> Verifiable figures take precedence over phrasing.<\/li>\n<li><strong>Check availability directly.<\/strong> A monthly crawler test belongs in the routine, exactly like uptime monitoring.<\/li>\n<\/ol>\n<h2>Related terms<\/h2>\n<p>See also <a href=\"https:\/\/mairateam.com\/en\/glossary\/ai-mode\/\"><strong>AI Mode<\/strong><\/a>, <a href=\"https:\/\/mairateam.com\/en\/glossary\/ai-overviews\/\"><strong>AI Overviews<\/strong><\/a>, <a href=\"https:\/\/mairateam.com\/en\/glossary\/aeo-answer-engine-optimization\/\"><strong>AEO<\/strong><\/a>, <a href=\"https:\/\/mairateam.com\/en\/glossary\/geo-generative-engine-optimization\/\"><strong>GEO<\/strong><\/a>, <a href=\"https:\/\/mairateam.com\/en\/glossary\/llms-txt\/\"><strong>llms.txt<\/strong><\/a> and <a href=\"https:\/\/mairateam.com\/en\/glossary\/ai-visibility\/\"><strong>AI visibility<\/strong><\/a>.<\/p>\n<h2>Frequently asked questions<\/h2>\n<h3>Does RAG mean the model stops making things up?<\/h3>\n<p>No. It lowers the chance, because the model has sources at hand. But when the sources are wrong or contradict each other, the error carries into the answer.<\/p>\n<h3>How long before new content appears in answers?<\/h3>\n<p>Weeks, because it has to be indexed first. Bing tends to be faster, several assistants draw from it, and indexing can be accelerated with the IndexNow protocol.<\/p>\n<h3>Can our own content fix wrong claims about the brand?<\/h3>\n<p>Yes, provided it is consistent and machine-readable. The model resolves contradictions between sources on its own terms, so identical numbers on the site, in profiles and in directories are cheap insurance.<\/p>\n<h3>Is schema enough?<\/h3>\n<p>Structured data aids comprehension, but RAG retrieves from the text. Without a usable passage, schema alone will not carry you.<\/p>\n<h2>How we can help<\/h2>\n<p>Technical availability for crawlers, structured data and content prepared to be cited are one service for us. Details are on the <a href=\"https:\/\/mairateam.com\/en\/ai-visibility-agency\/\">AI visibility agency<\/a> page.<\/p>\n<p><a href=\"https:\/\/mairateam.com\/en\/glossary\/\">Back to the glossary<\/a><\/p>\n","protected":false},"template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"glossary_category":[52,52],"class_list":["post-2633","glossary","type-glossary","status-publish","hentry"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO Pro 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Retrieval Augmented Generation: the model retrieves sources before answering. Why that makes AI visibility something your content can influence.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/mairateam.com\/en\/glossary\/rag\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO Pro (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Maira Team\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"RAG: how language models retrieve sources\" \/>\n\t\t<meta property=\"og:description\" content=\"Retrieval Augmented Generation: the model retrieves sources before answering. Why that makes AI visibility something your content can influence.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/mairateam.com\/en\/glossary\/rag\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/mairateam.com\/wp-content\/uploads\/social.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/mairateam.com\/wp-content\/uploads\/social.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1290\" \/>\n\t\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-08-20T10:37:10+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-08-20T13:55:16+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/mairateam\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"RAG: how language models retrieve sources\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Retrieval Augmented Generation: the model retrieves sources before answering. Why that makes AI visibility something your content can influence.\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/mairateam.com\/wp-content\/uploads\/social.jpg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/mairateam.com\\\/en\\\/glossary\\\/rag\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mairateam.com\\\/en\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/mairateam.com\\\/en\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mairateam.com\\\/en\\\/glossary\\\/rag\\\/#listItem\",\"name\":\"RAG\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mairateam.com\\\/en\\\/glossary\\\/rag\\\/#listItem\",\"position\":2,\"name\":\"RAG\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mairateam.com\\\/en\\\/#listItem\",\"name\":\"Home\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/mairateam.com\\\/en\\\/#organization\",\"name\":\"MAIRA\",\"description\":\"MAIRA is a performance marketing agency, part of the Proficio Hub. It manages over EUR 52 million in annual ad budgets for e-commerce, DTC and SaaS brands across Europe.\",\"url\":\"https:\\\/\\\/mairateam.com\\\/en\\\/\",\"email\":\"info@mairateam.com\",\"telephone\":\"+420736241014\",\"foundingDate\":\"2025-01-01\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"value\":34},\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/mairateam.com\\\/wp-content\\\/uploads\\\/maira-logo-orange-background.jpg\",\"@id\":\"https:\\\/\\\/mairateam.com\\\/en\\\/glossary\\\/rag\\\/#organizationLogo\",\"width\":2048,\"height\":2048,\"caption\":\"Bright orange poster with very large dark green letters at the bottom spelling a word starting with 'MA...' and a smaller line below that reads 'Make It Rain' (partial view).\"},\"image\":{\"@id\":\"https:\\\/\\\/mairateam.com\\\/en\\\/glossary\\\/rag\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.instagram.com\\\/maira.team\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/mairateam\\\/\",\"https:\\\/\\\/clutch.co\\\/profile\\\/maira\",\"https:\\\/\\\/www.facebook.com\\\/mairateam\"]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/mairateam.com\\\/en\\\/glossary\\\/rag\\\/#webpage\",\"url\":\"https:\\\/\\\/mairateam.com\\\/en\\\/glossary\\\/rag\\\/\",\"name\":\"RAG: how language models retrieve sources\",\"description\":\"Retrieval Augmented Generation: the model retrieves sources before answering. Why that makes AI visibility something your content can influence.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/mairateam.com\\\/en\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/mairateam.com\\\/en\\\/glossary\\\/rag\\\/#breadcrumblist\"},\"datePublished\":\"2026-08-20T12:37:10+02:00\",\"dateModified\":\"2026-08-20T15:55:16+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/mairateam.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/mairateam.com\\\/en\\\/\",\"name\":\"MAIRA\",\"alternateName\":\"MAIRA Team\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/mairateam.com\\\/en\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO Pro -->\r\n\t\t<title>RAG: how language models retrieve sources<\/title>\n\n","aioseo_head_json":{"title":"RAG: how language models retrieve sources","description":"Retrieval Augmented Generation: the model retrieves sources before answering. Why that makes AI visibility something your content can influence.","canonical_url":"https:\/\/mairateam.com\/en\/glossary\/rag\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/mairateam.com\/en\/glossary\/rag\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/mairateam.com\/en\/#listItem","position":1,"name":"Home","item":"https:\/\/mairateam.com\/en\/","nextItem":{"@type":"ListItem","@id":"https:\/\/mairateam.com\/en\/glossary\/rag\/#listItem","name":"RAG"}},{"@type":"ListItem","@id":"https:\/\/mairateam.com\/en\/glossary\/rag\/#listItem","position":2,"name":"RAG","previousItem":{"@type":"ListItem","@id":"https:\/\/mairateam.com\/en\/#listItem","name":"Home"}}]},{"@type":"Organization","@id":"https:\/\/mairateam.com\/en\/#organization","name":"MAIRA","description":"MAIRA is a performance marketing agency, part of the Proficio Hub. It manages over EUR 52 million in annual ad budgets for e-commerce, DTC and SaaS brands across Europe.","url":"https:\/\/mairateam.com\/en\/","email":"info@mairateam.com","telephone":"+420736241014","foundingDate":"2025-01-01","numberOfEmployees":{"@type":"QuantitativeValue","value":34},"logo":{"@type":"ImageObject","url":"https:\/\/mairateam.com\/wp-content\/uploads\/maira-logo-orange-background.jpg","@id":"https:\/\/mairateam.com\/en\/glossary\/rag\/#organizationLogo","width":2048,"height":2048,"caption":"Bright orange poster with very large dark green letters at the bottom spelling a word starting with 'MA...' and a smaller line below that reads 'Make It Rain' (partial view)."},"image":{"@id":"https:\/\/mairateam.com\/en\/glossary\/rag\/#organizationLogo"},"sameAs":["https:\/\/www.instagram.com\/maira.team\/","https:\/\/www.linkedin.com\/company\/mairateam\/","https:\/\/clutch.co\/profile\/maira","https:\/\/www.facebook.com\/mairateam"]},{"@type":"WebPage","@id":"https:\/\/mairateam.com\/en\/glossary\/rag\/#webpage","url":"https:\/\/mairateam.com\/en\/glossary\/rag\/","name":"RAG: how language models retrieve sources","description":"Retrieval Augmented Generation: the model retrieves sources before answering. Why that makes AI visibility something your content can influence.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/mairateam.com\/en\/#website"},"breadcrumb":{"@id":"https:\/\/mairateam.com\/en\/glossary\/rag\/#breadcrumblist"},"datePublished":"2026-08-20T12:37:10+02:00","dateModified":"2026-08-20T15:55:16+02:00"},{"@type":"WebSite","@id":"https:\/\/mairateam.com\/en\/#website","url":"https:\/\/mairateam.com\/en\/","name":"MAIRA","alternateName":"MAIRA Team","inLanguage":"en-US","publisher":{"@id":"https:\/\/mairateam.com\/en\/#organization"}}]},"og:locale":"en_US","og:site_name":"Maira Team","og:type":"article","og:title":"RAG: how language models retrieve sources","og:description":"Retrieval Augmented Generation: the model retrieves sources before answering. Why that makes AI visibility something your content can influence.","og:url":"https:\/\/mairateam.com\/en\/glossary\/rag\/","og:image":"https:\/\/mairateam.com\/wp-content\/uploads\/social.jpg","og:image:secure_url":"https:\/\/mairateam.com\/wp-content\/uploads\/social.jpg","og:image:width":1290,"og:image:height":600,"article:published_time":"2026-08-20T10:37:10+00:00","article:modified_time":"2026-08-20T13:55:16+00:00","article:publisher":"https:\/\/www.facebook.com\/mairateam","twitter:card":"summary","twitter:title":"RAG: how language models retrieve sources","twitter:description":"Retrieval Augmented Generation: the model retrieves sources before answering. Why that makes AI visibility something your content can influence.","twitter:image":"https:\/\/mairateam.com\/wp-content\/uploads\/social.jpg"},"aioseo_meta_data":{"post_id":"2633","title":"RAG: how language models retrieve sources","description":"Retrieval Augmented Generation: the model retrieves sources before answering. Why that makes AI visibility something your content can influence.","keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-08-20 14:10:05","breadcrumb_settings":null,"limit_modified_date":false,"open_ai":null,"created":"2026-08-11 19:44:58","updated":"2026-08-20 14:10:05","ai":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"_links":{"self":[{"href":"https:\/\/mairateam.com\/en\/wp-json\/wp\/v2\/glossary\/2633","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mairateam.com\/en\/wp-json\/wp\/v2\/glossary"}],"about":[{"href":"https:\/\/mairateam.com\/en\/wp-json\/wp\/v2\/types\/glossary"}],"version-history":[{"count":7,"href":"https:\/\/mairateam.com\/en\/wp-json\/wp\/v2\/glossary\/2633\/revisions"}],"predecessor-version":[{"id":3202,"href":"https:\/\/mairateam.com\/en\/wp-json\/wp\/v2\/glossary\/2633\/revisions\/3202"}],"wp:attachment":[{"href":"https:\/\/mairateam.com\/en\/wp-json\/wp\/v2\/media?parent=2633"}],"wp:term":[{"taxonomy":"glossary_category","embeddable":true,"href":"https:\/\/mairateam.com\/en\/wp-json\/wp\/v2\/glossary_category?post=2633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}