I Let My AI Agent Build a Bedrock RAG Knowledge Base, Here Are the 2 Mistakes the AWS Agent Toolkit Caught An engineer using an AI agent to provision an Amazon Bedrock RAG knowledge base with S3 Vectors encountered two critical mistakes that were caught by the Agent Toolkit for AWS. The first was using a deprecated Anthropic model version, which the toolkit corrected by surfacing the current inference-profile-only model IDs. The second was assuming Bedrock would automatically create the S3 Vectors index, when in fact the index must be manually created with specific non-filterable metadata keys, a requirement not present in most models' training data. Provisioning a Bedrock RAG knowledge base with S3 Vectors, without the hallucinated API calls. If you've asked an AI coding agent to set up AWS, you've seen it confidently invent a parameter, reach for a deprecated service, or burn ten minutes retrying against a service it never saw in training. The failure mode that bites hardest is the silent one: the agent thinks it succeeded, and you find out an hour later. I hit two of these while standing up the retrieval layer for a LangGraph support bot, an Amazon Bedrock Knowledge Base backed by Amazon S3 Vectors. I'd love to say I caught both with deep AWS expertise. I caught them because the Agent Toolkit for AWS https://github.com/aws/agent-toolkit-for-aws read the docs I hadn't. Both would have shipped, and neither did. The goal: take a folder of markdown product docs and make them queryable by meaning, so an agent can answer "is this safe for color-treated hair?" from the real docs instead of guessing. Think of it as giving the agent a library it can search instead of making things up. That's the retrieval half of RAG, the foundation a LangGraph agent will later call as a tool. Four moving parts, wrapped in one managed service: retrieve call.To follow along, you need an AWS account, a non-root IAM identity with credentials configured locally, uv https://docs.astral.sh/uv/ installed, and the toolkit installed in your agent. The fastest path across Kiro, Claude Code, Cursor, and Codex is the AWS CLI installer, aws configure agent-toolkit https://aws.amazon.com/about-aws/whats-new/2026/06/aws-cli-agent-toolkit/ ; in Kiro you can instead add the .kiro/settings/mcp.json pin the mcp-proxy-for-aws npx skills add aws/agent-toolkit-for-aws/skills . The toolkit plugs into the agent you already use and loads task-specific amazon-bedrock skill, which carries the validated, current procedure for building a Knowledge Base. That word, "current," is the whole story.My first instinct, straight from an older tutorial, was anthropic.claude-3-5-sonnet-20240620-v1:0 . Calling it returned: ResourceNotFoundException: This model version has reached the end of its life. The fix the toolkit's doc search surfaced: current Anthropic models on Bedrock are inference-profile only . You invoke them through a cross-region profile id like us.anthropic.claude-sonnet-4-5-20250929-v1:0 , not the bare on-demand id. On its own, an agent might not even diagnose this correctly. "Not found" reads like a permissions or region problem, so it could swap in another stale id and hit "on-demand throughput isn't supported" instead, flailing sideways. The toolkit got it right because it read the current model docs, not because it happened to remember them. I created the vector bucket, pointed the Knowledge Base at an index name, and assumed Bedrock would create the index. It didn't: ValidationException: The specified index could not be found S3Vectors 404 The real requirement, from the S3 Vectors docs: you create the index yourself, and it must declare two non-filterable metadata keys that Bedrock uses to store chunk text and metadata. Miss them and ingestion fails later with a cryptic error far from the cause. The working command: aws s3vectors create-index \ --vector-bucket-name