Urgent.News

What's breaking now, across thousands of outlets.

Tech

Search Agents Waste Half Their Tokens Rediscovering Entity Links

If you wire an LLM agent to a local directory of documents and give it terminal tools (grep, find, cat), you quickly notice an ugly pattern. When a question depends on evidence scattered across three separate files, the agent spends most of its trajectory wandering in circles. It greps for a keyword, pulls up five irrelevant markdown files, reads their headers, backs up, reformulates the search,…

In a new paper, researchers from KAIST and Microsoft reveal that search agents can waste up to half of their tokens by blindly navigating through documents while trying to find answers to questions. The issue arises because standard flat document collections provide no relational pointers between files, forcing the model to reconstruct the web of cross-document relationships at inference time.

To address this problem, the researchers introduce CorpusMap, a system that structures the corpus around recurring named entities like people, projects, systems, vendors, and code modules. Offline, an extraction pipeline identifies these recurring anchors and generates Entity Pages for each one, which aggregate key facts about the entity and maintain explicit backlinks to every original document that mentions it.

This creates a bipartite graph between entities and raw documents. When the agent receives a task, it navigates this graph using standard terminal commands, bypassing the need for blind keyword grepping and jumping directly to the relevant entity page. The authors demonstrate that CorpusMap significantly reduces token consumption and improves answer correctness compared to raw corpus search.

On EnterpriseRAG-Bench using GPT-5.5, the token consumption drops from 206,500 tokens to 88,100 tokens (a 57% reduction) and answer correctness increases from 62.1% to 73.8%. On WixQA, token consumption drops from 337,200 tokens to 74,500 tokens (a 78% reduction) and factual accuracy rises from 67.5% to 70.7%. This approach consistently improves performance across seven different model families.

The upfront indexing cost of building entity maps is a concern, but the paper shows that using a cheaper model for construction (e.g., GPT-5.6 Luna) still yields high-quality entity pages, with only a minimal impact on retrieval quality. Updating the entity graph with new documents is also efficient, as it only requires updating the touched entity pages instead of reprocessing the entire corpus.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

How to Make a Favicon for Your Website (Sizes, Formats, and HTML)

A favicon is the small icon in a browser tab, bookmark list, and search result. It is also the icon people see when they add your site to their home screen.

  • Favicon is tiny icon in browser tabs and bookmarks
  • Create favicon.ico, icon.svg, apple-touch-icon.png, icon-192.png, and icon-512.png
  • Add favicon HTML code to site's head for visibility

Stop writing hex codes in your CSS

The hover state that started it all A design review last Monday morning really got under my skin. Our lead designer noticed a subtle mismatch in a button hover state.

  • Lead designer spotted hard-coded hex code in styled component.
  • Copying hex from Figma without updating caused technical debt.
  • CSS tokens streamline updates and maintain visual consistency.

More from Wednesday 30 September →