All knowledge base guides

BEGINNER LESSON 06 OF 6

Update a document without keeping the old answer

Replace a 60-minute rule with 90 minutes and remove the old version from searchable results.

About 8 min to follow along · SaveMyToken editorial · Documentation reviewed 2026-10-05 · Build in your own stack

WHAT YOU WILL MAKE

A fresh query retrieves version 2 and no longer answers from version 1.

Before you start

  • The practice collection and your ingestion job from lesson 1.
Previous lesson: Change just one setting: Top K

Fictional practice files. Expected answers below come from these files; actual model responses may differ.

STEP 01

Confirm the source change

OpenThe two downloaded files

Version 2 changes the booking limit; the printer location stays the same.

  1. Compare the two files and locate 60 versus 90 minutes.
  2. Record their version IDs and which one is current.
  3. Keep the old file for audit, but exclude it from the active search scope.
You should see

You know which fact should change and which should remain.

If it does not work

If you edited a sample locally, verify its actual contents first.

STEP 02

Reindex and retire

OpenYour ingestion job and index

An updated file is not active until its passages are ready.

  1. Parse and index version 2 with its own stable source ID.
  2. Verify that the 90-minute passage is searchable.
  3. Atomically switch the active version or remove version 1 from searchable records. Check caches and replicas too.
You should see

Only version 2 can supply the booking fact to new queries.

If it does not work

If both numbers appear, look for duplicate records or stale caches before changing ranking.

STEP 03

Test the full path

OpenNew request with no old chat history

A previous conversation may still contain the old answer.

  1. Ask the booking question and inspect the passage ID and answer.
  2. Check for 90 minutes and a version 2 citation.
  3. Ask where the printer is to confirm the unchanged fact still works.
You should see

The updated rule changes and the printer answer stays correct.

If it does not work

If search returns 90 but generation says 60, inspect the model input and conversation state.

Give your changes a fair test.

Use the same questions, inspect the evidence, and record what changed.

Open comparison worksheet