llm

Query Knowledge Base via RAG

Query the Bedrock Knowledge Base using Retrieve and Generate (RAG). Returns an answer with citations from the knowledge base.

post/llm/rag

Request

Request body

model'claude-opus-4-6' | 'claude-opus-4-5' | 'claude-sonnet-4-5' | 'nova-premier' | 'nova-2-sonic' | 'nova-2-lite' | 'nova-pro' | 'nova-lite' | 'nova-micro'

Model name to use for generation (default: nova-2-lite)

querystring required

Query string for the Knowledge Base

Response

RAG query completed successfully

outputstring required

Generated answer from the Knowledge Base

Changes

No recorded changes to this operation across all 13 revisions of this API.