Updated 4 days ago
Bedrock's AgenticRetrieveStream now takes maxAgentIteration 0 or 1: passages only, or one retrieval plus one answer

Bedrock's AgenticRetrieveStream now takes maxAgentIteration 0 or 1: passages only, or one retrieval plus one answer

On November 9, 2026, AWS said Amazon Bedrock Managed Knowledge Base can run retrieval‑only and single‑shot RAG requests through AgenticRetrieveStream. Setting maxAgentIteration to 0 with generateResponse false returns passages with no foundation model call. Setting it to 1 retrieves once and generates one answer with no planning rounds. Values 2 to 5 keep the existing agentic behavior. The application chooses the mode; the parameter does not route requests automatically. AWS gives no new latency, cost or accuracy measurements, and the passages‑only stream differs in shape from a direct Retrieve call.

What changed

AWS announced on November 9, 2026 that Amazon Bedrock Managed Knowledge Base now supports single‑shot retrieval augmented generation (RAG) and retrieval‑only requests through `AgenticRetrieveStream` [1](https://aws.amazon.com/blogs/machine‑learning/single‑shot‑and‑agentic‑retrieval‑with‑amazon‑bedrock‑managed‑knowledge‑base/). Until now this API was described as agentic retrieval: a foundation model splits a complex question into sub‑queries and retrieves iteratively [2](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent‑runtime_AgenticRetrieveStream.html). The change is in the `maxAgentIteration` parameter, whose range is now 0 to 5. Callers already on this API can choose a lighter path per request without switching to a second API. AWS says single‑shot RAG can reduce latency and model usage compared with agentic retrieval, and that retrieval‑only requests make no foundation model calls. It publishes no pricing comparison, so whether a given request costs less is something to measure. The retained API reference page lists `maxAgentIteration` as a number in the request syntax but does not describe its values. The 0 to 5 range and the behavior of each value come from the announcement, so treat them as AWS's account of the feature rather than something verified here.

The three settings

Per the announcement 1:

  • maxAgentIteration=0: one guaranteed retrieval, no foundation model call. Use it with generateResponse=false. Combining 0 with generateResponse=true is invalid and returns a 4xx error, because generating an answer needs a model call.
  • maxAgentIteration=1: one retrieval, then one answer‑generation call, with no planning and no query rewriting. Pair it with generateResponse=true.
  • maxAgentIteration=2 to 5: agentic mode, unchanged. Up to n minus 1 planning rounds, then an answer. Existing requests in this range keep their current behavior.

The API reference says a generated response is produced by default and can be turned off 2. The sources do not say what happens if a request sets 0 and omits generateResponse, so set it to false explicitly. They also do not state a default for maxAgentIteration.

What counts as an iteration

AWS defines one iteration as one foundation model call. The loop always ends with a single answer‑generation call, so a value of n allows up to n minus 1 planning rounds. Each planning round is a query rewrite plus a retrieval 1.

Three things the number does not measure:

  • Documents retrieved. An iteration is a model call, not a document.
  • Knowledge bases. All three modes can query multiple knowledge bases, including 0 and 1. What agentic mode adds is query decomposition, evidence evaluation and iterative searches.
  • Speculative retrieval. The initial retrieval that runs ahead of the first planning step is not an iteration and does not count against the limit.

AWS also says the parameter is not automatic routing. The application decides which value to send for each request.

What the stream returns

With generation on, the stream can carry `responseEvent` chunks of the answer, a `result` event holding `generatedResponse` with its citations, and trace events for visibility into the process. The reference says `responseEvent` is emitted only when `generateResponse` is true [2](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent‑runtime_AgenticRetrieveStream.html). At `maxAgentIteration=1`, AWS says you consume the stream as before, but it contains a single retrieval and one grounded answer, with no planning trace events in between [1](https://aws.amazon.com/blogs/machine‑learning/single‑shot‑and‑agentic‑retrieval‑with‑amazon‑bedrock‑managed‑knowledge‑base/). At `maxAgentIteration=0`, AWS says the service returns deduplicated source passages and no generated answer. Retrieval behavior matches a direct Retrieve call, but the response format does not: passages arrive in the stream's `result` event without `score` or `location` fields. If your code reads relevance scores or source locations from Retrieve responses, switching to this mode is not a drop‑in change.

When to return passages without an answer

Retrieval‑only fits cases where the reader should see the source text rather than a model's summary. AWS's example is an employee reviewing an account‑opening procedure who wants the policy text itself. The application shows the passages and their source references and calls no model [1](https://aws.amazon.com/blogs/machine‑learning/single‑shot‑and‑agentic‑retrieval‑with‑amazon‑bedrock‑managed‑knowledge‑base/). AWS also describes the 0 setting as most useful for callers already standardized on `AgenticRetrieveStream` who would rather change a parameter than switch APIs. The banking assistant in the announcement is a fictional illustration. AWS says it is not a customer deployment or a measured result. It is a policy lookup and comparison tool and does not approve accounts.

Picking a value, and what is not established

AWS's guidance is to pick the lowest iteration limit that meets each workflow's quality needs 1:

  • Well‑scoped, direct questions: 1 is suggested as a likely default if most traffic looks like that.
  • Multi‑part, comparative, exploratory or cross‑knowledge‑base questions: 2 to 5. In the example, a question comparing sole proprietors and LLCs plus checks for nonresident owners uses 4, which allows up to three planning rounds.
  • Source review: 0 with generation off.

AWS says lower values make calls faster and more predictable. The announcement publishes no latency, price or accuracy figures, and the retained sources include no independent test of the API. A higher value gives the planner more chances to decompose and refine a hard question, but AWS itself warns against assuming it always produces a better answer.

Its suggested evaluation is to run representative questions from your own documents against both single‑shot and your current agentic setting on the same knowledge base. Measure latency and request cost, and check that answers are correct and supported by the retrieved passages. Include questions that span several documents and questions the documents cannot answer, so a faster response does not hide missing evidence.

Share this article

PostShare

Related News

AgentCore Web Answer vs Web Search: who runs the model, what you get back, and what the managed tool decides for you

Nov 11, 2026

AgentCore Web Answer vs Web Search: who runs the model, what you get back, and what the managed tool decides for you

AWS announced general availability of Web Answer on Amazon Bedrock AgentCore on 5 November 2026. Web Search hands your agent ranked links and snippets and leaves synthesis to your own model. Web Answer runs the retrieval loop, model, synthesis and citation step and returns a finished cited answer through AgentCore Gateway. This piece compares the returned artifact, the permissions, the controls you keep, the $10 per 1,000 tool calls price and the limits, including what AWS's guide does not establish.

AWSAgentCoreWeb search
AgentCore memory poisoning: what AWS builds in, what its new write-validation pattern adds, and where the demo evidence stops

Nov 11, 2026

AgentCore memory poisoning: what AWS builds in, what its new write-validation pattern adds, and where the demo evidence stops

An AWS Security Blog post from 9 November 2026 separates the memory-poisoning controls AgentCore already offers (IAM namespace conditions, namespace-variable validation, Cedar policy, custom consolidation prompts, the ApplyGuardrail API) from a custom pre-write Lambda interceptor that scores each write and returns ALLOW, QUARANTINE or DENY. The custom layer is a sample you deploy, not a default setting. Its published 11-scenario demo used a keyword-overlap stand-in for embeddings, so the results do not show production accuracy or false-positive rates. Writes that bypass AgentCore Gateway, such as direct SDK calls, are not covered by the interceptor.

AWSAgentCoreAI security
Google's MKA benchmark tests AI agents on 200 private professional tasks; a separate set of 10 public tasks is available for inspection

Nov 10, 2026

Google's MKA benchmark tests AI agents on 200 private professional tasks; a separate set of 10 public tasks is available for inspection

Google DeepMind's new Multimodal Knowledge Agent benchmark evaluates AI agents on 200 private tasks requiring visual analysis of complex professional files like architectural blueprints and engineering schematics. While the benchmark's headline scores are based on these private evaluations, only 10 sample tasks are publicly available for inspection. The benchmark uses weighted criteria where harder 'Climb' criteria measure advanced performance, and costs reported by Artificial Analysis exclude judge calls, limiting direct workplace cost comparisons.

AI benchmarksAI agentsGoogle DeepMind