You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enabling Advanced Parsing on a bot knowledge base breaks document ingestion for the default model choices, and the failure is silent: the sync can end up looking completed while zero documents were indexed, so the bot answers nothing from its knowledge.
Error from the EmbeddingSynchronizeDataSourceHandler logs:
[ERROR] ValidationException: An error occurred (ValidationException) when calling the
IngestKnowledgeBaseDocuments operation: Knowledge base role
arn:aws:iam::<account-id>:role/AmazonBedrockExecutionRoleForKnowledgeBase... is not able
to call the specified model
arn:aws:bedrock:eu-central-2::foundation-model/anthropic.claude-3-5-sonnet-20240620-v1:0:
This model version has reached the end of its life. (Status Code: 404)
Root cause
The parsing model allowlist (backend/app/routes/schemas/bot_kb.py):
anthropic.claude-3-5-sonnet-v1 and anthropic.claude-3-sonnet-v1 have reached end of life on Bedrock: every ingestion using them fails with the 404 above.
anthropic.claude-3-haiku-v1 is the only option still invocable (verified via list-foundation-models: it is the last Claude model with ON_DEMAND inference), but it is a legacy early-2024 model.
Simply bumping the list to newer models is not enough: every current Claude model on Bedrock is INFERENCE_PROFILE-only, so the parsing configuration would need inference-profile ARN support (and matching KB role permissions across the profile regions). Today getParsingModel in cdk/lib/utils/bedrock-knowledge-base-args.ts only builds base foundation-model references.
The frontend picker (frontend/src/features/knowledgeBase/pages/BotKbEditPage.tsx) exposes the same options. Verified at v3.17.0 and on current v3 HEAD.
Steps to reproduce
Create or edit a bot with a knowledge base.
Set Advanced Parsing Model to Claude 3.5 Sonnet v1 (the first non-disabled option).
Add a document and sync: ingestion fails ("This model version has reached the end of its life").
Workaround: set Advanced Parsing back to Disabled and the same documents ingest fine.
Expected behavior
Advanced Parsing works with the offered models, and per-document ingestion failures surface in the bot sync status instead of failing silently.
Follow-up: support inference profiles for parsing (per the AWS docs on parsing options and supported models for parsing, current Claude / Nova vision families are supported parsers) so a current-generation model can be offered again.
Surface per-document IngestKnowledgeBaseDocuments failures in the sync status, and validate region availability of the configured parsing model.
Describe the bug
Enabling Advanced Parsing on a bot knowledge base breaks document ingestion for the default model choices, and the failure is silent: the sync can end up looking completed while zero documents were indexed, so the bot answers nothing from its knowledge.
Error from the
EmbeddingSynchronizeDataSourceHandlerlogs:Root cause
The parsing model allowlist (
backend/app/routes/schemas/bot_kb.py):anthropic.claude-3-5-sonnet-v1andanthropic.claude-3-sonnet-v1have reached end of life on Bedrock: every ingestion using them fails with the 404 above.anthropic.claude-3-haiku-v1is the only option still invocable (verified vialist-foundation-models: it is the last Claude model withON_DEMANDinference), but it is a legacy early-2024 model.INFERENCE_PROFILE-only, so the parsing configuration would need inference-profile ARN support (and matching KB role permissions across the profile regions). TodaygetParsingModelincdk/lib/utils/bedrock-knowledge-base-args.tsonly builds base foundation-model references.The frontend picker (
frontend/src/features/knowledgeBase/pages/BotKbEditPage.tsx) exposes the same options. Verified at v3.17.0 and on currentv3HEAD.Steps to reproduce
Expected behavior
Advanced Parsing works with the offered models, and per-document ingestion failures surface in the bot sync status instead of failing silently.
Suggested fix
IngestKnowledgeBaseDocumentsfailures in the sync status, and validate region availability of the configured parsing model.