Looks like this should scale spectacularly poorly.

Might be useful for a few hundred documents max though.

A good thing about tree representation compared to a 'list' representation is that you can search hierarchically, layer by layer, in a large tree. For example, AlphaGo performs search in a large tree. Since the scale of retrieval is smaller than that of the Go game, I guess this framework can scale very well.

This design isn't new, Codanna MCP uses it, and it definitely works (at least when run by the main agent, a dumb subagent might biff it).

It scales as log(N), right? So if you can tolerate it for a few hundred docs you can probably tolerate it for a lot more.

[deleted]