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
When running from graphrag.api.query import local_search answer, context = await local_search(...)
The retrieved context is in context["sources"]
I have two questions about the retrieval step:
Is there a way to specify a parameter like top_k that returns the top k chunks from the retrieval?
Is there a function that performs only retrieval, without also performing generation (unlike local_search which does both retrieval and generation)? Essentially, I want to fetch the relevant chunks first, then handle generation separately.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
When running
from graphrag.api.query import local_search
answer, context = await local_search(...)
The retrieved context is in
context["sources"]
I have two questions about the retrieval step:
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions