Answers are grounded in this paper and cite their sources.
A language model answering questions about a code repository can look up source with a cheap vector search or with an expensive agentic search, in which the model explores the repository with tools. Adaptive retrieval tries to use the expensive method only when it is needed. We report a small pilot study of this idea on 30 source-verified questions about one open-source repository, answered by one model. A first design chose a strategy from the question text before retrieving; on 15 development questions it scored 42% (rule-based) and 39% (model-based) against 74% for always using vector search. A diagnosis showed that the routers chose poorly and that the agentic navigator often ran out of budget after it had already found the evidence. We then built a navigator that keeps its final evidence selection in reserve, and a cascade that runs vector search first and escalates to the navigator only when the first answer reports that its evidence is insufficient. Three comparisons and the wording of their outcomes were fixed before a single run on 15 held-out questions. The reserved-selection navigator was more correct than the original (+32.2 percentage points, 95% interval +14.4 to +51.1). The cascade cost 38% less and took 37% less time per question than always using the navigator; the two could not be distinguished on correctness (+1.1 points, -8.9 to +13.3), which is not evidence that they are equivalent. The cascade scored 12.2 points above vector search alone, but the interval's lower end was zero, so under the pre-specified rule this is a direction and not a supported effect; the cascade also cost 4.6 times as much as vector search. Answers were scored by an AI reviewer blind to condition and reviewed by the author. With 15 questions, one repository and one model, these are pilot results.
No takes yet. Share an insight, caveat, or question.
Shekhar Bhardwaj (2026) studied this question.
Synapse has enriched 8 closely related papers on similar clinical questions. Consider them for comparative context: