QUESTION 2 OF 10

How do you update a RAG index without rebuilding everything?

Reveal the answer and explore the explanation.

02
MediumCore

How do you update a RAG index without rebuilding everything?

Answer
Answer

Track stable document IDs, content hashes and versions; update changed chunks and remove stale ones consistently.

Practical example

Re-embed changed documentation sections after a content release.

PythonRelated concept example
import hashlib

def content_hash(text):
    return hashlib.sha256(text.encode()).hexdigest()
print(content_hash('policy version 2'))

Use stable IDs plus content hashes to identify changed index inputs.

Reference: Further reading ↗

Last 30 min revisionHigh-yield interview Q&As