forked from microsoft/semantic-kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Revert "CopilotChat: Add Azure Cog Search for Semantic Memory (…
…microsoft#859)" (microsoft#864)" This reverts commit 8f6e96f.
- Loading branch information
1 parent
8f6e96f
commit 340cff6
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