What are the differences in the query methods local, global, and question generation? #721
Unanswered
natoverse
asked this question in
Algorithm + Paper
Replies: 3 comments 1 reply
-
so i have question why we just one local question gen in code if we have input history? Can we make it to global question? @natoverse |
Beta Was this translation helpful? Give feedback.
1 reply
-
can someone here confirm or deny whether the input entities of the local search can be tampered with? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Copied from #695
Question text
Answer
The paper has detailed descriptions of the global query algorithm, but I'll summarize briefly here along with local search:
There's a bit more to it in terms of ranking matches, managing context window size limits, etc., which can be found in the paper and code.
Question generation may be helpful for use cases where you would like the model to provide starting points for analysis. This is useful because the model has access to all of the indexed content and can summarize it quickly compared to human reading. Question generation can also take prior user questions as input and suggest relevant next questions to ask. As a starting point for building the context in the absence of any prior conversation history, question generation will retrieve the top k entities based on rank (rank is in turn computed as the node degree, so this effectively retrieves the top k most connected entities). In this sense it functions much like local search because it uses entities as the entry point.
Beta Was this translation helpful? Give feedback.
All reactions