As the lead, would you make snapshot restore or rebuild from kept sources your team's standing recovery bet for a vector store, and what decides it?
answer
- cache or system of record
- measured rebuild time versus target
- re-embedding dominates the rebuild
- kept vectors as a middle tier
- only drilled paths count
basics
~20 sBet on the path your drills prove meets the recovery time: snapshots usually restore fastest but revive deletes and stay tied to their encoder; rebuilds from sources are current but slow. Many teams keep both, plus stored vectors between.
solid answer
~50 sI start by asking whether the vector index is a **derived cache** or the only copy of anything. If every chunk can be regenerated from sources that are still reachable, a rebuild is always *possible*, but its time is dominated by re-embedding, so I measure it in a drill instead of guessing. If that measured time fits the recovery time objective with margin, rebuild can be the bet and snapshots become a convenience. At scale it usually does not fit, so I keep three tiers: regular **snapshots** for the fast path, **stored vectors with chunk text and model version** so a rebuild skips re-embedding, and the sources as the last resort. Whichever path runs, a replayable journal of deletes and permission changes is applied before traffic returns, and the encoder that made the vectors must still be callable.
go deeper
Know the two ways back after a lost vector store: restore a snapshot, or rebuild the index from the documents it was made from, and that the second is much slower.
Explain why a rebuild from sources takes hours: every chunk is re-embedded under a throughput limit before the index build starts, and stored vectors skip that step.
Show the drill: timed stages per path on a production-sized copy, a delete journal replayed before serving, and the encoder still available for the restored vectors.
Own the standing bet: classify the store as cache or record, choose tiers by measured rebuild time against the target, and weigh storage, compliance and encoder lock-in.
## The three ways back When a vector store's volume is lost overnight, there are three ways to get a searchable index back. They differ in what they need, how long they take and what they get wrong. | Path | What it needs | What sets its time | What it gets wrong | |---|---|---|---| | **Snapshot restore** | A snapshot taken consistently, a store version that can read it, the same encoder for queries | Copying and loading bytes | Brings back everything deleted or revoked since the snapshot; misses later writes | | **Rebuild from stored vectors** | An export of every chunk's vector, ID, text, metadata and model version | Bulk load plus index build | State is as of the last export; still needs the same encoder | | **Rebuild from sources** | Reachable sources, the ingestion pipeline, the encoder | Reading, parsing, re-embedding, then the index build | Slowest by far; sources may have changed or vanished | A **snapshot** is a point-in-time copy of the store's files or records. A **rebuild** regenerates the index from inputs kept somewhere else. The **recovery time objective (RTO)** is how long the business can live without search; the bet has to fit inside it. ## First question: cache or system of record The decision starts with a property of the data, not of the store: - If every chunk is derived from sources that keep their own durable copy, the index is a **cache**. Losing it costs time, not data. - If anything lives only in the store (user uploads kept only as chunk text, human feedback labels stored as metadata, curated access lists), the store is a **system of record**. Then backups are mandatory and a rebuild cannot be the plan. - A store that is half of each is the worst case, because nobody plans its recovery as either. The usual lead decision is to move originals out: write every upload to durable object storage first and keep the index derived, so a rebuild is always possible. ## Making the numbers honest A rebuild from sources is dominated by re-embedding. Scenario figures: 20 million chunks of about 500 tokens each is 10 billion tokens; at a 10-million-tokens-per-minute embedding limit that is 1,000 minutes, roughly 17 hours, before the index build even starts. The same corpus as a snapshot might be around 150 GB; at 250 MB/s that is about 10 minutes of copying, plus load time. Those numbers are illustrative, so the policy is to measure: 1. Drill each path on a production-sized copy, timing every stage. 2. Compare the measured total, not the estimate, with the RTO. 3. Re-drill when the corpus grows, the encoder changes or the store is upgraded, because each one moves the number. ## What the choice trades - **Storage cost:** at 1,024 dimensions in 32-bit floats a vector is 4 KB, so 20 million vectors are about 82 GB before text, metadata and index structures, and each retained snapshot or export repeats it. - **Compliance:** every retained snapshot holds chunks that were later deleted; restoring one revives them, so a delete journal has to be replayed on every restore. - **Encoder lock-in:** snapshots and stored vectors are only searchable with the model that produced them; a retired hosted model strands both, while sources plus a new model do not. - **Format lock-in:** many stores tie their snapshot format to a version range, so an upgrade can leave old snapshots unreadable unless they are tested after each upgrade. - **Consistency work:** a sharded store and a separate text or permission store need a coordinated cut, or the restore is mixed. ## A defensible standing policy A policy a lead can defend in a review usually reads like this: 1. Keep the index derived; originals live outside it. 2. Export each chunk's vector, text, metadata and model version continuously to cheap durable storage. 3. Take snapshots on a cadence the recovery point target sets, if the drilled rebuild time misses the RTO. 4. Keep a durable journal of deletes and permission changes and replay it on every restore before serving. 5. Pin or archive the encoder, and watch for retirement notices on hosted ones. 6. Drill on a schedule and publish the timed result next to the RTO. ## Traps - Treating "we can rebuild" as a plan without ever timing it. - Counting replicas as backups: a replica faithfully copies a bad load or a mistaken bulk delete. - Keeping snapshots nobody has restored since the last store upgrade. - Forgetting that the cheapest path, a snapshot, is the one most likely to bring deleted data back.
- When would you skip snapshots of a vector store entirely?When the index is purely derived, sources are reachable, and a drill shows that rebuilding from stored vectors meets the recovery time with margin. Snapshots then add storage, another copy of every deleted chunk and a format tied to one store version, for little speed. I would still keep the stored vectors and the delete journal, and re-run the drill as the corpus grows.
- The vector store holds user uploads that exist nowhere else. What changes?The store is now a system of record, so a loss loses data, not just time. Snapshots become mandatory and need the retention and restore testing of any primary database. I would rather fix the design: write each upload to durable object storage first and keep the index derived, so a rebuild is possible again.
- We can always rebuild from source, so no vector-store backups are needed.
- A snapshot restore puts the store back exactly as it should be.
- Rebuild time is roughly the time to copy the data back.
- Replicas already protect the index, so snapshots add nothing.
- The recovery choice is made once and never needs re-measuring.