Skip to content

Commit

Permalink
fix: AI Search implem after update
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlesne committed Nov 20, 2024
1 parent d5a9913 commit f88ffdd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/persistence/ai_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from azure.search.documents.aio import SearchClient
from azure.search.documents.indexes.aio import SearchIndexClient
from azure.search.documents.indexes.models import (
AzureOpenAIParameters,
AzureOpenAIVectorizer,
AzureOpenAIVectorizerParameters,
HnswAlgorithmConfiguration,
LexicalAnalyzerName,
SearchableField,
Expand Down Expand Up @@ -225,9 +225,9 @@ async def _use_client(self) -> SearchClient:
],
vectorizers=[
AzureOpenAIVectorizer(
name="vectorizer-default",
vectorizer_name="vectorizer-default",
# Without credentials specified, the database will use its system managed identity
azure_open_ai_parameters=AzureOpenAIParameters(
parameters=AzureOpenAIVectorizerParameters(
deployment_id=self._config.embedding_deployment,
model_name=self._config.embedding_model,
resource_uri=self._config.embedding_endpoint,
Expand Down

0 comments on commit f88ffdd

Please sign in to comment.