Skip to content

Commit

Permalink
community[patch]: add fixes for AzureSearch after update to stable az…
Browse files Browse the repository at this point in the history
…ure-search-documents library (#17599)

- **Description:** Addresses the bugs described in linked issue where an
import was erroneously removed and the rename of a keyword argument was
missed when migrating from beta --> stable of the azure-search-documents
package
- **Issue:** #17598
- **Dependencies:** N/A
- **Twitter handle:** N/A
  • Loading branch information
kristapratico authored Feb 16, 2024
1 parent 64743de commit bf8e3c6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def _get_search_client(
SemanticField,
SemanticPrioritizedFields,
SemanticSearch,
VectorSearch,
VectorSearchAlgorithmKind,
VectorSearchAlgorithmMetric,
VectorSearchProfile,
Expand Down Expand Up @@ -255,7 +256,7 @@ def __init__(
type=SearchFieldDataType.Collection(SearchFieldDataType.Single),
searchable=True,
vector_search_dimensions=len(self.embed_query("Text")),
vector_search_configuration="default",
vector_search_profile_name="myHnswProfile",
),
SearchableField(
name=FIELDS_METADATA,
Expand Down

0 comments on commit bf8e3c6

Please sign in to comment.