Glossary

Document freshness

How closely the copy of a document held in a knowledge base or search index matches the current version at its source.

Document freshness is how closely the version of a document held in a knowledge base or search index matches the current version at its source. A fresh document says what the source says today, and a stale one reflects an earlier edit. For an agent that answers from retrieved content, freshness sets a ceiling on accuracy, because a retriever can only return what the index holds.

How document freshness is measured

Freshness is usually tracked as the lag between a change at the source and the matching update in the index. Teams measure it in a few ways, depending on what the source exposes.

Measure

How it works

Index lag

Time between a source document’s last-modified date and when it was last processed, read from file metadata

Change detection

Comparing a content hash or version number at the source with the one stored at ingestion

Age since last review

How long since anyone confirmed the document is still true, useful when sources have no reliable modified date

Answer audits

Re-asking a golden dataset of questions and checking the answers against the current source

Lag and change detection tell you whether the index matches the source. They say nothing about whether the source itself is still correct. A policy page nobody has edited in two years may be perfectly current or badly out of date, which is why some teams pair technical checks with an owner and a review date for each document.

Why freshness drops

Most indexes are built by a one-off data ingestion job and then left alone. Edits at the source never reach the index, deleted documents keep appearing in results, and new versions sit alongside old ones until deduplication removes the copies. Links inside documents fail through link rot. The result is stale knowledge: an agent answering confidently from text that has since changed.

Freshness is a separate problem from retrieval quality. An index can be fully current and still return the wrong passage, and a precise retriever can return a well-matched paragraph that went out of date last month. Improving one leaves the other where it was, so it helps to measure them separately, using retrieval evaluation for the second.

How to keep documents fresh

The standard approach is incremental indexing: detect what changed since the last run and reprocess only those documents, instead of a full re-indexing. How often to run it depends on how fast the content moves. Support articles and product docs may need daily checks, while research libraries or contracts may only need monthly ones. The wider routine of re-extracting, tagging, deduplicating and pruning is knowledge base maintenance.

Freshness can also be used at query time. Recording when each document was last updated lets a retriever prefer newer material, or apply metadata filtering to exclude anything older than a cutoff. Agent memory systems use the same idea through recency weighting, so newer facts rank above older ones.

Document freshness on Exabase

On Exabase, documents stored as Resources are extracted and indexed when they are written, so a new upload is searchable straight away. Deep Search can filter results with createdAfter and createdBefore or sort them by createdAt, which helps when an agent should favour recent material; the searching resources guide shows the filters. The filter endpoint lists resources sorted by creation or modification time, which makes it straightforward to find what has not changed in a while.

Keeping content current is the job of Workers. A Worker runs inside a Base on a daily, weekly or monthly schedule, and can re-extract documents that changed at their source with Extract, tag new material and flag or remove content that has aged out. For facts held in Memory, newer information supersedes older facts when it is written, and retrieval applies a recency bias. Exabase supplies the schedule and the tools; the rule for what counts as out of date for your content goes in the Worker’s prompt. The knowledge base solution describes the pattern end to end.

For more detail, how long do documents stay true looks at how quickly different kinds of content decay, and spotting stale answers before your customers do covers monitoring. The documentation assistants use case shows freshness in a support setting, and best RAG infrastructure and Exabase vs Ragie compare managed retrieval platforms.

FAQs

What is document freshness?

Document freshness is how closely the copy of a document in an index matches the current version at its source. Fresh documents reflect the latest edit, and stale ones reflect an earlier version.

How do you measure document freshness?

Track the lag between a source change and the index update, compare content hashes or version numbers, and audit answers against current sources with a fixed set of test questions.

What causes stale documents in RAG?

One-off ingestion. When nothing re-checks the sources after the first load, edits, deletions and new versions never reach the index.

How often should documents be re-indexed?

As often as they change. Daily suits fast-moving support and product content, and weekly or monthly is often enough for slower material. Incremental updates keep the cost in proportion to what changed.

Is freshness the same as relevance?

No. Relevance is whether a passage answers the question, and freshness is whether that passage is still true. A retriever can score well on one and badly on the other.

How does Exabase keep documents fresh?

Resources are indexed as they are written, and a scheduled Worker can re-extract changed documents, tag new ones and prune outdated content inside each Base.

Related pages: Knowledge base maintenance, Stale knowledge, Incremental indexing, Re-indexing, Recency weighting, Memory drift, Knowledge base solution, Knowledge bases use case, How to measure knowledge base staleness, Exabase vs Ragie.

Cut your token spend and give your agent precise context.

Get started in minutes.

Cut your token spend and give your agent precise context.

Get started in minutes.