What are the pros/cons of tree and vector indexes? I understand roughly how they work but can’t figure out why one would vector over tree or vice versa. Isn’t a Vector Tree best?
Vector index is fast and uses as few tokens as possible
tbh the tree index isn't really that useful. I would use a list index with tree_summarize for generating summaries, and a vector index for everything else (an of course, use a router engine or sub question engine as needed 🙂 )
Thank you for explaining! I imagine the tree index finds relevant leaf nodes by following paths that have higher relevance like a decision tree. When deciding which path to go down, how is the comparison done?