Towards Retrieving Interaction Spaces for Agentic Search

Shengyao Zhuang, Yuansheng Ni, Hengxin Fun, Jimmy Lin, Xueguang MaarXiv 2026

TL;DR

Traditional retrieval methods either restrict LLM agents to tiny text snippets or overwhelm them with unrestricted shell access to massive file systems. This paper introduces RISE (Retrieving Interaction SpacE), a framework that uses BM25 to carve out a bounded, manageable workspace for search agents, paired with pre-indexed tables of contents for rapid document navigation. RISE matches the accuracy of full-corpus shell search while slashing per-query costs by up to 75% and maintaining stable performance as the corpus scales to a million documents.

What Problem Does This Paper Address?

AI agents tasked with deep research need a way to explore large document collections. Standard Retrieval-Augmented Generation (RAG) typically forces agents to read a small, static set of top-ranked snippets, stripping away their ability to dynamically explore or verify context. To overcome this, recent approaches like Direct Corpus Interaction (DCI) grant agents raw shell tools (grep, find, cat) over the entire corpus filesystem.

However, unbounded interaction does not scale. Running a broad grep over hundreds of thousands of files triggers massive I/O overhead. As the corpus grows, the agent spends its entire token and time budget triaging overwhelming shell outputs rather than answering the prompt, leading to skyrocketing costs, severe latency, and frequent wall-clock timeouts. The authors argue that retrieval's role in agentic search should be redefined: its job is not to select final snippets, but to construct a bounded, structured "interaction space" where tools can operate efficiently.

Methods

The authors propose RISE, which optimizes agentic search through a two-layer architecture:

  1. Bounded Workspace (RISE-BM25): Instead of scanning the entire corpus with every shell command, the agent uses a multi-query BM25 search tool to import a subset of top-$K$ documents (default $K=1000$) into a per-query working directory. The agent can then freely execute local bash commands (rg, grep, ls) within this isolated sandbox.
  2. Navigable Objects: To prevent expensive full-file reads of long documents within the workspace, RISE processes documents offline during indexing. A lightweight LLM generates a line-numbered Table of Contents (TOC) with structural anchors prepended to the raw text. The agent can skim this TOC and issue targeted line-range reads rather than digesting entire files.
Figure 2: RISE workflow. BM25 supplies the boundary (consequence i): candidate files are imported from the full corpus into a per-query interaction space that lives outside the context window. The imported files are TOC-indexed by an offline processing step (consequence ii): each file exposes a line-numbered table of contents so shell tools can land on relevant spans without a full read. The agent then iterates between multi-query search, shell inspection, and targeted reads inside the bounded space before synthesizing a final answer.

Unlike standard RAG pipelines that chunk text arbitrarily at retrieval time, RISE preserves the original document structure and verbatim text, ensuring the agent can always verify facts against the true source.

Datasets

The framework is evaluated on BrowseComp-Plus, a benchmark featuring complex, multi-clue browsing questions where the target entities are intentionally obfuscated to necessitate multi-turn exploration.

The authors evaluate performance across two corpus scales:

  • 100k corpus: The standard BrowseComp-Plus document collection.
  • 1M corpus: An expanded collection adding 900,000 distractor documents from the FineWeb-Edu dataset to rigorously test the system's robustness to scale.

Key Insights and Ideas

  • Retrieval as a Sandbox Creator: In agentic workflows, retrieval should act as a boundary provider rather than a final answer filter. Defining where an agent can search locally prevents the combinatorial explosion of tool-use costs.
  • The Scaling Paradox of Unbounded Shells: Giving an agent full filesystem access works well on small datasets but collapses under scale. Unbounded shell access fails because the agent becomes trapped in an I/O bottleneck, triaging broad command outputs.
  • Structure Over Summarization: Summarizing or rewriting documents destroys the verbatim evidence agents need for precise verification. Adding simple, line-numbered metadata allows agents to navigate long texts efficiently without losing grounding.

Key Results

  • Cost Efficiency: On the 100k corpus, RISE matches the 78% accuracy of the pure-shell DCI baseline using gpt-5.4-mini but slashes the per-query cost from \$1.10 to \$0.28—a 75% reduction.
  • Robust Scaling: When scaled to the 1M corpus, RISE-BM25 (the boundary-only variant) remains highly stable, improving accuracy to 81% on gpt-5.4-mini and 83% on mimo-v2.5-pro.
  • Baseline Collapse: In contrast, the unbounded DCI baseline suffers catastrophic failure at the 1M scale. Its accuracy drops to 60% on gpt-5.4-nano, plagued by wall-clock timeouts on 33 out of 100 queries because the agent gets bogged down waiting for full-corpus bash commands to complete.
Figure 1: Accuracy vs. per-query cost on BrowseComp-Plus. Each point is one model–architecture pair; the dashed line is the RISE frontier. At 100k, RISE matches DCI at 78% accuracy on mini while reducing cost from $1.10 to $0.28/query. At 1M, RISE-BM25 (the bounding mechanism alone) remains stable after adding 900k FineWeb-Edu distractors; the 1M DCI run is reported for nano, where accuracy drops to 60% with 33/100 wall-clock failures.

Limitations and Future Work

  • Evaluation Constraints: Due to preprocessing budget limits, the full RISE pipeline (including the offline TOC generation) was only evaluated on the 100k corpus. The 1M scale experiments only utilized the boundary mechanism (RISE-BM25) without the navigable object layer.
  • Narrow Benchmark Scope: The evaluation relies on a single benchmark family (BrowseComp-Plus), a relatively small sample of 100 queries, and closed-weight models evaluated by a single LLM judge.
  • Future Directions: The authors note that BM25 is a intentionally simple baseline for bounding the workspace. Future work will explore integrating dense, late-interaction, or hybrid retrievers, alongside richer structural metadata formats like hierarchical section graphs or paragraph-level anchors.

Summary updated

BibTeX
@misc{zhuang2026towards,
  author = {Shengyao Zhuang and Yuansheng Ni and Hengxin Fun and Jimmy Lin and Xueguang Ma},
  title = {{Towards Retrieving Interaction Spaces for Agentic Search}},
  year = {2026},
  eprint = {2606.06880},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.06880},
}
Figure