Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 988 Bytes

readme.md

File metadata and controls

27 lines (19 loc) · 988 Bytes

Staz AI

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.

Setup

  1. Clone the repository: git clone <repository-url>

  2. Navigate to the project directory: cd <project-directory>

  3. Install the required dependencies: pip install -r requirements.txt venv is recommended (create a venv with python -m venv venv and activate it with source venv/bin/activate)

  4. Provide required env variables OPENAI_API_KEY, CORS_ORIGIN, (not required - recommended) ASSISTANT_NAME

  5. Run the application:

    • with venv python -m gunicorn main:app
    • without gunicorn main:app
    • without gunicorn python main.py

Usage

``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?"
}