Skip to content

noworneverev/graphrag-api

Repository files navigation

GraphRAG API

This project provides a FastAPI-based server implementation for handling both global and local structured searches using GraphRAG.

Installation

Clone the repository and install the required dependencies using the following commands:

git clone git@github.com:noworneverev/graphrag-api.git
cd graphrag-api
python -m venv venv
source venv/bin/activate # for Linux
venv\Scripts\activate # for Windows
pip install -r requirements.txt

Usage

python api.py

Open http://127.0.0.1:8000/docs/ to see the API documentation.

You can also use the interface at GraphRAG Visualizer to run queries against the server.

search

API Endpoints

  • /search/global: Perform a global search using GraphRAG.
  • /search/local: Perform a local search using GraphRAG.
  • /status: Check if the server is up and running.

Releases

No releases published

Packages

No packages published

Languages