-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CopilotChat: Add Azure Cog Search for Semantic Memory w/ IOptions fix (…
…#866) ### Motivation and Context Previous change introduced bug with configuration. ### Description Changes ISemanticTextMemory from Singleton to Scoped.
- Loading branch information
1 parent
dac05fc
commit 67a4854
Showing
5 changed files
with
82 additions
and
42 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
samples/apps/copilot-chat-app/webapi/Config/AzureCognitiveSearchOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
|
||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace SemanticKernel.Service.Config; | ||
|
||
/// <summary> | ||
/// Configuration settings for connecting to Azure Cognitive Search. | ||
/// </summary> | ||
public class AzureCognitiveSearchOptions | ||
{ | ||
/// <summary> | ||
/// Gets or sets the endpoint protocol and host (e.g. https://contoso.search.windows.net). | ||
/// </summary> | ||
[Required, Url] | ||
public string Endpoint { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// Key to access Azure Cognitive Search. | ||
/// </summary> | ||
[Required, NotEmptyOrWhitespace] | ||
public string Key { get; set; } = string.Empty; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters