Skip to main content
Introducing TSK-1Introducing TSK-1—Taskade's intelligence layer.
taskade
PricingHelpDashboard →Dashboard →
PricingLoginSign up for free →Sign up for free →
Dashboard →Dashboard →
Sign up →Sign up →
Loved by 1M+ users·Hosting 100K+ apps·Deploying 500K+ AI agents·Running 1M+ automations·Backed by Y Combinator·Powered by TSK-1
TaskadePricingFeaturesContact usIntegrationsMCP ServerDeveloper APIChangelogPressLearnAbout
ConnectProductivityKitsVideosReviewsFAQ
VibeVibe AppsVibe AgentsVibe CodingVibe WorkflowsVibe Marketing
Vibe DashboardsVibe CRMVibe AutomationVibe PaymentsVibe DesignVibe SEOVibe Tracking
Community
FeaturedQuick AppsToolsDashboardsWebsites
WorkflowsProjectsFormsCreators
DownloadsAndroidiOSMacWindows
ChromeFirefoxEdge
Compare
vs Cursorvs Boltvs Lovablevs V0vs Windsurf
vs Replitvs Emergentvs Devinvs Claude Codevs ChatGPTvs Claudevs Perplexityvs GitHub Copilotvs Figma AIvs Notionvs ClickUpvs Asanavs Mondayvs Trellovs Jiravs Linearvs Todoistvs Evernotevs Obsidianvs Airtablevs Basecampvs Mirovs Slackvs Bubblevs Retoolvs Webflowvs Framervs Softrvs Glidevs FlutterFlowvs Base44vs Adalovs Durablevs Gammavs Squarespacevs WordPressvs UI Bakeryvs Zapiervs Makevs n8nvs Jaspervs Copy.aivs Writervs Rytrvs Manusvs Crewvs Lindyvs Relevance AIvs Wrikevs Smartsheetvs Monday Magicvs Codavs TickTickvs Any.dovs Thingsvs OmniFocusvs MeisterTaskvs Teamworkvs Workfrontvs Bitrix24vs Process Streetvs Toggl Planvs Motionvs Momentumvs Habiticavs Zenkitvs Google Docsvs Google Keepvs Google Tasksvs Microsoft Teamsvs Dropbox Papervs Quipvs Roam Researchvs Logseqvs Memvs WorkFlowyvs Dynalistvs XMindvs Whimsicalvs Zoomvs Remember The Milkvs Wunderlist
Taskade GenesisVideo GuideApp BuilderVibe CodingAgent BuilderDashboard Builder
CRM BuilderWebsite BuilderForm BuilderWorkflow AutomationWorkflow BuilderBusiness-in-a-BoxAI for MarketingAI for Developers
AI Agents
FeaturedProject ManagementProductivityMarketingTranslator
ContentWorkflowResearchPersonalSalesSocial MediaTo-Do ListCRMTask AutomationCoachingCreativityTask ManagementBrandingFinanceLearning and DevelopmentBusinessCommunity ManagementMeetingsAnalyticsDigital AdvertisingContent CurationKnowledge ManagementProduct DevelopmentPublic RelationsProgrammingHuman ResourcesE-CommerceEducationLegalEmailSEODeveloperVideo ProductionDesignFlowchartDataPromptNonprofitAssistantsTeamsCustomer ServiceTrainingTravel PlanningUML DiagramER DiagramMath TutorLanguage LearningCode ReviewerLogo DesignerUI WireframeFitness CoachLead EnrichmentFounder OSSales DevelopmentBookkeepingRecruitingWebsite MonitoringAll Categories
Automations
FeaturedBusiness-in-a-BoxInvestor OperationsEducation & LearningHealthcare & Clinics
Real EstateStripeSalesE-commerceContentMarketingEmailCustomer SupportHubSpotProject ManagementAgentic WorkflowsBooking & SchedulingCalendarReportsSlackWebsiteFormTaskWeb ScrapingWeb SearchChatGPTText to ActionYoutubeLinkedInTwitterGitHubDiscordMicrosoft TeamsWebflowRSS & Content FeedsGoogle WorkspaceManufacturing & OperationsAI Agent TeamsMulti-Agent AutomationNotion AutomationsAgentic AutomationProposalBookkeeping & ExpensesClient OnboardingAll Categories
Wiki
Taskade GenesisAI AgentsAutomation
ProjectsLiving DNAAutonomous Workspaces, Agents & AppsQuantum AI & Taskade Genesis QuantumPlatformIntegrationsProductivityMethodsProject ManagementAgileScrumAI ConceptsCommunityTerminologyFeatures
Templates
FeaturedChatGPTTablePersonalProject Management
SalesFlowchartTask ManagementEngineeringEducationDesignTo-Do ListMarketingMind MapGantt ChartOrganizationalPlanningMeetingsTeam ManagementStrategyGamingProductionProduct ManagementStartupRemote WorkY CombinatorRoadmapCustomer ServiceLegalEmailBudgetsContentConsultingE-CommerceStandard Operating Procedure (SOP)Human ResourcesProgrammingMaintenanceCoachingSocial MediaHow-TosResearchMusicTrip PlanningCRMClient OnboardingEmployee OnboardingSOPBug TrackerRecruitment TrackerFormSales PipelineContent CalendarMarketing PlanProduct RoadmapBusiness PlanSWOT Analysis30-60-90 Day PlanInterviewNotion AlternativeKPIStrategic PlanMeeting AgendaInvoiceRisk RegisterIT Asset ManagementKanban BoardChange ManagementCommunication PlanRFPScope of WorkStatement of WorkHelpdeskKnowledge BaseCreative BriefGoal SettingExecutive SummaryGap AnalysisBooking SystemEvent ManagementPortfolio TrackerCustomer Onboarding PortalsClient PortalAgency OperationsFinance TrackingAll Categories
Generators
AI SoftwareNo-Code AI AppAI AppAI WebsiteAI Dashboard
AI FormAI AgentAI Client Portal BuilderAI WorkspaceAI ProductivityAI To-Do ListAI WorkflowsAI EducationAI Mind MapsAI FlowchartAI Scrum Project ManagementAI Agile Project ManagementAI MarketingAI Project ManagementAI Social Media ManagementAI BloggingAI Agency WorkflowsAI ContentAI Software DevelopmentAI MeetingAI PersonasAI OutlineAI SalesAI ProgrammingAI DesignAI FreelancingAI ResumeAI Human ResourceAI SOPAI E-CommerceAI EmailAI Public RelationsAI InfluencersAI Content CreatorsAI Customer ServiceAI BusinessAI PromptsAI Tool BuilderAI SEOAI Gantt ChartAI CalendarsAI BoardAI TableAI ResearchAI LegalAI ProposalAI Video ProductionAI Health and WellnessAI WritingAI PublishingAI NonprofitAI DataAI Event PlanningAI Game DevelopmentAI Project Management AgentAI Productivity AgentAI Marketing AgentAI Personal AgentAI Business and Work AgentAI Education and Learning AgentAI Task Management AgentAI Customer Relations AgentAI Programming AgentAI SchemaAI Business PlanAI Pitch DeckAI InvoiceAI Lesson PlanAI Social Media CalendarAI API DocumentationAI Database SchemaAI Marketing PlanAI Sales Pipeline GeneratorAI Course BuilderInternal ToolsBooking SystemReal Estate CRMInventory ManagementAI CRM BuilderAI TimesheetAI DispatchAI NewsletterAI Clinic OperationsAI Directory BuilderAll Categories
Converters
AI Featured ConvertersAI PDF ConvertersAI CSV ConvertersAI Markdown ConvertersAI Prompt to App Converters
AI Data to Dashboard ConvertersAI Workflow to App ConvertersAI Idea to App ConvertersAI Flowcharts ConvertersAI Mind Map ConvertersAI Text ConvertersAI Youtube ConvertersAI Knowledge ConvertersAI Spreadsheet ConvertersAI Email ConvertersAI Web Page ConvertersAI Video ConvertersAI Coding ConvertersAI Task ConvertersAI Kanban Board ConvertersAI Notes ConvertersAI Education ConvertersAI Language TranslatorsAI Business → Backend App ConvertersAI File → App ConvertersAI SOP → Workflow App ConvertersAI Portal → App ConvertersAI Form → App ConvertersAI Schedule → Booking App ConvertersAI Metrics → Dashboard ConvertersAI Game → Playable App ConvertersAI Catalog → Directory App ConvertersAI Creative → Studio App ConvertersAI Agent → Agent App ConvertersAI Audio ConvertersAI DOCX ConvertersAI EPUB ConvertersAI Image ConvertersAI Resume & Career ConvertersAI Presentation ConvertersAI PDF to Spreadsheet ConvertersAI PDF to Database ConvertersAI PDF to Quiz ConvertersAI Image to Notes ConvertersAI Audio to Notes ConvertersAI Email to Tasks ConvertersAI CSV to Dashboard ConvertersAI YouTube to Flashcards ConvertersURL to NotesVideo → SummaryAI Receipts to Expense Tracker ConvertersAI Docs to Knowledge Base ConvertersAI Form to Client Portal ConvertersSpreadsheet to CRMAll Categories
Prompts
Blog WritingBrandingPersonal Finance
Human ResourcesPublic RelationsTeam CollaborationProduct ManagementSupportAgencyReal EstateMarketingCodingResearchSalesAdvertisingSocial MediaCopywritingContentProject ManagementWebsite CreationDesignStrategyE-commerceEngineeringSEOEducationEmail MarketingUX/UIProductivityInfluencer MarketingAnalyticsEntrepreneurshipLegalVibe CodingCRMCustomer SupportRecruitingAll Categories
Blog
Introducing Taskade TSK-1: The System Kernel Behind Every App (2026)How to Automate 99% of Your Marketing with AI Agents (2026)AI Agents for Startups: The Lean Team Multiplier (2026)
How to Automate 99% of Customer Success with AI Agents (2026)Open-Source LLM History: GPT-2 to Kimi K3 (2026)How to Use Taskade to Automate 99% of Your Client Work (Full Guide, 2026)How to Automate 99% of Project Management with AI Agents (Full Guide, 2026)Moonshot AI & Kimi History: From K2 to K3 (2026)Vibe Coding Grew Up: What Agentic Engineering Means in 2026AI Agent Governance for Small Teams: 5 Controls That Matter (2026)How AI Agents Actually Stay Reliable: Build It Around the Model (2026)AI Agents Just Crossed Into Production. What That Changes (2026)The 2026 AI App Builder Pricing Index: 23 Tools Compared (2026)Answer Engine Optimization: How to Get Cited by ChatGPT (2026)Are AI Agents Overhyped? An Honest Mid-2026 Reckoning (2026)Best AI Agent Builders in 2026 (Ranked and Compared)The History of AI Coding Tools: From Autocomplete to Agents (2026)How to Reduce LLM Costs in 2026 (A Practical Guide)Best AI Workflow Automation Tools in 2026 (Compared)Run Your Whole Business in One App with Taskade Genesis (June 2026)
AIAutomationProductivityProject ManagementRemote WorkStartupsKnowledge ManagementCollaborative WorkUpdates
Changelog
Project Outlines for Taskade EVE & Reliable Runs (Jul 22, 2026)MCP Connections Do More & Signed Webhooks (Jul 21, 2026)Flexible Form Triggers & Refreshed Plans (Jul 19, 2026)
Taskade Genesis Reviews Its Own Visuals (Jul 17, 2026)Free Thinking Lane & Personal MCP Tools (Jul 16, 2026)Clearer Build Diagnostics & Smoother Updates (Jul 15, 2026)Export Any View to CSV & Regenerate AI Replies (Jul 13, 2026)
Wiki
Taskade GenesisAI AgentsAutomation
ProjectsLiving DNAAutonomous Workspaces, Agents & AppsQuantum AI & Taskade Genesis QuantumPlatformIntegrationsProductivityMethodsProject ManagementAgileScrumAI ConceptsCommunityTerminologyFeatures
Prompts
Blog WritingBrandingPersonal Finance
Human ResourcesPublic RelationsTeam CollaborationProduct ManagementSupportAgencyReal EstateMarketingCodingResearchSalesAdvertisingSocial MediaCopywritingContentProject ManagementWebsite CreationDesignStrategyE-commerceEngineeringSEOEducationEmail MarketingUX/UIProductivityInfluencer MarketingAnalyticsEntrepreneurshipLegalVibe CodingCRMCustomer SupportRecruitingAll Categories
© 2026 Taskade
PrivacyTermsSecurity
Made withTaskade AIforBuilders
BlogAIThe History of RAG: How AI…

