What about latency?
yeah vectors are way more efficient for this
Would've loved to seen the author run experiments about how they compare to other RAG approaches or what the limitations are to this one.
11–20 of 147 posts
What about latency?
yeah vectors are way more efficient for this
Would've loved to seen the author run experiments about how they compare to other RAG approaches or what the limitations are to this one.
When you have a question and you don't know which of the million documents in your dataspace contains the answer - I'm not sure how this approach will perform. In that case we are looking at either feeding an enormously large tree as context to LLM or looping through potentially thousands of iterations between a tree & a LLM.
That said, this really is a good idea for a small search space (like a single document).
This is good for applications where a background queue based RAG is acceptable. You upload a file, set the expectation to the user that you're processing it and needs more time for a few hours and then after X hours you deliver them. Great for manuals, documentation and larger content. But for on-demand, near instant RAG (like say in a chat application), this won't work. Speed vs accuracy vs cost. Cost will be a real…
So if I understand this correctly it goes over every possible document with an LLM each time someone performs a search? I might have misunderstood of course. If so, then the use cases for this would be fairly limited since you'd have to deal with lots of latency and costs. In some cases (legal documents, medical records, etc) it might be worth it though. An interesting alternative I've been meaning to try out is inve…
You may already know of this one, but consider giving Google LangExtract a look. A lot of companies are doing what you described in production, too!
Instead of using embeddings which are easy to make a cheap to compare, you use summarized sections of documents and process them with an LLM? LLM's are slower and more expensive to run.
I've found all leave something to be desired, sadly.