Azure / GPT-RAG

Sharing the learning along the way we been gathering to enable Azure OpenAI at enterprise scale in a secure manner. GPT-RAG core is a Retrieval-Augmented Generation pattern running in Azure, using Azure Cognitive Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.
https://azure.microsoft.com/en-us/products/cognitive-services/openai-service
MIT License
884 stars 182 forks source link

Seeking Guidance on Modifying main.parameters.json to main.bicepparam for Personal Use #230

Closed VAN613 closed 3 weeks ago

VAN613 commented 1 month ago

I would like to change main.parameters.json to main.bicepparam as it is difficult to manage in its current form. However, I am unsure how to specify vmUserInitialPassword in main.bicepparam. Could you please assist me with this?

"vmUserInitialPassword": {
  "value": "$(secretOrRandomPassword ${AZURE_VM_KV_NAME} vmUserInitialPassword)"
}

Additionally, I understand how to reference environment variables as shown below:

using './main.bicep'
param environmentName = string(readEnvironmentVariable('AZURE_ENV_NAME', 'Default'))
param networkIsolation = bool(readEnvironmentVariable('AZURE_NETWORK_ISOLATION', 'false'))
param chatGptDeploymentCapacity = int(readEnvironmentVariable('AZURE_CHAT_GPT_DEPLOYMENT_CAPACITY', '40'))
param azureDbConfig = {
  dbAccountName: string(readEnvironmentVariable('aaa', 'Default'))
  dbDatabaseName: string(readEnvironmentVariable('AZURE_DB_DATABASE_NAME', 'Default'))
  conversationContainerName: string(readEnvironmentVariable('AZURE_DB_CONVERSATIONS_CONTAINER_NAME', 'Default'))
  modelsContainerName: string(readEnvironmentVariable('AZURE_DB_MODELS_CONTAINER_NAME', 'Default'))
}

P.S. When attempting to write in main.bicepparam, I noticed that "dbAccountName" and "dbDatabaseName" are undefined in main.bicep. It might be better to remove these two.

VAN613 commented 3 weeks ago

After consideration, I have decided to leave the vmUserInitialPassword undefined in my environment and change the policy so that the user will always input it manually on azd. I will go ahead and close this issue.