The History of RAG: How AI Learned to Look Things Up (2026)

The complete history of retrieval-augmented generation: 1975 vector space models, the 2020 RAG paper, the vector database boom, GraphRAG, and agentic retrieval.

History of retrieval augmented generation: an open card catalog drawer at the Library of Congress
August 8, 202622 min readTaskade TeamAI·#retrieval-augmented-generation#rag#vector-database
On this page (18)
What Is Retrieval-Augmented Generation?The Complete RAG Timeline, 1975 to 2026Before RAG Had a Name: Fifty Years of Looking Things Up2020: The Year Retrieval Got a NameThe Vector Database Boom, 2021 to 2023Why Naive RAG Started BreakingAgentic RAG: Retrieval Becomes a DecisionGraphRAG: When the Answer Is in No Single ChunkRAG vs Long Context vs Fine-Tuning: The Decision TableWhat RAG Looks Like in 2026How Taskade Puts Retrieval to WorkFrequently Asked QuestionsFrom Card Catalogs to Agents That DecideFurther ReadingRAG and RetrievalContext and MemoryMore HistoriesExplore Taskade

Somewhere in room LM-404 of the James Madison Memorial Building in Washington DC, there is a wooden cabinet full of index cards. It is the pre-1978 copyright catalog of the Library of Congress: millions of registrations typed onto 3-by-5 cards, and for most of the twentieth century the working index for answering the question "who owns this?" You did not memorize the catalog. You looked things up in it.

