vespa.ai retweetledi

Your agent wants to search like a 2010 quant.
Retrieval for AI has passed through several stages of enlightenment. After the vector database craze, and the absorption of learnings from human information retrieval over the last half century, we might be officially entering the third stage with Perplexity's announcement of Search as Code.
Search for humans has over the years been dumbed down to accommodate the average user's capacity for formulating advanced queries, to the point where the words typed into query boxes are merely treated as vague indicators of what the user might want.
I see many replicating this way of thinking with AI agents, which leaves a lot of quality improvement on the table, as can be seen in Perplexity's benchmarks (ignore the "code" aspect as code execution is generally useful and where it runs doesn't matter for quality).
Models are quite capable and there's no reason to limit their options to those of a casual human user! They should be able to search for the names of those involved near each other in text when researching a legal case, choose a pure semantic search prioritizing high-quality sources when seeking a broad overview of a topic, or select a year range and group by month when constructing a timeline of some events, and so on.
An agent will typically string together many of these queries to reach its goal. First gaining an overview, then researching more specific topics, forming hypotheses, verifying important details in them. In short, search like an expert who knows what they are doing and really cares about the results— like a quant doing financial analysis.
Doing this in practice, with your own data, is actually quite easy. The models already know how to write complex queries in the languages of well-known AI search engines; they just need to be told that they can, what fields are available, and what they mean, and what choices they have in ranking the results.
How you tell them doesn’t actually matter that much; any simple textual description of what fields and ranking options are available will do. Models today are smart enough to use this effectively to connect their intents to specific YQL queries.
When creating search for humans, developers need to implement solutions that work well across a broad set of use cases, which involves making trade-offs where some types of queries cannot be improved because doing so would impact other types. When implementing for agents, the focus shifts to providing a wide toolbox for the agent to use to address their varied informational needs: broad and highly specific lexical recall, metadata attributes for filtering, grouping, and aggregation, as well as different ranking methods suited to different needs.
Developers working on agentic search should shift their focus from replicating search for average humans the much richer capabilities traditionally provided by solutions for competent professionals.
It’s time to let your agents search like a 2010 quant.
English









