Code indexing and hybrid retrieval

Building Windsurf with Varun Mohan

Topic 9 of 16

Published May 7, 2025 · Clip 33:42–37:57 (4:15)

Varun describes Windsurf's hybrid retrieval approach: embedding-based and keyword-based search, plus knowledge graphs and AST dependencies, all fused together. Because embedding search alone has low recall, they throw compute at retrieval time, processing large codebase chunks to boost precision and recall—crucial for agents working with codebases larger than any context window. They briefly compare this to Google's search sophistication.