microsoft / graphrag

A modular graph-based Retrieval-Augmented Generation (RAG) system
https://microsoft.github.io/graphrag/
MIT License
17.4k stars 1.66k forks source link

[Feature Request]: An example to run conversations with GraphRAG #480

Open ifsheldon opened 2 months ago

ifsheldon commented 2 months ago

Is your feature request related to a problem? Please describe.

As of now, we don't have an example to converse with LLM powered by GraphRAG. I see the code in the notebook of the documentation. I've look up the source code and indeed we can pass a history when constructing a context_builder. But we don't have a client yet.

Describe the solution you'd like

Implement a client that given processed knowledge graph, can run conversations with multiple turns.

Additional context

I'd like to help implement this, but I have a few questions:

  1. How can we determine when to use global search and when to use local search? It seems we also need LLM to determine if a question/query is global or local based on the conversation history.
  2. How can I find the content of references? References like [Data: Reports (377, 327, 182)] are inserted into assistant's answer, but these are indices, how can I use these indices to find the content?
github-actions[bot] commented 1 month ago

This issue has been marked stale due to inactivity after repo maintainer or community member responses that request more information or suggest a solution. It will be closed after five additional days.