r/AugmentCodeAI • u/SathwikKuncham • Feb 04 '26
Discussion RAG vs Grep
Claude code creator on RAG based system for code retrieval. Either Claude is wrong or Augment is wrong. No in between.
Also, I read a paper from Google deepmind explaining how RAG (using dense embeddings) must fail to retrieve specific documents in certain scenarios, regardless of how good the model is.
10
Upvotes
•
u/[deleted] Feb 04 '26
[removed] — view removed comment
1
u/SathwikKuncham Feb 04 '26
Here's the link of Google Deepmind Repo explaining how how RAG must fail in some scenarios: https://github.com/google-deepmind/limit
2
u/ZestRocket Veteran / Tech Leader Feb 05 '26
In my very personal testing (which basically means coding 24/7) I have a very strong inclination to think that RAG with a good model + BM25 and a re-ranker are WAAAY above Grep, the only reason I see for them to have a successful product using it is simple:
You can train the model to be very good at using grep, and that’s what they do, is not that is better, is that they fit the product to the use case… and even being that way, I still find better results with a good Context Engine
3
u/Megalion75 Feb 04 '26
Well that’s a lie. Augmentcode’s context engine using a vector db is way better than grep. The only reason why Anthropic likes grep is because it consumes more tokens. I have an account with both and use them side by side with opus 4.5. Augment is significantly better on most occasions and the context window fills up much slower than with ClaudeCode always.
1
u/dirkmeister81 Feb 04 '26
RAG != RAG.
1
u/und3rc0d3 Feb 05 '26
Good try Dario.