Note: For demonstration purposes only
A simple demo for building a custom ChatGPT-based chat bot that can answer questions about organization-specific data.
Steps to run locally:
- Make sure the dependencies listed in requirements.txt are installed.
- In your Azure OpenAI resource, deploy
gpt-35-turbo
,text-search-curie-doc-001
, andtext-search-curie-query-001
models and name them accordingly. - Add your Azure OpenAI key and endpoint to your Key Vault. Ensure that the secret names match those in app.py.
- Set the
KEUVAULT_URI
environment variable. - In your terminal, navigate to the
/app
directory and executeflask run
. - Find the app running on
http://127.0.0.1:5000/
.
Based on Question Answering using Embeddings from the OpenAI Cookbook.