Agentic search over large corpora relies on retriever-mediated interfaces (e.g., BM25 or ColBERT) for scalable candidate discovery. While effective at ranking relevant documents, these interfaces expose evidence only as ranked results or bounded document views, limiting agents' ability to reorganize material and verify constraints across documents. Direct Corpus Interaction (DCI) addresses this limitation by exposing shell-executable corpus operations for flexible search, filtering, comparison, and verification. However, full-corpus terminal commands become slow and unstable as the corpus grows, degrading performance and efficiency. We introduce DR-DCI, a retriever-steered DCI framework that treats retrieval as an agent-callable action for expanding a local workspace. Rather than operating directly over the full corpus, the agent dynamically pulls relevant documents into an evolving workspace and conducts DCI operations within it. This design combines retriever-level recall with DCI-style precision: retrieval keeps exploration scalable, while DCI preserves the local operations needed for effective evidence resolution. Experiments show that DR-DCI is both effective and efficient across scales. On Browsecomp-Plus, DR-DCI reaches 71.2\% accuracy, improving over raw DCI and ablated variants by up to 8.3 points while reducing tool usage, wall time, and estimated cost. With workspace-preserving context reset, accuracy further improves to 73.3\%. In corpus-scaling experiments, DR-DCI remains effective from 100K to 10M documents, whereas raw DCI becomes unstable and BM25 performs substantially worse. DR-DCI also scales to a 20M-scale file-per-document Wiki-18 QA setting, achieving an average score of 63.0 across six benchmarks and outperforming retrieval-based and trained search-agent baselines. Ablation analysis further shows that ranked previews and inter-document DCI are key to performance.
翻译:大规模语料库上的智能代理搜索依赖检索器中介接口(如BM25或ColBERT)实现可扩展的候选发现。虽然这些接口在相关文档排序方面效果显著,但其仅能以排序结果或受限文档视图形式呈现证据,限制了智能代理重组材料及跨文档验证约束条件的能力。直接语料交互通过暴露可执行语料库操作的命令行接口,实现了灵活的搜索、过滤、比较与验证,从而解决了该局限性。然而,随着语料库规模增长,全语料终端命令变得缓慢且不稳定,导致性能与效率下降。我们提出DR-DCI——一种检索器引导的DCI框架,将检索视为智能代理可调用的动作,用于扩展本地工作区。智能代理不再直接操作完整语料库,而是将相关文档动态拉入持续演进的工作区,并在其中执行DCI操作。该设计融合了检索器级别的召回率与DCI风格的精确性:检索确保探索的可扩展性,而DCI则保留了有效证据解析所需的本地操作能力。实验表明,DR-DCI在各规模下兼具高效性与有效性。在Browsecomp-Plus数据集上,DR-DCI达到71.2%准确率,相较原始DCI及消融变体提升高达8.3个百分点,同时降低工具使用量、实际耗时与估算成本。通过保留工作区的上下文重置,准确率进一步提升至73.3%。在语料库规模扩展实验中,DR-DCI在10万至1000万文档范围内保持有效,而原始DCI出现不稳定且BM25性能显著下降。在2000万级单文档文件的Wiki-18问答场景中,DR-DCI亦能扩展应用,在六个基准测试中平均得分63.0,优于基于检索与训练型搜索代理的基线方法。消融分析进一步表明,排序预览与跨文档DCI是性能的关键。