liveBook · Manning

Half-life function

As explained in AI-Powered Search

A half-life is the duration required for a decaying signal value to decrease to one-half of its prior value.

A half-life function makes time-sensitive signals less influential as they age. In news search, recent clicks or other interactions can boost documents more strongly than older ones. section 8.5.2

The function halves a signal’s weight over each half-life interval. With a 30-day half-life, a signal receives 100% weight immediately, 75% after 15 days, 50% after 30 days, 25% after 60 days, and 12.5% after 90 days. Starting weight can vary by signal type, such as clicks, add-to-cart events, or purchases. section 8.5.2

starting_weight × 0.5(signal_age / half_life)

Computes time-adjusted signal weight by multiplying the starting weight by 0.5 raised to signal age divided by the half-life. section 8.5.2

Applying decay to query signals

A SQL aggregation can calculate time-weighted clicks, group them by query and document, and order results by the resulting boost. A 30-day half-life discounts older signals while retaining residual value across later months. section 8.5.2

How AI-Powered Search covers it

How deep it goes
Defines the decay calculation, works through numeric values, and shows SQL aggregation while deferring broader model evaluation.
Examples
Uses news interactions, 30-day decay values, and SQL aggregation of query-document clicks.
What it assumes
Assumes familiarity with search signals and their relative weights while defining signal age and half-life directly.
What you can do after
Apply it via SQL to calculate recency-adjusted query-document boosts.
How it connects
Connects time decay with signals, signal boosting, search ranking, and behavioral event types.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of AI-Powered Search. The section links point to the parts of the book it draws on.