Incremental vector index job leaves stale vectors and duplicate document IDs — RAG answers cite deleted passages
Environment
Self-hosted vector database cluster (disk-backed segment storage), production RAG pipeline uses periodic incremental update jobs that embed new documents and merge segments in background. Incremental job was interrupted by an OOM in indexer process, then the controller marked job as succeeded after partial recovery.
Symptoms
Search queries return passages that were deleted weeks ago; top-K results include duplicate document IDs with slightly different embedding scores. Downstream RAG responses quote old text that should no longer exist. Users report inconsistent answers between identical queries seconds apart.
Observations
Index metadata (manifest) reports a larger document count than the authoritative document store. Segment files on disk show overlapping doc ID ranges and multiple segment manifests referencing the same doc ID. Compaction logs indicate 'partial segment write' at the time the indexer OOMed. Service restart shows the search API still uses the stale segments until a full reindex is done. Attempts to re-run the incremental job reported 'no updates' for the same time window.
Already attempted
Restarted vector service and re-ran incremental update; service returned success but results unchanged. Restored a snapshot from 24 hours earlier to a staging cluster and re-ran the job — staging showed correct results after targeted repair. Full reindex on prod estimated to take multiple days and was deferred.
Question
What are the most likely root causes for stale vectors and duplicate IDs after an interrupted incremental update/compaction job, and what reversible integrity checks or remediation can I run to avoid a full reindex immediately?
Verified community troubleshooting
No answers yet..
Incident analysis
Most likely causes
Summary
Suggested Fixes
Continue troubleshooting
Related troubles
Matched from the title, description and tags
- Artificial Intelligence51% match
Dense vector index returns stale document IDs and wrong passages after incremental update job — RAG answers become semantically irrelevant
Open0 answers - Artificial Intelligence49% match
Vector search returns semantically unrelated high-similarity passages after incremental index update
Open0 answers - Artificial Intelligence31% match
RAG assistant returns high-similarity but irrelevant passages from vector DB on production queries
Open0 answers