C1000-185 practice question 9 of 35

In a RAG system, the retriever is responsible for fetching relevant documents or information from a knowledge base based on the input query. Different retriever types can be used depending on the nature of the task. Which retriever type is most suitable for a RAG system that requires efficient large-scale retrieval from a document corpus based on semantic similarity?

Full set: 376 questions

Domain Access Governance and Certification

Answer options
A: Lexical Retriever: Primarily returns results based on syntactic similarity, relying on word order and surface-level features of the input query.
B: Hybrid Retriever: Combines syntactic retrieval methods (like BM25) with semantic retrieval (like dense retrieval) but sacrifices retrieval speed for accuracy.
C: Exact-Match Retriever: Returns documents based solely on keyword matching and is optimized for highly structured, labeled datasets.
D: Dense Retriever: Uses vector embeddings to retrieve documents based on the semantic similarity of the input query and stored documents. Correct answer
Correct Answer:
D. Dense Retriever: Uses vector embeddings to retrieve documents based on the semantic similarity of the input query and stored documents.
Explanation

A Dense Retriever is the most suitable choice as it is specifically designed for semantic search at scale. It operates by transforming both the input query and the documents in the knowledge base into numerical vector representations, known as embeddings. Retrieval is then performed by finding the document vectors that are closest to the query vector in the high-dimensional space, a process that captures semantic meaning rather than just lexical overlap. When paired with optimized Approximate Nearest Neighbor (ANN) search indexes, this method provides the efficiency required for large-scale document corpora, directly addressing the question's core requirements.

Why Incorrect

A. Lexical retrievers operate on keyword matching (e.g., BM25), failing to capture the semantic similarity required by the question.
B. While a hybrid retriever uses semantic methods, the description explicitly notes it "sacrifices retrieval speed," which conflicts with the need for "efficient large-scale retrieval."
C. Exact-match retrieval is too restrictive for a general document corpus, as it lacks the ability to understand synonyms, paraphrasing, or conceptual relationships.

References

1. Academic Publication: Lewis

P.

Perez

E.

Piktus

A.

et al. (2020). Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. In Advances in Neural Information Processing Systems 33 (NeurIPS 2020). Section 2

"Methods

" describes the retriever component

highlighting the use of a Dense Passage Retriever (DPR) which computes embeddings for queries and documents to find the top-k passages with the highest inner product similarity. This is the foundation of dense retrieval.

2. University Courseware: Manning

C. (2021). Lecture 15: Retrieval and Question Answering. Stanford University

CS224N: Natural Language Processing with Deep Learning

Winter 2021. The lecture slides (specifically slides 25-38) detail the shift from sparse retrieval (like TF-IDF) to dense retrieval for open-domain QA

explaining how dense vectors capture semantic meaning for more effective information retrieval.

3. Official Vendor Documentation: IBM Cloud Docs. (2023). Generating trusted AI with the RAG pattern in watsonx.ai. In the section "The RAG pattern

" the "Retrieve" step is detailed: "The user input is converted to a vector representation (embedding) and is used to query the vector database to find document chunks that are relevant to the user input." This describes the core mechanism of a dense retriever.

Scroll to Top