This assistant is built following the guidelines provided in this tutorial. The following steps will guide you through setting up and running the assistant on your local machine.
-
Clone the Repository Begin by cloning the repository to your local machine. Use the following command in your terminal:
git clone https://github.com/insourcedata/assistant.git
-
Navigate to the Repository Change your current working directory to the root of the cloned repository:
cd assistant -
Install Dependencies Install the required Python dependencies listed in the
requirements.txtfile:pip install -r requirements.txt
-
Environment Setup Create a .env file in the root directory of the project. This file should contain your OpenAI API key:
OPENAI_API_KEY=your_api_key_here
-
Run the Application Start the assistant by running the
main.pyscript:python main.py
-
python main.py Once the application is running, you can interact with the assistant by navigating to the following URL in your web browser:
http://localhost:8000/assistant/playground/