RAG Interview Question โ PolicyBazaar (AI Engineer)
A policy document got updated this morning, but your assistant keeps serving the old answer.
The question: How will you fix the issue in the current RAG system ?
Here's how I'd answer:
First, name the real problem. There are two independent staleness bugs here. Both the vector index and the response cache is stale. They fail separately, so they need separate invalidation. Fixing retrieval but leaving a memoized answer in the cache still serves the wrong answer to the customer.
1. Version every document. Each doc carries a content_hash and updated_at. On ingestion, compare hashes and only re-embed the chunks that actually changed, not the whole corpus. This is delta re-indexing, and โฆ
