From c7c133d40c64d451f86848268b87e2484e467f51 Mon Sep 17 00:00:00 2001 From: Liudmila Molkova Date: Thu, 11 Apr 2024 16:56:34 -0700 Subject: [PATCH] up --- .../Azure.Sdk.Tools.AI.Helper/KnownIssueAIBot.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/github-event-processor/Azure.Sdk.Tools.AI.Helper/KnownIssueAIBot.cs b/tools/github-event-processor/Azure.Sdk.Tools.AI.Helper/KnownIssueAIBot.cs index 6299907aa..b72b014ce 100644 --- a/tools/github-event-processor/Azure.Sdk.Tools.AI.Helper/KnownIssueAIBot.cs +++ b/tools/github-event-processor/Azure.Sdk.Tools.AI.Helper/KnownIssueAIBot.cs @@ -41,11 +41,8 @@ You should return a known solution and your confidence level on a scale of 10 th { var parameters = new { + embeddingDeploymentName = openAiConfig.EmbeddingModel, endpoint = searchConfig.Endpoint, - key = searchConfig.Key, - embeddingEndpoint = openAiConfig.Endpoint! + $"openai/deployments/{openAiConfig.EmbeddingModel}/embeddings?api-version=2023-03-15-preview", - embeddingKey = openAiConfig.Key, - indexName = searchConfig.IndexName, fieldsMapping = new { contentFields = new[] { "Content" }, @@ -53,10 +50,14 @@ You should return a known solution and your confidence level on a scale of 10 th urlField = "Source", titleField = "Title" }, + inScope = true, + indexName = searchConfig.IndexName, + key = searchConfig.Key, queryType = "vector", roleInformation = Prompt, topNDocuments = 3, - strictness = 3 + strictness = 3, + semanticConfiguration = "default", }; return new AzureChatExtensionConfiguration(AzureChatExtensionType.AzureCognitiveSearch,