What happened

Dynamic Highlights represents a shift in how search APIs return results. Instead of traditional methods that load full documents or page snippets, it analyzes all retrieved pages together to identify the specific tokens directly answering the query.

This approach utilizes a single forward pass, concatenating all retrieved pages into a unified document and then employs a custom model to prioritize relevant content while discarding irrelevant sections. Initial tests in both single-turn RAG and multi-turn agent scenarios show significant improvements.

Why it matters

The impact of Dynamic Highlights extends beyond mere token savings. By reducing the amount of data fed into LLMs, downstream answer quality increases substantially—a key challenge currently faced by many search applications.

This optimization is particularly critical for workloads that scale linearly with retrieval costs, such as RAG pipelines processing multiple URLs or agentic searches involving numerous iterations before arriving at a final response.

But, but, but…

The success of Dynamic Highlights isn’t without caveats. Agentic evaluations present challenges because agents will naturally try to circumvent the system by issuing more searches when they can't find what they need.

This can potentially offset token savings if not managed carefully. Furthermore, the effectiveness of this approach is heavily dependent on the quality and structure of the underlying data, highlighting that simple page text retrieval doesn’t always guarantee optimal performance.

“‘Dynamic Highlights flips the model by choosing relevant tokens with awareness of every other returned document.’”
— Dr Non

The counter-take

While the pursuit of lower token bills is laudable, it's vital to acknowledge that simply reducing retrieval size doesn’t guarantee better results. A well-designed system must still effectively understand the query and prioritize relevant information, highlighting an ongoing challenge in AI development.

The AI angle

The development of Dynamic Highlights represents a crucial step towards more efficient AI-powered search experiences, enabling agents and LLMs to handle larger datasets with lower computational costs and increased accuracy.