Skip to content

Quick setup playground for testing and evaluating techniques with Azure AI Services

License

Notifications You must be signed in to change notification settings

jamesmcroft/azure-ai-playground

Repository files navigation

Testing Playground for Azure AI Services

This repository is primarily used to test and evaluate techniques with Azure AI services for the purposes of learning and experimentation. The repository is organized into different directories, each of which contains a different set of experiments and tests.

This repository is not intended for production use, and the code contained within is not guaranteed to be secure or optimized. It is intended for educational purposes only.

Note

The playgrounds are primarily built with various languages including .NET, Python, and TypeScript. However, not every playground has an environment for each language. Libraries to interface with Azure services are available in each of these languages, and the code can be easily translated to them with studying the API surface layer and utilizing AI.

Pre-requisites

This repository contains a devcontainer configuration for Visual Studio Code. This configuration contains all the necessary tools and libraries to run the code in this repository. To use the devcontainer, you must have the following installed on your local machine:

Note

If you are not planning on using the Dev Container, you must also install PowerShell Core, Azure CLI, .NET SDK, Nodejs, and Python on your local machine, as well as the necessary Python packages from the requirements.txt file.

Setting up the Azure AI Services

To setup an environment in Azure, simply run the Setup-Environment.ps1 script from the root of the project:

Important

Ensure that you have run the az login command to authenticate with Azure before running the script, and selected your subscription using az account set --subscription <SubscriptionId>.

.\Setup-Environment.ps1 -DeploymentName <DeploymentName> -Location <Location> -SkipInfrastructure $false

This script will deploy the necessary Azure services using the Azure Bicep template in the infra folder.

Once deployed, the script will create a .env file in the root of the project with the necessary environment variables to connect to the Azure services.

Playgrounds

Document Data Extraction

Azure AI Document Intelligence

Azure OpenAI