AWS walkthrough: agentic retrieval splits multi-intent queries into sub-searches on Bedrock
AWS ML Blog · rss · 2026-10-05
AWS ML Blog demonstrates agentic retrieval on Amazon Bedrock Managed Knowledge Base with LangChain. The core problem: standard RAG packs all user intents (e.g., comparing two products across three dimensions = six sub-questions) into a single query vector, so retrieved chunks look relevant but cover only part of the ask.
Agentic retrieval plans the retrieval instead: it decomposes the question into sub-queries, runs them, judges whether evidence suffices, and searches again if not. The post compares the Retrieve API (single hybrid search) against the AgenticRetrieveStream API (multi-step planning loop streaming trace events), covering cost differences between the two paths and when the cheaper one is right.
Practical details: requires boto3 ≥1.43.32 and langchain-aws ≥1.6.3; IAM must separate the knowledge base service role from the caller identity, noting bedrock:AgenticRetrieveStream and bedrock:InvokeModelWithResponseStream cannot be scoped to a knowledge base ARN; the often-missed bedrock:GetDocumentContent permission is required when the planner's FullDocumentExpansion step pulls a whole document, or queries fail midway.
More from coding & agent
- Claude Opus Configures Karabiner Media Keys End-to-End, No Human Hands — cantrell · 2026-11-29
- Agentic GraphRAG unifies enterprise knowledge and agent memory in one traversable graph — vm324234 · 2026-11-29
- Coding agent blocked from npm rewrote the whole package from memory — and it worked — Panther1537 · 2026-11-29
- AI agents solve 909 open math problems in 2 days on 18-year-old's Left to Solve site — julianibarz · 2026-11-29
- 'Verification is AI's next trillion-dollar category' — proof checkers, evals, agents auditing agents — McDonaghMatthew · 2026-11-29
- Vibe-codevember day 28: 'Hive', a Three.js creative coding demo built with AI — thespite · 2026-11-29