The latest graphrag interface is used, using the local ollama to provide the LLM interface
Project description
English | 简体中文
GraphRAG-UI
GraphRAG-UI is a user-friendly interface for GraphRAG, a powerful tool that uses the Retrieval-Augmented Generation (RAG) approach to index and query large text data. This project supports the latest version graphrag-0.3.2 and aims to provide a convenient management and interaction method for GraphRAG, supporting the configuration of local large language models like Ollama, making it easier for users to leverage.
Acknowledgments
This project is currently an upgrade based on the work of severian42 and his GraphRAG-Local-UI project. I would like to express my sincere gratitude to him for laying a solid foundation for this project. New features may be added in the future.
Features
- Intuitive Web Interface: GraphRAG-UI provides a user-friendly web interface for easy configuration and use of GraphRAG.
- Index Management: Quickly create, update, and manage your text data indexes.
- Query Execution: Submit natural language queries and retrieve relevant content from indexed data, followed by responses from a large language model.
- Configuration Options: Customize various settings and parameters to fine-tune the indexing and querying processes.
- Logging and Monitoring: Monitor the progress of indexing and querying tasks through detailed logs and status updates.
Sample screenshots:
Indexing
Visualize Graph (GIF image)
Chat With GraphRAG
Usage with pip
-
Install Ollama (optional):
Visit the Ollama website to install. If you're on Linux, you can run the following command directly:
curl -fsSL https://ollama.com/install.sh | sh
-
Install this software via pip:
pip install graphrag-ui or pip install graphrag-ui -i https://pypi.org/simple
-
Start the API Server
graphrag-ui-server
-
Start the UI
Start the comprehensive UI
graphrag-ui
Or start the pure UI
graphrag-ui-pure
Source code installation and usage
-
Create and activate a new conda environment:
conda create -n graphrag-ui -y conda activate graphrag-ui
-
Install Ollama(optional):
Visit Ollama's website for installation instructions.
Or Linux, run:
curl -fsSL https://ollama.com/install.sh | sh
-
Clone the repository:
git clone https://github.com/wade1010/graphrag-ui.git
-
Install the required packages:
cd graphrag-ui pip install -r requirements.txt
-
Start the API server:
python api.py --host 0.0.0.0 --port 8012 --reload
-
Start the UI:
-
Clean version
This version only supports indexing, Prompt Tuning, and file management, without query functionality.
gradio index_app.py or python index_app.py
-
Comprehensive version
This version adds visualizations, configuration management, and GraphRAG chat functionality on top of the clean version.
python app.py
-
-
Access the UI:
- Clean version:
http://localhost:7860
- Comprehensive version:
http://localhost:7862
- Clean version:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file graphrag_ui-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: graphrag_ui-0.1.2-py3-none-any.whl
- Upload date:
- Size: 58.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdc82a68da6a5cddd04a18703931510c73c045e098eecf0bd17783860250e6d2 |
|
MD5 | 6f460e7190e634ae16425885e6730c0e |
|
BLAKE2b-256 | 7bf8ebf17614ff0fb3cb281e9c3f7460d032a2ee17a429003a3c1f4e666b3d24 |