This guide will help you get started with the AWS Knowledge Bases retriever. Knowledge Bases for Amazon Bedrock is an Amazon Web Services (AWS) offering which lets you quickly build RAG applications by using your private data to customize FM response. ImplementingDocumentation Index
Fetch the complete documentation index at: https://nvd-54.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
RAG requires organizations to perform several cumbersome steps to convert data into embeddings (vectors), store the embeddings in a specialized vector database, and build custom integrations into the database to search and retrieve text relevant to the user’s query. This can be time-consuming and inefficient.
With Knowledge Bases for Amazon Bedrock, simply point to the location of your data in Amazon S3, and Knowledge Bases for Amazon Bedrock takes care of the entire ingestion workflow into your vector database. If you do not have an existing vector database, Amazon Bedrock creates an Amazon OpenSearch Serverless vector store for you. For retrievals, use the LangChain - Amazon Bedrock integration via the Retrieve API to retrieve relevant results for a user query from knowledge bases.
集成详情
设置
Knowledge Bases can be configured through AWS Console or by using AWS SDKs. We will need theknowledge_base_id to instantiate the retriever.
如果您希望从单个查询中获得自动追踪功能,还可以通过取消注释以下代码来设置 LangSmith API 密钥:
安装
此检索器位于langchain-aws 包中:
实例化
现在我们可以实例化检索器:用法
在链中使用
API 参考
For detailed documentation of allAmazonKnowledgeBasesRetriever features and configurations head to the API reference.
连接这些文档到 Claude、VSCode 等工具,通过 MCP 获取实时答案。

