Keyword search misses synonyms, while vector search misses exact part numbers. What retrieval approach handles both?
- Exam domain
- Retrieval-augmented generation
- Difficulty
- Hard
- In this mock
- 5 questions on this domainPractise this domain
Why C is the answer
Hybrid search that combines keyword and vector results
Hybrid search merges lexical matching, which is good at exact terms like part numbers, with vector similarity, which is good at meaning and synonyms.
Remember: Hybrid covers both.
In detail
- Keywords for exact terms.
- Vectors for meaning.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Keyword search only, with a longer list of stop words removed from every queryWrong
Removing stop words does not add synonym matching.
B. Asking the model to guess the part numberWrong
Guessing is not retrieval.
C. Hybrid search that combines keyword and vector resultsRight
Hybrid covers both.
D. Vector search with a higher temperatureWrong
Temperature has no effect on search.
Use case
An illustrative scenario, not a real incident.
Illustrative: a parts catalogue finds "pump seal kit PS-4410" by code and by description.
See it in different ways
flowchart TD
Q{"What must match?"}
Q -->|"Exact codes"| A0["Keyword"]
Q -->|"Meaning"| A1["Vector"]
Q -->|"Both"| A2["Hybrid"]How to read this chart
- At "What must match?": if "Exact codes", go to "Keyword"; if "Meaning", go to "Vector"; if "Both", go to "Hybrid".
flowchart LR S0["Run keyword search"] --> S1["Run vector search"] --> S2["Merge and rerank"]
How to read this chart
- Read it in order: Run keyword search, then Run vector search, then Merge and rerank.