# Agentic retrieval with LangChain and Amazon Bedrock Knowledge Bases

DevFeed: [Agentic retrieval with LangChain and Amazon Bedrock Knowledge Bases](<https://devfeed.tech/articles/agentic-retrieval-with-langchain-and-amazon-bedrock-knowledge-bases-65179.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/machine-learning/agentic-retrieval-with-langchain-and-amazon-bedrock-knowledge-bases/>)

Author: Manideep Reddy Gillela

Published: 2026-10-05T15:53:56Z

Content type: tutorial

Language: en

Sources: [Artificial Intelligence](<https://devfeed.tech/sources/artificial-intelligence.md>)

Topics: [Retrieval Augmented Generation (RAG)](<https://devfeed.tech/topics/retrieval-augmented-generation-rag.md>), [LangChain](<https://devfeed.tech/topics/langchain.md>), [Amazon Bedrock Knowledge Bases](<https://devfeed.tech/topics/amazon-bedrock-knowledge-bases.md>)

Tags: [advanced-300](<https://devfeed.tech/tags/advanced-300.md>), [amazon-bedrock](<https://devfeed.tech/tags/amazon-bedrock.md>), [amazon-bedrock-knowledge-bases](<https://devfeed.tech/tags/amazon-bedrock-knowledge-bases.md>), [api](<https://devfeed.tech/tags/api.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [aws](<https://devfeed.tech/tags/aws.md>), [aws-identity-and-access-management-iam](<https://devfeed.tech/tags/aws-identity-and-access-management-iam.md>), [aws-security-token-service](<https://devfeed.tech/tags/aws-security-token-service.md>), [costs](<https://devfeed.tech/tags/costs.md>), [langchain](<https://devfeed.tech/tags/langchain.md>), [rag](<https://devfeed.tech/tags/rag.md>), [run](<https://devfeed.tech/tags/run.md>), [technical-how-to](<https://devfeed.tech/tags/technical-how-to.md>)

## AI overview

This walkthrough builds a Retrieval Augmented Generation application using LangChain and Amazon Bedrock Managed Knowledge Bases. It compares standard single-shot retrieval with agentic retrieval, which plans sub-queries and can retrieve additional evidence for multi-part questions. Agentic retrieval can improve recall on complex queries but costs more and has higher latency; standard retrieval is cheaper and faster for short, well-scoped questions.

## Source excerpt

Build a Retrieval Augmented Generation (RAG) application on Amazon Bedrock Managed Knowledge Base with LangChain, and see how agentic retrieval handles the multi-part questions that single-shot retrieval answers poorly. Run the same query through both paths, read the trace events, and compare what each retrieval path costs.