You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Hello everyone, I have some questions regarding Hybrid Tree Search and would appreciate your insights. #175
I would like to implement this architecture scheme by coding it myself.However, I do have a few questions.
Parallel Retrieval: When use Vector-based Node Retreiver how many nodes is best? Node Consumer: When extracting relevant information from node and when summarizing relevant information node.
Thanks for the question. I would treat this diagram as a hybrid extension around PageIndex rather than the default PageIndex retrieval mode.
PageIndex itself is mainly a reasoning/tree-based retrieval system: it builds a document tree / table-of-contents-like structure and then uses reasoning over that structure to find relevant sections. If you add a vector-based node retriever in parallel, I would use it as a high-recall candidate generator, not as the final decision maker.
1. Parallel Retrieval: how many nodes should the vector-based retriever return?
There is no universal best fixed number. The right value depends on:
document length;
average node size;
query complexity;
token budget;
whether the query is single-hop or multi-hop;
whether you have a reranking / filtering stage after retrieval.
A practical starting point would be:
simple factual query: top_k = 5–10;
normal document QA: top_k = 10–20;
long document or multi-hop query: top_k = 20–40 candidates;
final answer context: usually keep only 3–8 strong nodes after filtering.
I would not send all vector-retrieved nodes directly to the final answer generator. A safer pipeline is:
retrieve broad candidates with vector search;
retrieve structure-aware candidates with reasoning/tree search;
merge candidates;
deduplicate by node_id, page range, or section title;
rerank/filter them by query relevance;
pass only the strongest evidence nodes to the node consumer / final answer step.
Activity
denis-samatov commentedon Jul 9, 2026
Thanks for the question. I would treat this diagram as a hybrid extension around PageIndex rather than the default PageIndex retrieval mode.
PageIndex itself is mainly a reasoning/tree-based retrieval system: it builds a document tree / table-of-contents-like structure and then uses reasoning over that structure to find relevant sections. If you add a vector-based node retriever in parallel, I would use it as a high-recall candidate generator, not as the final decision maker.
1. Parallel Retrieval: how many nodes should the vector-based retriever return?
There is no universal best fixed number. The right value depends on:
A practical starting point would be:
top_k = 5–10;top_k = 10–20;top_k = 20–40candidates;3–8strong nodes after filtering.I would not send all vector-retrieved nodes directly to the final answer generator. A safer pipeline is:
node_id, page range, or section title;For example:
ctlove0523 commentedon Jul 9, 2026