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

Report an error
QuestionBack to list