Large language models spent their first few years trying to do the opposite. Everything they knew, they knew from memory, compressed into billions of weights during training. Ask about last week and you got a confident guess. Ask about your own company's documents and you got fiction.

The fix has a name and a birthday. On May 22, 2020, twelve researchers submitted a paper to arXiv called Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. This is the story of what came before it, what it started, and where retrieval ended up six years later.

Photo: Library of Congress copyright card catalog, Michael Holley via Wikimedia Commons, public domain.

TL;DR: Retrieval-augmented generation got its name on May 22, 2020, when Patrick Lewis and 11 co-authors posted the RAG paper to arXiv. Six years later retrieval is a decision an agent makes, not a fixed pipeline step. Build a knowledge-grounded agent free.


What Is Retrieval-Augmented Generation?

Retrieval-augmented generation is a technique where a model searches an external collection of documents before answering, then writes its answer from the passages it retrieved. The 2020 paper framed this as combining two kinds of memory: parametric knowledge baked into the weights during training, and non-parametric knowledge sitting in a searchable index that can be swapped, updated or audited without retraining anything.

That split is the entire idea, and it explains every property RAG has. Update the index and the model's answers update. Delete a document and the model stops citing it. Point the index at a private corpus and the model answers questions it was never trained on.

User question RETRIEVEsearch the corpus Your documents AUGMENTpaste passages into the prompt GENERATEmodel writes the answer Answer plus citations
User question RETRIEVEsearch the corpus Your documents AUGMENTpaste passages into the prompt GENERATEmodel writes the answer Answer plus citations

