Users complain that answers quote outdated prices, although the price table was updated last week. What is the most likely cause?
- Exam domain
- RAG with embeddings, rerank and vector search
- Difficulty
- Medium
- In this mock
- 6 questions on this domainPractise this domain
Why B is the answer
The vector index still holds embeddings of the old documents
RAG answers only reflect what the index holds. If the updated documents were not re-embedded and re-indexed, retrieval keeps returning the old chunks.
Remember: Stale index, stale answers.
In detail
- Re-index when sources change.
- Track document dates in metadata.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Cosine similarity cannot compare numbersWrong
The comparison is on embeddings, and the problem is stale data.
B. The vector index still holds embeddings of the old documentsRight
Stale index, stale answers.
C. The chat model has a temperature that is too lowWrong
Temperature does not decide which documents are retrieved.
D. The rerank model only works on documents shorter than one paragraph, so it skipped the new tableWrong
Rerank works on candidate chunks; length is not the issue described.
Use case
An illustrative scenario, not a real incident.
Illustrative: a team schedules nightly re-embedding for changed files and filters on an updated date.
See it in different ways
stateDiagram-v2 state "Source updated" as s0 state "Index stale" as s1 state "Index current" as s2 [*] --> s0 s0 --> s1: no re-embed s1 --> s2: re-embed and re-index s2 --> [*]
How to read this chart
- It starts at "Source updated".
- From "Source updated", "no re-embed" moves it to "Index stale".
- From "Index stale", "re-embed and re-index" moves it to "Index current".
- It ends at "Index current".
flowchart LR S0["Detect changed files"] --> S1["Re-chunk and re-embed"] --> S2["Replace old vectors"]
How to read this chart
- Read it in order: Detect changed files, then Re-chunk and re-embed, then Replace old vectors.