Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Http consistency: Azure Cognitive Search Memory #1426

Merged

Conversation

SergeyMenshykh
Copy link
Member

Description

This pull request includes the following updates:

  • The AzureCognitiveSearchMemory class is extended to support a custom HttpClient, if one is provided.

  • Two overloaded extension methods, 'WithAzureAzureCognitiveSearchMemory', are added to the KernelBuilder class to simplify registration of the Azure Cognitive Search Memory store. These methods align the registration process with other connector registrations, enforce usage of a HttpClient with the preconfigured retry handler, and enable the hosting application to supply a custom HttpClient if required.

Contribution Checklist

@SergeyMenshykh SergeyMenshykh requested a review from dluc June 12, 2023 18:01
@github-actions github-actions bot added .NET Issue or Pull requests regarding .NET code kernel Issues or pull requests impacting the core kernel kernel.core labels Jun 12, 2023
@SergeyMenshykh SergeyMenshykh changed the title Http consistency acsm Http consistency: Azure Cognitive Search Memory Jun 12, 2023
@SergeyMenshykh
Copy link
Member Author

Hi @dluc, I see that this draft PR removes the classes modified in this PR. I think we need to agree on merging sequence. I don't mind bringing your changes in by this PR.

@SergeyMenshykh SergeyMenshykh added the PR: ready for review All feedback addressed, ready for reviews label Jun 12, 2023
@dluc
Copy link
Collaborator

dluc commented Jun 13, 2023

#1174 has been merged into feature branch. The branch will be merged next month, see #1439

Copy link
Member

@lemillermicrosoft lemillermicrosoft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM.

…veSearch/AzureCognitiveSearchMemoryTests.cs

Co-authored-by: Lee Miller <lemiller@microsoft.com>
Copy link
Member

@RogerBarreto RogerBarreto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lemillermicrosoft lemillermicrosoft merged commit aa5c02e into microsoft:main Jun 14, 2023
15 checks passed
@lemillermicrosoft lemillermicrosoft added this to the Sprint 33 milestone Jun 20, 2023
shawncal pushed a commit to shawncal/semantic-kernel that referenced this pull request Jul 6, 2023
### Description
This pull request includes the following updates:

* The AzureCognitiveSearchMemory class is extended to support a custom
HttpClient, if one is provided.

* Two overloaded extension methods,
'WithAzureAzureCognitiveSearchMemory', are added to the KernelBuilder
class to simplify registration of the Azure Cognitive Search Memory
store. These methods align the registration process with other connector
registrations, enforce usage of a HttpClient with the preconfigured
retry handler, and enable the hosting application to supply a custom
HttpClient if required.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kernel Issues or pull requests impacting the core kernel .NET Issue or Pull requests regarding .NET code PR: ready for review All feedback addressed, ready for reviews
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

4 participants