9
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 23 Jun 2026
9 points (73.7% liked)
Free Open-Source Artificial Intelligence
4816 readers
27 users here now
Welcome to Free Open-Source Artificial Intelligence!
We are a community dedicated to forwarding the availability and access to:
Free Open Source Artificial Intelligence (F.O.S.A.I.)
More AI Communities
LLM Leaderboards
Developer Resources
GitHub Projects
FOSAI Time Capsule
- The Internet is Healing
- General Resources
- FOSAI Welcome Message
- FOSAI Crash Course
- FOSAI Nexus Resource Hub
- FOSAI LLM Guide
founded 3 years ago
MODERATORS
I'm not sure if I'm missing something, but can this not be solved with one Linux command?
grepThe command has a
-noption to output line numbers and-C xto providexlines of context.There's no extra software required, doesn't need an LLM, doesn't hallucinate, just a plain search.
What the LLM can do that grep can't is that it can find things by imperfect description. You need to know a text string that's exactly in the file to get grep/ack/etc. to locate it; you can be vague with an LLM and it may still be able to figure it out. It's the difference between searching for
FooBarFactoryalready knowing the exact name and trying to find the file it's in (where grep, etc. are great) and "find the code that instantiates FooBar objects infooproject and tell me what it's called" when you don't know if it was FooBarManager or FooBarFactory or it's actually a function calledmake_foo_bar()instead of factory class or there are actually three different ways to do it because of legacy code.So, a fuzzy search then?
There's several command line tools for that too.
yea no ur right, grep works great fir doin codebase search. dunno what this other peeps is going on about, for the case of file search, grep rules.
More like a conceptual search. e.g. I've used my source code explorer to get a survey of how the template handling works in llama.cpp since the sample chat code doesn't apply the same logic that llama-cli actually does.