Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve source document of local search #250

Open
mariomoliner opened this issue Feb 17, 2025 · 3 comments
Open

Retrieve source document of local search #250

mariomoliner opened this issue Feb 17, 2025 · 3 comments

Comments

@mariomoliner
Copy link

Hello,

I would like to know if there's a way to extract the source(s) where some query result comes from?

I would find this especially useful in the case of local search, sometimes the results have been very close the actual source txt.
I'm not aware whether there's any way of arriving to the source document name via the diferent /data/* calls.

Mario

@timothymeyers
Copy link
Contributor

Hi @mariomoliner - take a look at https://github.com/Azure-Samples/graphrag-accelerator/blob/main/notebooks/2-Advanced_Getting_Started.ipynb

Towards the bottom, under the Query heading, there are examples showing how to (1) get the context associated with a query result and (2) use the API to retrieve details about documents, claims, relationships, entities, etc that may be referenced in the response.

@mariomoliner
Copy link
Author

Hi @timothymeyers thanks for the information, I'm aware of the endpoints and they help to retrieve the source of the document given an entity, report or relationship.

My question is for the case when you have [Data: Sources (2071, 292);] In this kind of source in the response is there any way to retrieve what is the sourced document name?

@mariomoliner
Copy link
Author

Hi @timothymeyers, just following up on my previous question. I’m still curious about how to retrieve the actual document name when dealing with source identifiers like [Data: Sources (2071, 292);]. If there’s any additional information or pointers on how I can map these IDs back to the source document names, that would be really helpful! Thank you again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants