pip install open-webui
open-webui serve
###在浏览器中打开http://localhost:8080/
git clone https://github.com/your-username/GraphRAG4OpenWebUI.git
cd GraphRAG4OpenWebUI
python -m venv venv
source venv/bin/activate # On Windows use venv\Scripts\activate
pip install fastapi uvicorn pandas tiktoken graphrag tavily-python pydantic python-dotenv asyncio aiohttp numpy scikit-learn matplotlib seaborn nltk spacy transformers torch torchvision torchaudio
export GRAPHRAG_API_KEY="your_graphrag_api_key"
export TAVILY_API_KEY="your_tavily_api_key"
export GRAPHRAG_LLM_MODEL="gpt-3.5-turbo"
export GRAPHRAG_EMBEDDING_MODEL="text-embedding-3-small"
export INPUT_DIR="/path/to/your/input/directory"
python main.py
###接口地址为 http://localhost:8012
Comments