mirror of
https://github.com/Azure-Samples/graphrag-accelerator.git
synced 2025-06-27 04:39:57 +00:00
Web App
This directory contains the source code for a FastAPI application implements a REST API wrapper around the graphrag library. The app has been packaged up as a python package for a cleaner install/deployment experience.
Package Layout
The code has the following structure:
backend
├── README.md
├── graphrag_app # contains the main application files
│ ├── __init__.py
│ ├── api # endpoint definitions
│ ├── logger # custom loggers designed for graphrag use
│ ├── main.py # initializes the FastAPI application
│ ├── typing # data validation models
│ └── utils # utility/helper functions
├── manifests # k8s manifest files
├── poetry.lock
├── pyproject.toml
├── pytest.ini
├── scripts # miscellaneous scripts that get executed in k8s
└── tests # pytests (integration tests + unit tests)