The Copilot for Azure Pricing is a demo project created using LangChain and Azure GPT-4. It is designed to provide suggestions on Azure region and virtual machine types based on the latest pricing data and other considerations. This AI-powered agent aims to assist users in making informed decisions when it comes to choosing the most cost-effective options for their Azure deployments.
Follow these steps to get started:
- Clone the repository:
git clone https://github.com/linjungz/copilot-azure-pricing.git
- Change into the
copilot-azure-pricing
directory:
cd copilot-azure-pricing
- Install the required Python packages:
Create virtual environment:
python3 -m venv .venv
source .venv/bin/activate
Install dependancies:
pip install -r requirements.txt
- Configure environment variables
Create a .env
file in the root directory and set following environment variables like this:
AZURE_OPENAI_API_KEY=YOUR_API_KEY
AZURE_OPENAI_API_ENDPOINT=YOUR_ENDPOINT
AZURE_OPENAI_API_DEPLOYMENT=YOUR_DEPLOYMENT_NAME
AZURE_OPENAI_API_VERSION=YOUR_API_VERSION
You could refer to the Azure Quickstart Guide or this repo to get the API_KEY
, ENDPOINT
and DEPLOYMENT NAME
.
- Run the app
$ streamlit run app.py