looking at the source code it seems like include_summary is deprecated? Is there still some way to use/does it still currently use the actual summary text during refinement?
So I'm not exactly sure what the flow is for composable graphs, when I query my composable graph which is a tree in embedding mode on top of a bunch of vector stores, does it first check the embedding similarity of the summaries of each vector store with the query before doing the embedding search in the vector store itself? Or does it first do the embedding search and then pass it up to the tree to pick num_branch_children vector store sources?
Ngl with the tree, it's a bit of mystery to me too.
At a high level, having a tree index on top of your vector indexes, it organizes the summaries of each vector index into a tree where each parent node summarizes its two children nodes
But for the query (normal and emebdding), I haven't looked at the source code enough to understand how it works.
Maybe @jerryjliu0 has a good summary of how tree queries work on hand haha
I feel like if it's not already, being able to use the summaries in some way to get the final answer would be good... in my use case, oftentimes the summary itself has a lot of useful info... I guess alternatively I could add the summary text itself into each vector store so that it's also query-able hmm π€
cc @Logan M @LLYX if you have a tree on top of a bunch of vector stores, it would first query the tree, "retrieve" the relevant leaf nodes (which correspond to your vector indexes), and then query the retrieved vector indexes.
The way a tree index works in a composed graph is basically "routing" to child nodes. so imagine a one-layer tree with one root node and 5 child nodes. querying the tree index would just pick the child node to go down into
@LLYX include_summary=True will also add the summary of each index as context too. make sure you set include_summary=True for each subindex in your overall query config
So if my tree layer is set to embedding mode, is it doing a similarity search between the query embedding and the embedding of the vector store summaries? Thanks for answering!