For the plain-English definition, see retrieval-augmented generation in the wiki, and parametric knowledge for the half RAG is compensating for.


The Complete RAG Timeline, 1975 to 2026

Retrieval-augmented generation is 6 years old as a term and roughly 50 years old as an engineering problem. Here is the full arc, with the primary source for each entry.

Year What shipped What changed Why it mattered
1975 Vector space model, Salton, Wong and Yang Documents become vectors; similarity becomes geometry The mathematical premise every embedding search still runs on
1994 Okapi BM25 at TREC-3, Robertson and Walker Keyword ranking with length and frequency normalisation Still the baseline dense retrieval is measured against in 2026
2013 word2vec, Mikolov et al., January Words get dense vectors that encode meaning Semantic similarity becomes computable at scale
Feb 2017 FAISS, Johnson, Douze and Jégou Billion-vector similarity search on GPUs Made large-scale vector search practical, not theoretical
Mar 2017 DrQA, Chen, Fisch, Weston and Bordes Search Wikipedia, then read the result to find an answer The retrieve-then-read shape RAG would inherit
Aug 2019 Sentence-BERT, Reimers and Gurevych Finding the closest pair among 10,000 sentences drops from ~65 hours to ~5 seconds Made embedding-based search cheap enough to deploy
Feb 2020 REALM, Guu et al. A retriever trained during pre-training, 4 to 16 points better on open QA Proved retrieval could be learned, not bolted on
Apr 2020 DPR, Karpukhin et al. Dense dual-encoder beats BM25 by 9 to 19 points on top-20 accuracy The retriever the RAG paper actually used
May 2020 The RAG paper, Lewis et al. Retriever and generator trained end to end; state of the art on 3 open QA tasks Gave the pattern its name and its architecture
Jan 2021 Pinecone launches, Jan 27, $10M seed Vector search becomes a managed service You no longer needed a research team to run one
Apr 2021 pgvector 0.1.0, Apr 20 Vector columns inside ordinary Postgres Removed "do we adopt a new database?" from the decision
Oct 2022 LangChain, Harrison Chase, first commit Oct 24 RAG becomes a short glue script Weekend projects, then production systems
Nov 2022 LlamaIndex, Jerry Liu, repo opened early November Document ingestion and indexing as a library The other half of the assembly problem
Mar 2023 ChatGPT retrieval plugin, open sourced A frontier lab ships RAG as a product surface Retrieval stops being a research topic
May 2023 Claude 100K context, May 11 ~75,000 words in one prompt The first serious "do we still need retrieval?" moment
Jul 2023 Lost in the Middle, Liu et al. Accuracy sags for facts placed mid-prompt Showed a big window is not the same as a usable one
Aug 2023 pgvector 0.5.0 adds HNSW indexing, Aug 28 Approximate search at production latency in Postgres Made the boring option genuinely fast
Oct 2023 Self-RAG, Asai et al. Reflection tokens let a model critique its own retrieval The first clearly agentic retrieval design
Dec 2023 RAG survey, Gao et al. Names three paradigms: Naive, Advanced, Modular Gave the field a shared vocabulary
Feb 2024 GraphRAG, Microsoft Research, Feb 13 Knowledge graph plus community summaries Answers questions no single chunk contains
Mar 2024 RAG 2.0, Contextual AI, Mar 19 Retriever and generator optimised as one system Argued bolted-together stacks were the ceiling
Sep 2024 Contextual Retrieval, Anthropic, Sep 19 Retrieval failure rate down 49%, or 67% with reranking Proved better chunking beat bigger models
Nov 2024 Model Context Protocol, Nov 25 An open standard for connecting models to data sources Retrieval becomes a connector, not a pipeline
Feb 2025 LaRA benchmark, Feb 14, later at ICML 2025 2,326 cases: no silver bullet between RAG and long context Ended the binary framing with evidence
Apr 2025 Llama 4 Scout, Apr 5 A 10M-token context window in an open-weight model Made "just paste everything" technically possible
2025-26 Agentic RAG survey, Jan 15 2025, and the shift to context engineering Retrieval becomes an agent decision inside a reasoning loop Where the field actually is today

Before RAG Had a Name: Fifty Years of Looking Things Up

Search predates RAG by about 45 years, and every layer of a modern retrieval stack has an ancestor in that period. The 1975 vector space model by Gerard Salton, A. Wong and C. S. Yang turned documents into coordinates so that "related" became a distance you could compute. BM25, introduced by Stephen Robertson, Steve Walker and colleagues at TREC-3 in 1994, ranked documents by term frequency with sane normalisation for document length. It is still a strong baseline in 2026, which is a remarkable run for a 32-year-old scoring function.

