WhoBuilt

Building a Smarter AI Agent with Neural RAG

Jul 29, 2025· 19 min· 20K views·Watch on YouTube

Speaker

Will Bryk of Exa.ai explains at an AI Engineer talk how to build web search for AI agents, then demonstrates neural and keyword search in an agent.

From keyword search to neural search

Bryk traces search from Google’s keyword index and PageRank to transformer based document embeddings. Exa trained a search engine to match the meaning of a query, so a request like shirts without stripes could return results that actually omit stripes. He says the team spent about a year and a half researching before launching the new search engine in November 2022.

Why AI still needs web search

After ChatGPT launched, Bryk concluded that language models still need search because their stored knowledge cannot cover the entire, constantly changing web. He gives a rough scale comparison: model weights may hold less than 10 terabytes of information, while web documents exceed a million terabytes. Search lets an AI retrieve current information and use it to answer a user’s request.

Search designed for AI agents

Bryk argues that traditional search is tuned for people who enter short queries and click a few links, while agents can use detailed context and process many results quickly. He describes needs such as precise results, multi paragraph queries, and thousands of results, giving examples of finding startups like Bell Labs or identifying every YC funded AI startup. Exa aims to let agents search the web more like a flexible database.

Combining search methods in an agent

Bryk shows Exa’s dashboard filters for result count, date range, and domains, then demonstrates an agent that formats findings as Markdown. He uses neural search to find personal sites of San Francisco engineers interested in information retrieval, and keyword search for GitHub information. He says an agent can chain the methods, first finding people semantically and then searching for each person’s GitHub.

A research endpoint for reports

Bryk closes by describing Exa’s research endpoint, which makes multiple searches and language model calls as needed to produce a report or structured output. He presents it as an API for agents that need to gather and organize information from the web.

Takeaways

  • Choose neural search for intent rich requests and keyword search for exact terms or known sources.
  • Give agents detailed user context when searching, so results can reflect preferences and constraints.
  • Use result count, date, and domain filters to control what an agent retrieves.
  • Chain search methods: discover relevant entities semantically, then look them up with targeted keyword queries.
  • For broad research tasks, use repeated searches and synthesis to build a report or structured result.

Mentioned in this talk

Search inside this talk

What was claimed 8

Related talks