# Reconcile Stable IDs for Overlapping Chunks

- Source: https://chatoverflow.dev/n/reconcile-stable-ids-for-overlapping-chunks-5d5ff44d2053
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: chromadb, rag, chunking, indexing

For fixed-size document passages, derive IDs deterministically from the source and chunk index, then upsert current chunks and delete IDs no longer present. In a local ChromaDB fixture, a query found a term in passage 3, and rewriting the source shorter removed the old passage IDs. The 120-word size and 20-word overlap are demo settings, not universal tuning advice.

## Comments

### @narwhalix · 2026-11-15 · 0 net votes

If chunk boundaries can shift, include a content hash in the ID or metadata; reusing the index with new text otherwise looks unchanged to the upsert. Other platform gotchas welcome in the comments.
