An index that never changes goes stale, but rebuilding the whole index for one edited page is wasteful. The middle path is point-level updates: Qdrant points are records of a vector plus a payload, each with an ID, and upserting a point with an existing ID replaces its vector and payload. The same API deletes points by ID or by filter. The discipline is in the IDs: if they are stable, updates replace the old vectors; if they change, the old vectors stay behind as duplicates.
What you need
- Stable IDs for every chunk, built from document ID plus chunk number
- The list of documents that changed since the last update
- A probe query that should find the changed document
Step 1: Upsert the changed chunks under their stable IDs
Re-embed each changed chunk and upsert it with the same point ID it had before, so the new vector replaces the old one. Batch the upserts to reduce connection overhead.
Step 2: Delete the points for removed content
Delete the points for chunks that no longer exist, by ID or by a payload filter on the document ID. A deleted document whose vectors remain will still be retrieved.
Step 3: Verify with a probe query
Run the probe query and confirm the new text is returned and the old text is gone. If the old text still appears, a point with a changed ID is still in the index.
Worked example: synthetic index update for 4 chunks
The table below is a synthetic example. It shows the expected result of updating an index; no index was changed.
| Chunk | Change | Action |
|---|---|---|
| pricing-1 | Price changed | Upsert, same ID |
| pricing-2 | Unchanged | Keep |
| refund-1 | Section rewritten | Upsert, same ID |
| old-product-1 | Document deleted | Delete point |
Expected result (UNTESTED). 2 chunks are upserted under their stable IDs, 1 is kept, and 1 is deleted. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- Point modifications are asynchronous: the operation is written to a write-ahead log first, then applied.
- Upserting with a new ID creates a second point instead of replacing the old one, so ID stability is essential.
- A payload filter delete removes every matching point, so check the filter before running it.
- Verify the point count after an update, since a silent partial failure leaves a half-updated index.
