by andai · 1y ago · 0 comments
Anthropic found embeddings + BM25 (keyword search) gave the best results. (Well, after contextual summarization, and fusion, and reranking, and shoving the whole thing into an LLM...)
But sadly they didn't say how BM25 did on its own, which is the really interesting part to me.
In my own (small scale) tests with embeddings, I found that I'd be looking right at the page that contained the literal words in my query and embeddings would fail to find it... Ctrl+F wins again!
I think it's just a case of "this isn't something we need to solve, other companies solve it already and then our thing can integrate with that."
Or maybe it's really just marginal gains compared with iterative grepping. I don't know. (Still amazed how well that works!)
https://cursor.com/docs/context/codebase-indexing
Seems like sometimes Cursor has a better understanding of the vibe of my codebase than Claude code, maybe this is part of it. Or maybe it’s just really marginally important in codebase indexing. Vector dbs still have a huge benefit in less verifiable domains.