What changed in the 2010s was what the vectors meant. Salton's vectors counted words. After word2vec in 2013 and BERT in 2018, vectors encoded meaning, so "how do I cancel my plan" could match a document titled "subscription management" with no shared keywords. Sentence-BERT in August 2019 made that practical, cutting the work of finding the closest pair among 10,000 sentences from roughly 65 hours to about 5 seconds.

The plumbing arrived at the same time. FAISS from Facebook AI Research, posted to arXiv on February 28, 2017, reported building a nearest-neighbour graph over a billion vectors in under 12 hours on four GPUs. HNSW, posted by Yury Malkov and Dmitry Yashunin on March 30, 2016, gave approximate nearest-neighbour search a graph structure with logarithmic scaling, and is the index type most vector stores still default to.

Read the mechanics in vector embeddings, embeddings, and semantic search.


2020: The Year Retrieval Got a Name

Four papers in a little over three months turned retrieval from a preprocessing step into an architecture. Three of them came out before the RAG paper and made it possible.

Paper Date Contribution Why it fed RAG
REALM Feb 10, 2020 Latent knowledge retriever trained unsupervised during pre-training Showed the retriever could be learned, gaining 4 to 16 points on open QA
DPR Apr 10, 2020 Dual-encoder dense retrieval beating BM25 by 9 to 19 points at top-20 Became the retriever inside RAG
ColBERT Apr 27, 2020 Late interaction: encode separately, match fine-grained at query time Two orders of magnitude faster than BERT-based rankers
RAG May 22, 2020 Generator plus dense Wikipedia index, trained end to end Named the pattern and set state of the art on 3 open QA tasks

The RAG paper's authors were Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, Sebastian Riedel and Douwe Kiela, across Facebook AI Research, University College London and New York University. It was accepted at NeurIPS 2020.

Two details are worth keeping. First, the paper's contribution was not "search then prompt," which DrQA had done in 2017. It was training the retriever and the generator together, so the retriever learned what the generator actually found useful. Second, the paper's own framing of parametric versus non-parametric memory is still the cleanest way to explain the technique to a non-specialist, and it anticipated the knowledge cutoff problem years before anyone was complaining about it in public.


The Vector Database Boom, 2021 to 2023

Between January 2021 and mid-2023, retrieval infrastructure went from research code to a product category. Pinecone came out of stealth with a managed vector database and a $10M seed round led by Wing Venture Capital on January 27, 2021. Milvus had been open sourced by Zilliz in October 2019, with Weaviate and Qdrant arriving as open-source alternatives over the following couple of years. Postgres got pgvector 0.1.0 on April 20, 2021, and HNSW indexing in 0.5.0 on August 28, 2023, which is the moment "add a vector column to the database you already run" became a serious answer.

Then ChatGPT launched, every company wanted a chatbot over its own documents, and two libraries turned the assembly problem into a weekend. Harrison Chase pushed the initial commit of LangChain on October 24, 2022. Jerry Liu opened the repository that became LlamaIndex in early November 2022. On March 23, 2023 OpenAI shipped plugins for ChatGPT and open sourced the retrieval plugin, and retrieval stopped being a research topic entirely.

The stack that congealed in that period is still the thing most people mean when they say "RAG":

INGEST  (offline, once per document)
  Source docs  ──►  Chunk      ──►  Embed        ──►  Store
  PDFs, tickets     500-1,000       embedding         vector index
  wiki, email       tokens each     model             + metadata filters

QUERY (online, every single question)
Question ─► Embed ─► Search ─► Rerank ─► Assemble ─► Generate
same top-k relevance prompt + model writes
model nearest model k passages the answer

The whole system's accuracy is capped by the SEARCH step.
A perfect model cannot answer from a passage it never received.

That last line is the one most teams learn the expensive way. More on the failure modes in vector databases explained and what is retrieval-augmented generation.


Why Naive RAG Started Breaking

The standard 2023 pipeline failed in predictable ways, and almost all of them happen before the model generates a single token. Anthropic's Contextual Retrieval work, published September 19, 2024, is the cleanest public evidence: simply prepending explanatory context to each chunk before embedding cut top-20 retrieval failure rate by 35%, adding contextual BM25 took it to 49%, and adding a reranker reached 67%. No model change. Just better retrieval.

No No No Yes Buried mid-prompt Top or bottom Question arrives Was the rightpassage retrieved? Chunk split mid-ideacontext lost at the boundary Embedding matched topicnot the actual question Answer spans 5 documentsno single chunk has it Was it placedwhere the model reads? Lost in the middleaccuracy degrades Grounded answerwith a citation Confident hallucination
No No No Yes Buried mid-prompt Top or bottom Question arrives Was the rightpassage retrieved? Chunk split mid-ideacontext lost at the boundary Embedding matched topicnot the actual question Answer spans 5 documentsno single chunk has it Was it placedwhere the model reads? Lost in the middleaccuracy degrades Grounded answerwith a citation Confident hallucination

