Codebase indexing
A few people have started on RAG and not finished. Our goal for next week is RAG.
@andrewpareles How is it going?
We actually decided to put off RAG for now - agents that can do tool-use and navigate the user's file system are probably how code should be written, so we want to build that agentic tool-use side of things first. We will probably come back to RAG to make things work better once tool use is done.
@andrewpareles It's important not to undervalue codebase indexing though. They serve very different purposes
"Why build a map of the entire city when we can just give the AI a car and GPS to drive around and find things as needed?"
Same thing here. The problem with just the tools approach is that without "memory" of the codebase, the AI lacks the holistic understanding that comes from seeing patterns across files and understanding the overall architecture. It's like having a smart assistant who has to rediscover your codebase from scratch every time you ask a question
You're right - codebase memory is important. It just doesn't have to be RAG. As of now I think a codebase summary created in the BG by an LLM would work best, but we're open to experiments/thoughts.
Oh yeah for sure! I can't really picture RAG working well with this since it mostly does a similar thing (search the codebase). Not sure if it could be used for letting the AI search though. Like searching "implementation where GitHub sign in is implemented" but that'd be a different feature.
I'll be working on a minimal web app where I can load a project and the main feature will be giving the LLM a deep understanding of the codebase. I'm only gonna use this to experiment. Because there's a lot of different approaches that I'd love to try. Could integrate into Void in the future maybe (if it gets really good, which I think it will)
Allow indexing to be configurable and have a default configuration that would work for most-used cases? Any node in the codebase (and workflow?) could be configured to be summarized with a certain prompt.
I feel like this approach could be extended with KG-based indexing (UI for which could probably be reused for making agents flows?) later.
I can make a mock configuration for the discussion.
Decided not to add RAG/indexing right now - agents are coming.