
Guardia Xavi · Zenodo (CERN European Organization for Nuclear Research) 2026 · 2026
DOI: 10.5281/zenodo.21890299
Counts differ because each database indexes a different set of publications. We treat OpenAlex as the canonical count; Google Scholar is not shown (no API, and crawling it violates its ToS).
Retrieval-Augmented Generation (RAG) in its canonical form — chunk a corpus, embed it, retrieve the top-k fragments by vector similarity, and inject them into a single prompt — fails in practice on complex queries over technical corpora. Working on a production assistant that answers questions over a proprietary codebase and knowledge base, we found that single-pass retrieval systematically produced generic or hallucinated answers whenever the correct answer required synthesizing information from more than one location in the corpus. We propose and validate a simple architectural correction: an iterative agent loop in which the language model itself decides, after each retrieval, whether it has enough information to answer; if not, it reformulates and searches again, accumulating evidence across iterations until it can produce an answer grounded in the retrieved material — or explicitly escalate. We validate the design with an end-to-end test whose ground truth is the source code itself: a query that provably requires two dependent retrievals (an enum value and a class structure) is answered correctly and completely by the iterative agent, and answered generically by the same stack without the loop. Writing in mid-2025, we noted that several research groups had independently converged on iterative retrieval; a retrospective added at publication time (August 2026) records that this convergence became the industry consensus now called "agentic retrieval", and adds a second, harder-won lesson from the author's subsequent practice: for corpora with precise domain vocabulary, the embedding-based retriever inside the loop is itself the weakest component, and lexical, tool-based search composes better with the iterative agent that this paper proposed. Provenance: the theory and empirical validation (Sections 3–5) were written in June 2025; Section 6 is a retrospective added at publication. The original working documents (in Spanish) and the development history that dates them are preserved by the author.
DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) 2023 · 2023 · 79073 citations90% match
Journal of Machine Learning Research 2003 · 2003 · 27075 citations90% match
2014 · 24939 citations90% match
2001 · 21904 citations90% match
arXiv (Cornell University) 2013 · 2013 · 18054 citations90% match
arXiv (Cornell University) 2014 · 2014 · 14617 citations90% match
Communications of the ACM 1995 · 1995 · 14194 citations90% match
No comments yet — start the discussion below.
Journal of Cross-Cultural Psychology 1970 · 1970 · 13711 citations90% match
ScholarlyCommons (University of Pennsylvania) 2001 · 2001 · 12994 citations90% match
Language 2000 · 2000 · 11686 citations90% match