The placement failure has its own landmark paper. Lost in the Middle, submitted July 6, 2023 by Nelson Liu, Kevin Lin, John Hewitt, Ashwin Paranjape, Michele Bevilacqua, Fabio Petroni and Percy Liang, found that performance "is often highest when relevant information occurs at the beginning or end of the input context, and significantly degrades when models must access relevant information in the middle of long contexts." A large context window is not the same as a uniformly usable one, which is exactly the phenomenon now called context rot.

Symptom Root cause The fix that works
Correct-sounding answer, wrong facts Wrong passages retrieved Rerank; add contextual chunk headers
Model says "not in the documents" but it is Chunk boundary split the idea Overlapping chunks; larger windows; parent-document retrieval
Works on demos, fails on real questions Embeddings match topic, not intent Hybrid search: dense vectors plus BM25
Good retrieval, still wrong answer Evidence buried mid-prompt Reorder so top-ranked passages sit first and last
Cannot answer "what are the themes here" No single chunk holds the answer GraphRAG or hierarchical summarisation

Agentic RAG: Retrieval Becomes a Decision

By late 2023, the interesting systems stopped retrieving on every query and started deciding. Self-RAG, submitted October 17, 2023 by Akari Asai, Zeqiu Wu, Yizhong Wang, Avirup Sil and Hannaneh Hajishirzi, trained a model to emit special reflection tokens that let it judge whether retrieval was needed at all and whether the retrieved passages actually helped. That is the hinge: retrieval moved from a fixed pipeline stage into the model's reasoning loop.

No Yes No Yes informs next turn Question Do I needexternal facts? Answer fromtrained knowledge Choose a queryand search Are these resultsgood enough? Rewrite the queryor switch source Answer, cite,store what was learned Persistent memory
No Yes No Yes informs next turn Question Do I needexternal facts? Answer fromtrained knowledge Choose a queryand search Are these resultsgood enough? Rewrite the queryor switch source Answer, cite,store what was learned Persistent memory

The December 2023 RAG survey by Yunfan Gao and co-authors named the progression Naive, Advanced and Modular RAG, and the January 2025 agentic RAG survey by Aditi Singh and co-authors documented what came next: agents embedded in the retrieval pipeline, using reflection, planning, tool use and multi-agent collaboration to pick a strategy instead of following a fixed workflow. If you want the pattern rather than the papers, see agentic RAG and agentic design patterns.


GraphRAG: When the Answer Is in No Single Chunk

Microsoft Research announced GraphRAG on February 13, 2024, authored by Jonathan Larson and Steven Truitt, with the full method published as From Local to Global on April 24, 2024, led by Darren Edge. The problem it solves is structural. Ask a vector index "what are the recurring themes in these 3,000 support tickets" and it returns the five tickets most similar to your question, which is useless, because the answer is a property of the whole collection and lives in no individual document.

GraphRAG has a language model build an entity-and-relationship graph over the corpus, cluster that graph into communities, and pre-summarise each community. A broad question is then answered by combining community summaries rather than by finding chunks. On corpora around one million tokens the paper reports substantial gains over conventional RAG on comprehensiveness and diversity for global sensemaking questions. Microsoft's own blog is careful here: the comparison used a language model as judge on qualitative criteria, not a numeric accuracy benchmark.

See GraphRAG for the definition and knowledge graph agents for how graph-shaped memory behaves in practice.


RAG vs Long Context vs Fine-Tuning: The Decision Table

The most useful thing in this article is this table, because the three techniques get compared as if they were rivals when they solve three different problems. Retrieval changes what the model knows. Long context changes how much it can see at once. Fine-tuning changes how it behaves.

Dimension RAG (retrieve it) Long context (paste it all) Fine-tuning (bake it in)
What it actually changes The facts available at answer time How much the model sees in one pass Style, format, behaviour, tone
Freshness Immediate: update the index, done Immediate, but you re-send everything each call Stale until you retrain
Corpus ceiling Effectively unbounded Bounded by the window: up to 10M tokens in Llama 4 Scout Bounded by training budget
Cost per query Low: you send a handful of passages High: you pay for every token, every call Low per query, high one-time
Traceability Strong: cite the exact retrieved source Weak: the answer could come from anywhere in the blob None: the source dissolves into weights
Permissions Natural: filter the index by who is asking Awkward: you must pre-filter before pasting Impossible: weights cannot be scoped per user
Best for Private docs, policies, tickets, anything that changes One long document, one meeting, one codebase in one sitting House format, classification, consistent output shape
Breaks when Retrieval misses the passage The evidence lands mid-prompt and gets skimmed The underlying facts change

The binary framing was settled with evidence rather than opinion. LaRA, posted in February 2025 and presented at ICML 2025, tested 2,326 cases across four QA task categories and three types of naturally occurring long text, and concluded there is no silver bullet: the optimal choice depends on model parameter size, long-text capability, context length, task type and the characteristics of the retrieved chunks. Contextual AI's RAG 2.0 argument from March 19, 2024 lands in the same place from the other direction, noting that systems optimised end to end use substantially less compute than long-context approaches at higher accuracy.

A 30-second version:

