Vector search returns 50 candidate chunks, but the best answer is often around position 30. What should the team add?
- Exam domain
- RAG with embeddings, rerank and vector search
- Difficulty
- Medium
- In this mock
- 6 questions on this domainPractise this domain
Why A is the answer
A rerank model to reorder the candidates by relevance
A rerank model, such as Cohere Rerank 4 on OCI, scores each candidate against the query and orders them by relevance, so the best chunks reach the prompt.
Remember: Rerank fixes ordering.
In detail
- Retrieve broadly.
- Rerank precisely.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. A rerank model to reorder the candidates by relevanceRight
Rerank fixes ordering.
B. A second embedding model run in parallelWrong
A second embedding pass still ranks by similarity, not by relevance scoring.
C. A higher temperature on the chat modelWrong
Temperature does not affect retrieval order.
D. A bigger chunk size, so each of the 50 chunks carries more of the surrounding document textWrong
Larger chunks can dilute relevance and do not fix ordering.
Use case
An illustrative scenario, not a real incident.
Illustrative: a search service retrieves 50 chunks, reranks them and sends the top 5 to the model.
See it in different ways
flowchart LR S0["Embed the question"] --> S1["Retrieve chunks"] --> S2["Rerank"] --> S3["Generate with context"]
How to read this chart
- Read it in order: Embed the question, then Retrieve chunks, then Rerank, then Generate with context.
flowchart TD
Q{"Are good chunks ranked low?"}
Q -->|"Yes"| A0["Add a rerank step"]
Q -->|"No"| A1["Keep retrieval as is"]How to read this chart
- At "Are good chunks ranked low?": if "Yes", go to "Add a rerank step"; if "No", go to "Keep retrieval as is".