Azure Open AI文書検索サンプルAP設定カスタイマイズ
<サンプルAP> 企業向けチャットと社内文書検索:URL
以下 jp-azureopenai-samples の 5.internal-document-search
<変更内容>
Cognitive Search: Standard --> Basic
※CognitiveSearch費用高のため、スペックダウン設定
<コード変更箇所> Bicep定義変更、一旦以下で動作
1)infra/main.bicep
module searchService 'core/search/search-services.bicep' = {
name: 'search-service'
scope: searchServiceResourceGroup
params: {
name: !empty(searchServiceName) ? searchServiceName : 'gptkb-${resourceToken}'
location: searchServiceResourceGroupLocation
tags: tags
authOptions: {
aadOrApiKey: {
aadAuthFailureMode: 'http401WithBearerChallenge'
}
}
sku: {
//name: searchServiceSkuName
name: 'basic'
}
semanticSearch: 'free'
}
}
2) infra/core/ai/cognitiveservices.bicep
param sku object = {
//name: 'S0'
name: 'B'
}
resource deployment 'Microsoft.CognitiveServices/accounts/deployments@2023-05-01' = [for deployment in deployments: {
parent: account
name: deployment.name
properties: {
model: deployment.model
raiPolicyName: contains(deployment, 'raiPolicyName') ? deployment.raiPolicyName : null
}
sku: contains(deployment, 'sku') ? deployment.sku : {
name: 'Basic'
//name: 'Standard'
//capacity: 20
}
}]
3) infra/core/search/search-services.bicep
param sku object = {
//name: 'standard'
name: 'basic'
}