microsoft / graphrag

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

There are some questions about application integration #337

Closed linfwj closed 2 days ago

linfwj commented 5 days ago
  1. How do I store graph content in a database instead of a file?
  2. Is there an HTTP API available for application integration queries?
eyast commented 3 days ago

With regards to the 2nd question, please have a look at the GraphRAG accelerator. The accelerator shows you how to deploy a GraphRAG web application on Azure Kubernetes Services, nginx, Azure API Management (API-M), and few other configurations that make it easily accessible for your users or applications to access GraphRAG through a REST API endpoint.

AlonsoGuevara commented 2 days ago

Hi @linfwj

  1. We only support graphml, csv, json and parquet outputs at the time. I would suggest taking a look at how we store the graph in here: snapshot rows Every line of the dataframe is a graph in graphml format, and whever we want to "snapshot" it we call this function with text as the format and graphml as the extension
  2. As @eyast suggest, I would direct you to the Accelerator Solution it deploys everything into a cloud solution.