Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 756 Bytes

File metadata and controls

36 lines (25 loc) · 756 Bytes

iam-data-chatbot

ChatGPT bot to provide access and analysis to IAM result data

# create conda enviroment
conda create -n botenv python=3.10

# conda activation
conda activate botenv

# install required packages
pip install openai pandas openpyxl faiss-cpu numpy requests matplotlib

#save them
pip freeze > requirements.txt

#install packages
pip install -r requirements.txt

#run the bot to get answers from data
python main.py

#run the bot to get answers from api
python main.py --query "your question here"

#run the bot to get answers with graph
python main.py --debug

#run the FastAPI server
python fastapi_app.py

#or with uvicorn
uvicorn fastapi_app:app --reload

#force recreation of the faiss index
python main.py --clear-cache