RAGcore
Keeping data fresh
The index is a copy; copies go stale. Sync incrementally and know how stale you are.
What it is and why it exists
Documents change, get deleted, change permissions. Freshness means incremental ingestion (change feeds, webhooks, modified-since polling), deleting removed content, re-embedding only changed chunks, versioning documents, and preferring the newest version when sources conflict.
Quick prototype
Re-index everything by hand.
In production, at scale
Event-driven or scheduled incremental sync per connector, content hashes to skip unchanged chunks, tombstones for deletions, ACL re-sync, a freshness SLO (e.g. 95% of edits searchable within 15 minutes) and a dashboard of index lag.
Vendors and tools
| Airbyte / Unstructured connectors | Incremental source sync |
|---|---|
| Debezium / CDC | Change streams from databases |
| Vector DB upserts with stable IDs | Replace changed chunks |
On AWS: Bedrock Knowledge Bases incremental data source sync; S3 event notifications → SQS → Lambda for event-driven ingestion.
How it fails
- Deleted documents still answering questions
- Old and new policy versions both retrieved, model picks the old one
- Full nightly re-embeds that cost more than serving
What the interviewer asks next
A policy changed this morning and the bot still quotes the old one. Walk through the fix.
Check index lag for that source, whether the old version was tombstoned, and whether both versions are retrievable. Fix: incremental sync, delete or down-rank superseded versions by effective date, and add a freshness check to the eval set.