Staz AI is a conversational AI designed to answer questions about Staz based on provided documents. It acts as an AI version of Staz, interacting with potential recruiters or clients.
-
Clone the repository:
git clone <repository-url>
-
Navigate to the project directory:
cd <project-directory>
-
Install the required dependencies:
pip install -r requirements.txt
venv is recommended (create a venv withpython -m venv venv
and activate it withsource venv/bin/activate
) -
Provide required env variables
OPENAI_API_KEY
,CORS_ORIGIN
, (not required - recommended)ASSISTANT_NAME
-
Run the application:
- with venv
python -m gunicorn main:app
- without
gunicorn main:app
- without gunicorn
python main.py
- with venv
``To interact with Staz AI, send a POST request to the/ask
endpoint with a JSON body containing your question. For example:
{
"question": "What is Staz's favorite programming language?"
}