An index is a snapshot, and documents change after it is built: prices move, policies are rewritten, pages are deleted. A stale index answers from the old version with full confidence. Pinecone notes that when your data changes you can update the index in real time, and Qdrant lets you upsert a point by its ID to replace its vector and payload. Freshness is a routine check, not a rebuild: update what changed and delete what is gone.
What you need
- A list of documents with their last update time
- The indexed time recorded for each document
- A probe question whose answer changed recently
Step 1: Compare update times with indexed times
For each document, compare the source update time with the time it was last indexed. Any document updated after its indexed time is stale, and any document deleted from the source should no longer be in the index.
Step 2: Re-embed the changed documents and delete the removed ones
Re-embed each stale document and upsert its chunks under the same stable point IDs, so the new vectors replace the old ones. Delete the points for documents that no longer exist, instead of leaving them to be retrieved.
Step 3: Verify with a probe question
Ask the probe question whose answer changed and check the answer now matches the current document. If the old answer still appears, a chunk with the old text is still in the index.
Worked example: synthetic freshness check of 4 documents
The table below is a synthetic example. It shows the expected result of checking freshness; no index was updated.
| Document | Updated after index? | Action |
|---|---|---|
| Pricing page | Yes | Re-embed |
| Refund policy | No | Keep |
| Support hours | Yes | Re-embed |
| Old product page | Deleted | Delete points |
Expected result (UNTESTED). 2 documents are re-embedded, 1 is kept, and the deleted page has its points removed. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- Upserting by ID replaces a point, but a chunk whose ID changed will leave the old point behind as a duplicate.
- A freshness check is only as good as the update times: a document edited without a new timestamp looks fresh.
- Re-embedding a document also needs its metadata re-checked, since filters depend on it.
- Large re-indexes should run in batches, so a failure halfway does not leave a half-new index.
