-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix embeddings not being returned in Azure AI Search memory (#867)
## Motivation and Context (Why the change? What's the scenario?) The `withEmbeddings` parameter for the `GetSimilarListAsync` and `GetListAsync` methods on the `AzureAISearchMemory` class are not being applied because the `vector` field in the search index is not retrievable. ## High level description (Approach, Design) Ensure that the index is created with the vector field as retrievable so the option can be applied. - Add a `VectorSearchField` to the schema with the `IsHidden` and `IsStored` property values set - Create a private method that sets the `Select` fields on the `SearchOptions` to ensure only needed fields are returned --------- Co-authored-by: Devis Lucato <[email protected]> Co-authored-by: Devis Lucato <[email protected]>
- Loading branch information
1 parent
e5adeeb
commit b00d1a0
Showing
2 changed files
with
19 additions
and
11 deletions.
There are no files selected for viewing
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