Skip to content

Commit

Permalink
rollback search version
Browse files Browse the repository at this point in the history
  • Loading branch information
Fr4nc3 committed Feb 20, 2024
1 parent af2d145 commit 3243992
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion code/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ beautifulsoup4==4.12.3
fake-useragent==1.4.0
chardet==5.2.0
--extra-index-url https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/
azure-search-documents==11.6.0b1
azure-search-documents==11.4.0b8
opencensus-ext-azure==1.1.13
pandas==2.2.0
python-docx==1.1.0
6 changes: 3 additions & 3 deletions infra/deployment.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ resource Website 'Microsoft.Web/sites@2020-06-01' = {
{ name: 'AZURE_SEARCH_USE_SEMANTIC_SEARCH', value: AzureSearchUseSemanticSearch }
{ name: 'AZURE_SEARCH_CONVERSATIONS_LOG_INDEX', value: AzureSearchConversationLogIndex }
{ name: 'AZURE_AUTH_TYPE', value: authType }
{ name: 'AZURE_SEARCH_KEY', value: authType == 'keys' ? listAdminKeys('Microsoft.Search/searchServices/${AzureCognitiveSearch}', '2023-10-01-Preview').primaryKey : null }
{ name: 'AZURE_SEARCH_KEY', value: authType == 'keys' ? listAdminKeys('Microsoft.Search/searchServices/${AzureCognitiveSearch}', '2021-04-01-Preview').primaryKey : null }
{ name: 'AZURE_SEARCH_SEMANTIC_SEARCH_CONFIG', value: AzureSearchSemanticSearchConfig }
{ name: 'AZURE_SEARCH_INDEX_IS_PRECHUNKED', value: AzureSearchIndexIsPrechunked }
{ name: 'AZURE_SEARCH_TOP_K', value: AzureSearchTopK }
Expand Down Expand Up @@ -374,7 +374,7 @@ resource WebsiteName_admin 'Microsoft.Web/sites@2020-06-01' = {
{ name: 'APPINSIGHTS_INSTRUMENTATIONKEY', value: reference(ApplicationInsights.id, '2015-05-01').InstrumentationKey }
{ name: 'AZURE_SEARCH_SERVICE', value: 'https://${AzureCognitiveSearch}.search.windows.net' }
{ name: 'AZURE_AUTH_TYPE', value: authType }
{ name: 'AZURE_SEARCH_KEY', value: authType == 'keys' ? listAdminKeys('Microsoft.Search/searchServices/${AzureCognitiveSearch}', '2023-10-01-Preview').primaryKey : null }
{ name: 'AZURE_SEARCH_KEY', value: authType == 'keys' ? listAdminKeys('Microsoft.Search/searchServices/${AzureCognitiveSearch}', '2021-04-01-Preview').primaryKey : null }
{ name: 'AZURE_SEARCH_INDEX', value: AzureSearchIndex }
{ name: 'AZURE_SEARCH_USE_SEMANTIC_SEARCH', value: AzureSearchUseSemanticSearch }
{ name: 'AZURE_SEARCH_SEMANTIC_SEARCH_CONFIG', value: AzureSearchSemanticSearchConfig }
Expand Down Expand Up @@ -526,7 +526,7 @@ resource Function 'Microsoft.Web/sites@2018-11-01' = {
{ name: 'AZURE_FORM_RECOGNIZER_ENDPOINT', value: 'https://${Location}.api.cognitive.microsoft.com/' }
{ name: 'AZURE_FORM_RECOGNIZER_KEY', value: listKeys('Microsoft.CognitiveServices/accounts/${FormRecognizerName}', '2023-05-01').key1 }
{ name: 'AZURE_SEARCH_SERVICE', value: 'https://${AzureCognitiveSearch}.search.windows.net' }
{ name: 'AZURE_SEARCH_KEY', value: authType == 'keys' ? listAdminKeys('Microsoft.Search/searchServices/${AzureCognitiveSearch}', '2023-10-01-Preview').primaryKey : null }
{ name: 'AZURE_SEARCH_KEY', value: authType == 'keys' ? listAdminKeys('Microsoft.Search/searchServices/${AzureCognitiveSearch}', '2021-04-01-Preview').primaryKey : null }
{ name: 'DOCUMENT_PROCESSING_QUEUE_NAME', value: QueueName }
{ name: 'AZURE_OPENAI_API_VERSION', value: AzureOpenAIApiVersion }
{ name: 'AZURE_SEARCH_INDEX', value: AzureSearchIndex }
Expand Down
6 changes: 3 additions & 3 deletions infra/deployment.json
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@
},
{
"name": "AZURE_SEARCH_KEY",
"value": "[if(equals(parameters('authType'), 'keys'), listAdminKeys(format('Microsoft.Search/searchServices/{0}', parameters('AzureCognitiveSearch')), '2023-10-01-Preview').primaryKey, null())]"
"value": "[if(equals(parameters('authType'), 'keys'), listAdminKeys(format('Microsoft.Search/searchServices/{0}', parameters('AzureCognitiveSearch')), '2021-04-01-Preview').primaryKey, null())]"
},
{
"name": "AZURE_SEARCH_SEMANTIC_SEARCH_CONFIG",
Expand Down Expand Up @@ -699,7 +699,7 @@
},
{
"name": "AZURE_SEARCH_KEY",
"value": "[if(equals(parameters('authType'), 'keys'), listAdminKeys(format('Microsoft.Search/searchServices/{0}', parameters('AzureCognitiveSearch')), '2023-10-01-Preview').primaryKey, null())]"
"value": "[if(equals(parameters('authType'), 'keys'), listAdminKeys(format('Microsoft.Search/searchServices/{0}', parameters('AzureCognitiveSearch')), '2021-04-01-Preview').primaryKey, null())]"
},
{
"name": "AZURE_SEARCH_INDEX",
Expand Down Expand Up @@ -1022,7 +1022,7 @@
},
{
"name": "AZURE_SEARCH_KEY",
"value": "[if(equals(parameters('authType'), 'keys'), listAdminKeys(format('Microsoft.Search/searchServices/{0}', parameters('AzureCognitiveSearch')), '2023-10-01-Preview').primaryKey, null())]"
"value": "[if(equals(parameters('authType'), 'keys'), listAdminKeys(format('Microsoft.Search/searchServices/{0}', parameters('AzureCognitiveSearch')), '2021-04-01-Preview').primaryKey, null())]"
},
{
"name": "DOCUMENT_PROCESSING_QUEUE_NAME",
Expand Down

0 comments on commit 3243992

Please sign in to comment.