This project demonstrates examples for using Azure AI Foundry (previously known as Azure AI Studio). It includes various models and their deployment processes.
- Azure AI Foundry Project: Create a new project in Azure AI Foundry.
- Deploy Models: Deploy the necessary models to the project.
- Connection String: From the overview page of the project, obtain the connection string and add it to the
.env
file in the root directory of this project.
-
Clone the Repository:
git clone <repository-url> cd ai_foundary_examples
-
Create a Python Virtual Environment:
py -3 -m venv .venv .venv\scripts\activate
-
Install Dependencies:
pip install -r requirements.txt
-
Run the Project:
- Open the project in Visual Studio.
- Run the azure cli command to login to azure and get authenticated with the project
az login --use-device-code
- Press
F5
to run the project.
- Ensure that the
.env
file contains the correct connection string from your Azure AI Foundry project. - The
requirements.txt
file includes all necessary dependencies for the project.
- If you encounter any issues, verify that the connection string in the
.env
file is correct. - Ensure that all dependencies are installed correctly by checking the output of the
pip install
command.