Find answers from the community

Updated 2 months ago

Tree summarize

Thanks! By the way, any idea on how the GPTListIndex does tree_summarize? I thought it normally goes through each node one by one. Conceptually TreeIndex makes sense and how it would do tree_summarize, but i have no idea how a list index would do that
L
J
6 comments
Tree summarize basically makes a bottom up summary tree, where each node summarizes its two children

Then the top/root of the tree becomes the summary of the list index πŸ‘

You can also use this mode on vector indexes, works not bad especially when the top k is a little higher
If you have a tree index and want a summary, you can use mode="summarize" instead of response_mode (a little weird I know lol)
I see, for list, if top-k is like 50, it might make a tree of top 50 docs it founds and build a new summary tree
But if you pass a tree index, that summary tree contains pretty much a summary of the entire doc
so its doing summaries of summaries i imagine haha
Yea pretty much!
Add a reply
Sign up and join the conversation on Discord