If this is true Reach for
The knowledge changes weekly or faster RAG
Different users may see different documents RAG
You need to show where an answer came from RAG
It is one document and it fits comfortably in the window Long context
You are exploring, not shipping Long context
The model gets the facts right but the format wrong Fine-tuning
You need a specific tone across thousands of outputs Fine-tuning
Two of the above are true Combine them, this is the normal case

Longer treatment in fine-tuning vs RAG vs prompting and fine-tuning.


What RAG Looks Like in 2026

Retrieval in 2026 is a capability an agent invokes, not a pipeline a system runs. Three things drove that.

First, standardisation. The Model Context Protocol, announced November 25, 2024 as an open standard for two-way connections between AI tools and data sources, turned "wire up a retriever" into "connect a server." Retrieval became one connector among many rather than bespoke plumbing per application.

Second, the framing shifted from prompts to context engineering: deciding what belongs in a limited window, in what order, at what fidelity, and what gets dropped. Retrieval is one lever in that budget, alongside context compaction, prompt caching and summarisation.

Third, the failure vocabulary matured. Teams now debug with specific terms rather than "the AI is wrong," which is why hallucinations, context rot and stateless versus stateful behaviour are worth knowing by name.

2020-2022RESEARCHretriever plus generator,trained together 2023-2024PIPELINEchunk, embed, search,stuff the prompt 2025-2026DECISIONthe agent decideswhether and what to search Grounded answerswith sources
2020-2022RESEARCHretriever plus generator,trained together 2023-2024PIPELINEchunk, embed, search,stuff the prompt 2025-2026DECISIONthe agent decideswhether and what to search Grounded answerswith sources

How Taskade Puts Retrieval to Work

In Taskade, the knowledge an agent retrieves from is the workspace you already have. You attach projects, uploaded documents and files to an AI agent, and that material becomes the ground it answers from, no vector database to provision and no ingestion pipeline to maintain. Step-by-step setup lives in agent knowledge and build a knowledge chatbot.

That is the Memory half of Workspace DNA. Memory lives in your projects across 7 views: List, Board, Calendar, Table, Mind Map, Gantt and Org Chart. Intelligence reads that memory: agents run on 15+ frontier models from OpenAI, Anthropic, Google and open-weight providers, with web search, persistent memory, custom slash commands and multi-agent collaboration. Execution acts on it: automations fire on triggers and push results back through 100+ bidirectional integrations, and every run writes new material back into memory. The loop closes.

For agents that build rather than answer, Taskade Genesis grounds generated apps in the same workspace context, described in app context and the memory graph. Browse working examples in the Community Gallery, or read the architecture in Workspace DNA and the AI agent stack.

Paid plans start at Pro $10 per month billed annually, which includes agents with knowledge attachment, automations and integrations.


Frequently Asked Questions

What is retrieval-augmented generation?

A technique where a language model searches an external body of documents before it answers, then writes its answer using the passages it found. The model's weights supply language ability. The retrieved documents supply facts. This lets a model cite sources, use information newer than its training data, and answer questions about private documents it was never trained on.

Who invented RAG and when?

The term was introduced in Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks, submitted to arXiv on May 22, 2020 and published at NeurIPS 2020. Twelve authors, led by Patrick Lewis, across Facebook AI Research, University College London and New York University.

What did the original 2020 RAG paper actually do?

It paired a pre-trained sequence-to-sequence generator with a dense vector index of Wikipedia and trained the two together end to end. The paper framed this as combining parametric memory, meaning knowledge in weights, with non-parametric memory, meaning knowledge in a searchable index. It set the state of the art on three open-domain QA tasks.

What came before RAG?

Decades of information retrieval: the 1975 vector space model, BM25 at TREC-3 in 1994, word2vec in 2013, BERT in 2018 and Sentence-BERT in 2019. The immediate precursors were DrQA in March 2017, REALM in February 2020 and Dense Passage Retrieval in April 2020.

Why did vector databases explode in 2023?

ChatGPT made it obvious that every organisation wanted a chatbot over its own documents. Pinecone had launched a managed vector database in January 2021, Milvus went open source in October 2019, and pgvector added HNSW indexing in August 2023. LangChain and LlamaIndex, both from late 2022, turned assembling the pieces into a weekend project.

What is agentic RAG?

Retrieval treated as a decision the model makes rather than a fixed pipeline step. The agent decides whether to search, chooses the query, judges the results, and searches again if they are inadequate. Self-RAG in October 2023 introduced reflection tokens for exactly this. See agentic RAG.

What is GraphRAG?

A Microsoft Research method announced February 13, 2024 that builds an entity-and-relationship graph over a corpus, clusters it into communities, and pre-summarises each one. It targets questions where the answer is a property of the whole collection rather than of any single document.

Does long context make RAG obsolete?

No. The LaRA benchmark at ICML 2025, with 2,326 test cases, concluded there is no silver bullet: the right choice depends on model, context length, task and retrieval quality. Long context removed the need for retrieval on small self-contained corpora. Large, fresh, private or permission-scoped corpora still favour retrieval on cost, latency and traceability.

Should I use RAG or fine-tuning?

Use RAG when the model needs facts it lacks. Use fine-tuning when the model needs a behaviour it lacks. Retrieval changes what the model knows. Fine-tuning changes how it writes. They are frequently combined. See fine-tuning vs RAG vs prompting.

