Algebraic Retrieval: Composable Search for Agents
Abstract
Algebraic Retrieval lets AI agents compose search strategies at query time. Relevance criteria, eligibility constraints, and ranking preferences can be expressed together in a mathematical query. The query surface exposes available operations, so an agent can combine them for the question at hand and revise a program after inspecting results. We evaluate execution parity, not agent behavior or retrieval quality. Building on Programmatic Embedding Modulation (PEM), which exposes vector and score arithmetic during retrieval, we demonstrate contrastive scoring, candidate-pool reranking, and weighted ranking as composable queries, alongside executable SQL and PyTerrier counterparts. On the public 11,429-document Vaswani fixture, each program's implementations select the same document set with score differences below 1e-6; one tied pair orders differently across scoring paths.
Create a lesson
Metadata
- Comments
- 5 pages, 1 figure. Code and reproducible examples: https://github.com/algebraicretrieval/algebraicretrieval
Related papers
Can Search Agents Correct Their Own Errors? Evaluating Retrieval, Evidence Delivery, and Answer Completion
Shared title terminologycs.IRVenkata Pagadala, K. Rajasekhara Rao, Pratyay Ganguly
Graded-Relevance Composed Multimodal Retrieval for E-commerce Visual Search at Scale
Shared title terminologycs.IRAnubhav Gupta, Hrushikesh Mohapatra, Prijith Chandra et al.
ANTIDOTE: A Defense Harness for Retrieval Diversification and Evidence Consolidation in Agentic Recommender Systems
Shared title terminologycs.IRHongru Hou, Denghui Geng, Jinhui Huang et al.
SOARS: System One Assisted Reranking for Agentic Search
Shared title terminologycs.IRAmin Bigdeli, Liye Fu, Fattane Zarrinkalam et al.
Query Obfuscation with Embedding-Optimized Noise (EON): A Representational Blindspot in Agentic Retrieval
Shared title terminologycs.IRAnkit Gupta, Christoph Adami, Emily Dolson
CO-GRAFT: Attributing Reinforcement Learning Gains in Search Agents via Role-Level Policy Grafting
Shared title terminologycs.IRRamraj Chandradevan, Sayontan Ghosh, Vinoth Selvendran