gusye1234 / nano-graphrag

A simple, easy-to-hack GraphRAG implementation
MIT License
1.04k stars 106 forks source link

Data references are no longer given in query output #77

Open simonepstein opened 3 days ago

simonepstein commented 3 days ago

Hi there,

I noticed that the data references are no longer included in the query response, this is since commit https://github.com/gusye1234/nano-graphrag/commit/8bc75227eee11b1d4c725708b87825d661e7cb51

I wondered if you could explain the reason for removing these references; I think the context specific evidence is useful for the user to review when evaluating the response from the llm.

gusye1234 commented 1 day ago

Yeah, I implemented this feature at first. But I found out that GraphRAG will attach the reference id, which is a unique identifier inside the storage. So for most of the users, that identifier is pretty meaningless because you have to look into the internals of nano-graphrag's storage to get the corresponding data. I think the default version of nano-graphrag should output something basic, so I remove the data references. But I'm thinking adding the referred data as an output of query, so advanced users can pack their own answer styles.