A developer builds a RAG (Retrieval-Augmented Generation) pipeline for answering security policy questions. Which component is responsible for converting both the user query and policy documents into a common numerical representation for similarity search?
- A.C. The embedding model
- B.B. The vector store
- C.A. The reranker
- D.D. The LLM generator
Why A is correct
In a RAG pipeline, the embedding model converts both the user query and document chunks into dense vector representations (embeddings) in a shared semantic space. The vector store persists these document embeddings and enables fast approximate nearest-neighbor search. The reranker (optional) re-scores retrieved candidates for relevance. The LLM generator receives retrieved context plus the query and generates the final answer. The embedding model is the foundational component that makes semantic similarity search possible.
Know someone studying for AI Security Fundamentals? Send them this one.