Which component is typically responsible for selecting relevant context during RAG?
Answer
Retriever
Explanation
In RAG, the retriever identifies and returns relevant information from a data source. That retrieved context is then provided to the model to generate an answer. Prompt composer alone is not the retrieval mechanism. Therefore, the retriever is the correct component.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
Which AWS service is commonly used to access and deploy foundation models with managed APIs?
View question →
When deploying a generative AI application on AWS, what is a basic best practice for controlling access to the model endpoint?
View question →
Which AWS Identity and Access Management (IAM) concept is used to grant permissions to access AWS resources?
View question →
What is one reason to use retrieval-augmented generation (RAG) in an application?
View question →
In AWS Generative AI services, what is the main purpose of a foundation model?
View question →
Which AWS capability is commonly used to build and manage vector indexes for semantic search in RAG?
View question →