A customer asks a support assistant to compare two products across three dimensions. That single sentence hides six questions, and a standard search tool tends to answer only part of them. Agentic retrieval is a way of searching in which the system plans the search first, runs several targeted lookups, and checks whether it found enough. AWS describes how to use it from a LangChain application through Amazon Bedrock Knowledge Bases, and the approach to agentic retrieval LangChain developers can adopt is worth understanding even if you never write the code yourself.
Why does a single search miss parts of a question?
AWS explains that a standard retrieval step turns the whole question into one numeric representation, called a query vector, and looks for the document chunks closest to it. When the question carries several intents, that one vector ends up as an approximation of their average. The result looks healthy: the search runs without errors, the relevance scores seem reasonable, and the answer comes back concise. Yet AWS notes that the retrieved chunks, while topically relevant, cover only a fraction of what was actually asked.
This is a quiet failure. Nothing signals that anything went wrong, so a half-complete answer can look like a complete one.
What is agentic retrieval on Amazon Bedrock?
Amazon Bedrock is AWS’s service for building with foundation models. Its Managed Knowledge Base feature is the fully managed retrieval layer behind a RAG application. RAG, short for retrieval-augmented generation, means the AI looks up relevant documents and writes its answer from them instead of relying on memory alone. AWS says the managed version removes the self-managed vector store, embeddings, and re-ranking models from the architecture. You configure a data source, and the service handles chunking, embedding, storage, and retrieval. The walkthrough uses Amazon S3 as that data source.
On top of this, AWS describes agentic retrieval as a planned process rather than a single search. The system breaks the question into sub-queries, runs them, judges whether it has enough evidence, and searches again if it does not. The Amazon Bedrock documentation adds that a foundation model performs the decomposition and the sufficiency check, which it says improves accuracy for complex, multi-step questions that one pass might not fully address.
The documentation gives a simple illustration. Asked which of two magazines was started first, agentic retrieval splits the question into one lookup per magazine’s founding date, retrieves results for each, and then evaluates whether the combined results are enough to answer.
How do the two retrieval paths differ in LangChain?
Amazon Bedrock Managed Knowledge Bases offers two interfaces, and AWS says the langchain-aws package exposes both:
- Retrieve runs one hybrid search and returns scored chunks. In LangChain it appears as a standard retriever that can be dropped into a chain.
- AgenticRetrieveStream runs the planning loop and streams its steps back as trace events. In the package it is exposed as a function that retrieves directly from a knowledge base.
In both cases the application receives document chunks and then uses them to generate a grounded response. LangChain here is an open-source framework for assembling AI applications from reusable parts, so the practical effect is that an existing LangChain assistant can use either path without leaving the framework.
What happens inside an agentic retrieval request?
The Amazon Bedrock documentation lays out the sequence for a request to the streaming interface:
- Session history load. If a memory configuration with a session binding is supplied, Amazon Bedrock restores the earlier conversation from AgentCore Memory short-term memory before work begins.
- Planning. The foundation model analyzes the query and decomposes it into one or more sub-queries, each aimed at a configured source, either a knowledge base retriever or AgentCore Memory long-term memory.
- Retrieval. The sub-queries run against those sources and results are collected.
- Evaluation and repeat. The model checks whether the results are sufficient. If not, it plans additional rounds, up to the configured maximum.
- Full document expansion. When the model decides it needs a whole document, for example to summarize it or verify completeness, it calls the GetDocumentContent API.
- Response generation. With generateResponse left at its default of true, the model writes a natural-language answer and streams it back.
- Result event. Deduplicated results from all iterations, the full answer, and citations are returned.
Trace events stream throughout, which is what AWS uses to show the plan the model produced. Reading those events lets a developer see which sub-queries were created and why a second round did or did not happen.
How does it compare with other approaches?
The sources describe two points on a spectrum rather than a full market survey. At one end is single-shot retrieval: one query, one search, fast and predictable. At the other is a planning loop in which a model decides what to search for and when to stop. Neither source benchmarks Bedrock’s approach against other vendors’ retrieval products, so no ranking among them is supported here.
What AWS does provide is a within-platform comparison. The blog post runs the same multi-part question through both paths, inspects the trace, and then discusses what each path costs and when the cheaper one is the right choice. That framing treats agentic retrieval as an option for hard questions, not a replacement for ordinary search.
What does a realistic workflow look like?
Consider the scenario AWS uses: a support assistant built with LangChain, backed by product documents stored in Amazon S3 and indexed by a managed knowledge base. A customer asks for a comparison of two products across three dimensions.
- With standard retrieval, the assistant sends one query and receives the chunks closest to the blended meaning of the whole question. The answer reads smoothly but may address only some of the product and dimension pairs.
- With agentic retrieval, the model plans separate sub-queries, runs them, and checks coverage. The trace events show the plan, so a developer can confirm that each product and dimension was actually searched.
The same assistant could route simple, single-intent questions to the standard retriever and send compound ones to the agentic path, since both are available from the same package. The sources do not describe an automatic router, so that division would be an application design choice.
What does it cost, and what is required?
AWS says its post covers what the two retrieval paths cost and when the cheaper one is the right choice. The excerpt available here does not include the actual figures, so no price or comparison is stated in this article. The structure of the process explains the direction of the difference: agentic retrieval uses a foundation model for planning and evaluation, and it can run multiple retrieval rounds, whereas the standard path runs a single search.
The Amazon Bedrock documentation lists the requirements. A fully managed knowledge base is needed, because agentic retrieval currently supports only managed knowledge bases. The application also needs access to a foundation model in Amazon Bedrock for planning and evaluation, plus the appropriate IAM permissions, which are AWS’s access-control settings.
Privacy and data handling follow from the memory features. When a session binding is set and the persistence mode is DEFAULT, the documentation says Amazon Bedrock saves the question and the generated answer to the session. Anyone designing an assistant around this feature will want to check the current documentation for retention details.
In practice, the main caution is that a more thorough search is still bounded by what the knowledge base contains and by a configured maximum number of iterations. The trace events are the main way to confirm whether the loop covered each part of a question, so checking them on representative multi-part queries is a sensible habit. Teams should verify the current documentation for model availability, regional support, and pricing before relying on it.