All posts

Knowledge

Temporal relevance, explained

How to weigh how well a result matches against how recent it is.

Nov 13, 2026 · 4 min read · Loomweft team

Ask an agent "what is our refund policy?" and a pure similarity search will happily return the most relevant document. The catch: the most relevant document might be the policy from two years ago. It matches the question perfectly, and it's completely wrong.

Relevance has two dimensions

Most retrieval systems score results on meaning alone. That works for stable knowledge, like how a feature works. It breaks down for anything that changes: prices, policies, incidents, the status of a deal. For those questions, when something was written matters as much as what it says.

The best answer isn't always the closest match. Often it's the closest match that's still true.

Blending meaning and freshness

Temporal relevance mixes two signals into one ranking. The first is semantic similarity, which measures how well a result matches the intent of the question. The second is a recency score that gently decays as content gets older. The final score blends the two, so a recent result that is almost as relevant can outrank an old one that is slightly closer in meaning.

The decay rate matters. Support tickets go stale in days. Architecture docs stay useful for months. So the rate should depend on the kind of source, not one rule for everything.

When to turn it off

Some questions are explicitly about the past, like "what did we decide in the March planning doc?" Then recency should step aside. Spotting dates in the question, or letting the agent pick a time-aware or plain mode, stops the system from being clever at the wrong moment.

Why it matters for agents

People notice when a search result looks old. Agents usually don't. They take the top result and build on it. Getting freshness right in retrieval is one of the simplest ways to make agents more trustworthy.

Try Loomweft

Connect your sources once. Every agent you build can use them.