This repository packages a basic OpenAI Assistant conversational chat for use with Aiera's API. Contact [email protected] for more info.
The application is built with streamlit and OpenAI's beta Assistants API. Aiera Assistant is a custom assistant built on the preview of gpt4-turbo-preview.
Use conda to create a virtual environment and install the dependencies specified in the environment.yml
file:
conda env create -f environment.yml
conda activate aiera-assistant
Set up your environment using the following variables:
Environment Variable | Description |
---|---|
OPENAI_API_KEY | key provided by OpenAI |
OPENAI_ORG_ID | org id provided by OpenAI |
OPENAI_PERSIST_FILES | true/false, whether to persist files uploaded to OpenAI |
AIERA_API_KEY | API key as provided by Aiera. Contact us at [email protected] |
LOGGING_LEVEL | standard python logging level |
Launch Jupyter and create the assistant by executing the cells in the AieraAssistant.ipynb
notebook.
jupyter lab
Configure your environment to use the id of the assistant you've just created:
export OPENAI_ASSISTANT_ID={your id}
pip install -e .
streamlit run aiera_assistant/main.py