Resource Deployment and Environment Variables

April 29, 2024 ยท View on GitHub

Required Resources

To use the rag-experiment-accelerator, create the following resources:

Environment Variables

Below are the required environment variables, to be added to a local .env file at the root of the repo.

VariableValueNote
AZURE_SEARCH_SERVICE_ENDPOINTAzure AI Search API Endpoint
AZURE_SEARCH_ADMIN_KEYAzure AI Search Key
AZURE_SEARCH_USE_SEMANTIC_SEARCHTrue / FalseWhether to use semantic search (not all regions support this feature)
OPENAI_API_KEYOpenAI API key
OPENAI_API_TYPEazure, open_aiMust be azure for Azure OpenAI or open_ai for OpenAI.
OPENAI_ENDPOINTAzure OpenAI API endpoint.
OPENAI_API_VERSION2023-03-15-previewAzure OpenAI API version. See https://learn.microsoft.com/en-us/azure/ai-services/openai/reference.
AML_SUBSCRIPTION_IDAzure Machine Learning subscription ID
AML_WORKSPACE_NAMEName of deployed Azure Machine Learning Workspace
AML_RESOURCE_GROUP_NAMEAzure Machine Learning resource group name
LOGGING_LEVELNOTSET, DEBUG, INFO, WARN, ERROR, CRITICALLOGGING_LEVEL is INFO by default

Below are optional environment variables, to be added to a local .env file at the root of the repo.

VariableValueNote
AZURE_LANGUAGE_SERVICE_ENDPOINTAzure AI Service for Language API Endpoint
AZURE_LANGUAGE_SERVICE_KEYAzure AI Service for Language Key