by yesb · 1mo ago · 0 comments
I think what you're observing is that there is more to information retrieval i.e. "retrieval" in RAG than slapping everything into a vector database and calling it a day. There's no such requirement in RAG to mindlessly load the k nearest neighbors into your context and see what happens. That's a very rudimentary implementation.
This markdown system I'd argue is RAG as well. You're just doing the retrieval in a way customized for the problem at hand. If you have a precise method of retrieving the most relevant things, obviously use that rather than a similarity metric. If I'm reading correctly, this markdown system is basically a knowledge graph which is not a new idea.
Instead, I have a (pi.dev) tool called `do` which forks the agent and spawns a task on top of it - then returns the last message to the parent agent. (or `delegate` to start with a fresh context).
That's it.
claude/codex use it for a lot of things (impl/review/search/misc), and thus including situations RAG would otherwise be used. By skipping RAG, these search sub-agents instead use tools they've been trained on to use (find, grep, etc), and can decide to look deeper if required.
I'm not saying RAG couldn't be made to work, but with my set-up i've automatically gotten improvement every time a new range of models was released.