Disaster Recovery for RAG
In this article
- Sort the parts of a retrieval system into the source of truth, parts you can rebuild, and parts you must back up.
- Set a recovery time and an allowed data loss for each part, and choose between a rebuild and a restore by adding up measured minutes.
- Restore in a safe order, check the result before traffic returns, and prove the targets with a drill on a test copy.
- Terms defined here: RTO, RPO.
Overview
At 14:00 the cloud region that holds your search database goes dark. The help pages and manuals are safe in their own systems, so you could build everything again. How long would that take, what would you lose, and would the rebuilt search still respect who may read what?
In a made-up example, Brightline, a home-internet provider, runs a support assistant whose search finds chunks of help pages, router manuals, the staff handbook and past conversations, and puts the best 3 into each request. The chunks, their permissions and each source's sync position are stored in one PostgreSQL database. You will decide what to back up, set limits on recovery time and data loss, pick rebuild or restore by adding up minutes, and prove the result before customers return.
This article is part of Pro
Pro includes the staff-level and expert articles in every path. It opens after the four core paths are complete.
Still to read in this article
- What can be rebuilt
- Two targets, set per part
- Rebuild or restore
- Closing the data gap
- Restore order
- Proving the restore
- The drill
- The runbook
- What copies cost
- Choosing a path
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions