Skip to content

Commit

Permalink
fix: AI Search index creation
Browse files Browse the repository at this point in the history
Field was updated in latest SDK pre-version.
  • Loading branch information
clemlesne committed Dec 6, 2024
1 parent 41b6995 commit 02e2393
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions app/persistence/ai_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ async def _use_client(self) -> SearchClient:
VectorSearchProfile(
algorithm_configuration_name="algorithm-default",
name="profile-default",
vectorizer="vectorizer-default",
vectorizer_name="vectorizer-default",
),
],
algorithms=[
Expand Down Expand Up @@ -257,10 +257,6 @@ async def _use_client(self) -> SearchClient:
# Deployment
endpoint=self._config.endpoint,
index_name=self._config.index,
# Index configuration
fields=fields,
semantic_search=semantic_search,
vector_search=vector_search,
# Performance
transport=await azure_transport(),
# Authentication
Expand All @@ -271,6 +267,7 @@ async def _use_client(self) -> SearchClient:
SearchIndex(
fields=fields,
name=self._config.index,
semantic_search=semantic_search,
vector_search=vector_search,
)
)
Expand Down

0 comments on commit 02e2393

Please sign in to comment.