Why do RAG systems still hallucinate?

Usually because retrieval failed before generation began: chunks split at the wrong boundary, embeddings matching topic instead of intent, or relevant text buried mid-prompt. Lost in the Middle showed accuracy peaks when evidence sits at the beginning or end of the input and degrades significantly in the middle.

How do I build a knowledge-grounded AI system without writing code?

Attach your projects, documents and files to a Taskade AI agent as its knowledge base. The agent grounds answers in that material and can trigger automations across 100+ integrations. Walkthrough in agent knowledge.


From Card Catalogs to Agents That Decide

The Library of Congress card catalog worked because someone decided what each card said, where it filed, and how you would find it again. That is still the job. The 2020 RAG paper did not invent looking things up. It gave a model a way to do it and, more importantly, a way to be trained on doing it well.

Six years on, the interesting question is no longer whether a model can search. It is whether it knows when to. The systems that work in 2026 treat retrieval as a judgement inside a reasoning loop, grounded in memory that keeps accumulating: Memory feeds Intelligence, Intelligence triggers Execution, Execution writes new Memory.

That loop is what Taskade Genesis runs on. Your workspace is the index. Your agents are the readers. Your automations are the execution.

▲ ■ ●

Try Taskade free →


Further Reading

RAG and Retrieval

  • What Is Retrieval-Augmented Generation?: the plain-English explainer
  • Fine-Tuning vs RAG vs Prompting: how to choose, with cost math
  • Vector Databases and Embeddings Explained: what actually happens inside the index
  • Knowledge Graph Agents: graph-shaped memory in practice
  • Retrieval-Augmented Generation · Agentic RAG · GraphRAG · Vector Database · Corpus

Context and Memory

  • Context Engineering Field Guide: the discipline retrieval now lives inside
  • Types of Memory in AI Agents: what survives between sessions
  • How Do Large Language Models Work?: transformers, attention, generation
  • Context Window · Parametric Knowledge · Hallucinations · Agent Harness

More Histories

  • The History of Workflow Automation: from punch cards to agents
  • The History of Anthropic and Claude
  • The History of Mermaid.js: diagrams as code
  • What Is Agentic Engineering?

Explore Taskade

  • Taskade Genesis: one prompt, one living app
  • AI Agents: knowledge, memory, tools, multi-agent collaboration
  • Automations: triggers and actions across 100+ integrations
  • Community Gallery: working apps you can clone
0%

On this page

What Is Retrieval-Augmented Generation?The Complete RAG Timeline, 1975 to 2026Before RAG Had a Name: Fifty Years of Looking Things Up2020: The Year Retrieval Got a NameThe Vector Database Boom, 2021 to 2023Why Naive RAG Started BreakingAgentic RAG: Retrieval Becomes a DecisionGraphRAG: When the Answer Is in No Single ChunkRAG vs Long Context vs Fine-Tuning: The Decision TableWhat RAG Looks Like in 2026How Taskade Puts Retrieval to WorkFrequently Asked QuestionsFrom Card Catalogs to Agents That DecideFurther ReadingRAG and RetrievalContext and MemoryMore HistoriesExplore Taskade

Related Articles

How AI agents stay reliable: an unreliable model wrapped in a separate checker and a deterministic gate
July 23, 2026AI

How AI Agents Actually Stay Reliable: Build It Around the Model (2026)

Reliability is something you build around an AI model, not buy from it. Nine teams across five fields converge on one pa...

AI Agent Knowledge Files — train AI agents on your own documents, links, and drives in 2026
July 6, 2026AI

AI Agent Knowledge Files: Train AI on Your Own Docs (2026)

Train AI agents on your own files, cloud drives, and web links so they answer with your knowledge — not the public inter...

Taskade Genesis implementing agent planning, tools, and execution modes natively
June 19, 2026AI

The 21 Agentic Design Patterns: A Field Guide for Building AI Agents That Actually Ship (2026)

A field guide to the 21 agentic design patterns, grouped into 5 families, that turn brittle demos into AI agents that ac...

Vector databases and vector search explained: embeddings and similarity search in 2026
June 19, 2026AI

Vector Databases & Vector Search Explained: Embeddings, Similarity Search, and the Top Vector DBs in 2026

A vector database stores embeddings and finds the most similar ones fast. Here is how embeddings, ANN/HNSW search, and h...

AI agents for startups in 2026 — a lean five-person team running like twenty with support, sales, ops, and research agents built from one prompt in Taskade Genesis
July 26, 2026AI

AI Agents for Startups: The Lean Team Multiplier (2026)

By Q1 2026, 80% of new enterprise apps embed an AI agent. Here is the startup playbook to run a 5-person team like 20 — ...

Vibe coding matured into agentic engineering, a disciplined AI building workflow in 2026
July 23, 2026AI

Vibe Coding Grew Up: What Agentic Engineering Means in 2026

Is vibe coding dead in 2026? No, it grew up into agentic engineering: the same describe-it, build-it instinct plus specs...

View All Articles
History of RAG: How AI Learned to Look Things Up (2026) | Taskade Blog