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

.Net: Vector Store: Allowing json serializer options to be passed down from vector store options and user agent string. #8296

Merged

Conversation

westey-m
Copy link
Contributor

Motivation and Context

See #8086
See #7580

To make it easier for users who are using the default construction for the azure ai search client to also use custom json serializer settings, adding this as an option to the vector store options class and using it when both when constructing the azure ai search client and the collection.

Also adding the semantic kernel user agent string to the azure ai search client when constructing it.

Contribution Checklist

@westey-m westey-m requested a review from a team as a code owner August 20, 2024 13:28
@westey-m westey-m changed the title Allowing json serializer options to be passed down from vector store options. Vector Store: Allowing json serializer options to be passed down from vector store options and user agent string. Aug 20, 2024
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.

Can we add UTs to ensure this new functionality is working as expected?

@westey-m
Copy link
Contributor Author

Can we add UTs to ensure this new functionality is working as expected?

@RogerBarreto Unfortunately the options passed to the azure ai search client is not exposed by the search client as a property, so you cannot verify afterwards that you passed in the right values.

@markwallace-microsoft markwallace-microsoft added .NET Issue or Pull requests regarding .NET code kernel Issues or pull requests impacting the core kernel memory labels Aug 21, 2024
@github-actions github-actions bot changed the title Vector Store: Allowing json serializer options to be passed down from vector store options and user agent string. .Net: Vector Store: Allowing json serializer options to be passed down from vector store options and user agent string. Aug 21, 2024
@westey-m westey-m added this pull request to the merge queue Aug 21, 2024
Merged via the queue into microsoft:main with commit 58327fc Aug 21, 2024
15 checks passed
@westey-m westey-m deleted the vector-store-azure-ai-search-json-options branch August 21, 2024 19:31
LudoCorporateShark pushed a commit to LudoCorporateShark/semantic-kernel that referenced this pull request Aug 25, 2024
…n from vector store options and user agent string. (microsoft#8296)

### Motivation and Context

See microsoft#8086
See microsoft#7580

To make it easier for users who are using the default construction for
the azure ai search client to also use custom json serializer settings,
adding this as an option to the vector store options class and using it
when both when constructing the azure ai search client and the
collection.

Also adding the semantic kernel user agent string to the azure ai search
client when constructing it.

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
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 memory .NET Issue or Pull requests regarding .NET code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants