Skip to content

deps(deps): bump azure-search-documents from 11.6.0b4 to 11.6.0b5 #31

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

Merged
merged 3 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions deploy_ai_search/ai_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
WebApiSkill,
AzureOpenAIEmbeddingSkill,
AzureOpenAIVectorizer,
AzureOpenAIParameters,
AzureOpenAIVectorizerParameters,
SearchIndexer,
SearchIndexerSkillset,
SearchIndexerDataContainer,
Expand All @@ -24,7 +24,7 @@
InputFieldMappingEntry,
SynonymMap,
SplitSkill,
SearchIndexerIndexProjections,
SearchIndexerIndexProjection,
BlobIndexerParsingMode,
)
from azure.core.exceptions import HttpResponseError
Expand Down Expand Up @@ -146,7 +146,7 @@ def get_indexer(self) -> SearchIndexer:

return None

def get_index_projections(self) -> SearchIndexerIndexProjections:
def get_index_projections(self) -> SearchIndexerIndexProjection:
"""Get the index projections for the indexer."""

return None
Expand Down Expand Up @@ -353,9 +353,9 @@ def get_vector_skill(
name="Vector Skill",
description="Skill to generate embeddings",
context=context,
deployment_id=self.environment.open_ai_embedding_deployment,
deployment_name=self.environment.open_ai_embedding_deployment,
model_name=self.environment.open_ai_embedding_model,
resource_uri=self.environment.open_ai_endpoint,
resource_url=self.environment.open_ai_endpoint,
inputs=embedding_skill_inputs,
outputs=embedding_skill_outputs,
dimensions=self.environment.open_ai_embedding_dimensions,
Expand Down Expand Up @@ -430,10 +430,10 @@ def get_vector_search(self) -> VectorSearch:
VectorSearch: The vector search configuration
"""

open_ai_params = AzureOpenAIParameters(
resource_uri=self.environment.open_ai_endpoint,
open_ai_params = AzureOpenAIVectorizerParameters(
resource_url=self.environment.open_ai_endpoint,
model_name=self.environment.open_ai_embedding_model,
deployment_id=self.environment.open_ai_embedding_deployment,
deployment_name=self.environment.open_ai_embedding_deployment,
)

if self.environment.identity_type == IdentityType.KEY:
Expand All @@ -451,13 +451,13 @@ def get_vector_search(self) -> VectorSearch:
VectorSearchProfile(
name=self.vector_search_profile_name,
algorithm_configuration_name=self.algorithm_name,
vectorizer=self.vectorizer_name,
vectorizer_name=self.vectorizer_name,
)
],
vectorizers=[
AzureOpenAIVectorizer(
name=self.vectorizer_name,
azure_open_ai_parameters=open_ai_params,
vectorizer_name=self.vectorizer_name,
parameters=open_ai_params,
),
],
)
Expand Down Expand Up @@ -497,7 +497,7 @@ def deploy_skillset(self):
name=self.skillset_name,
description="Skillset to chunk documents and generating embeddings",
skills=skills,
index_projections=index_projections,
index_projection=index_projections,
)

self._search_indexer_client.create_or_update_skillset(skillset)
Expand Down
2 changes: 1 addition & 1 deletion deploy_ai_search/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def ai_search_user_assigned_identity(self) -> SearchIndexerDataUserAssignedIdent
SearchIndexerDataUserAssignedIdentity: The ai search user assigned identity
"""
user_assigned_identity = SearchIndexerDataUserAssignedIdentity(
user_assigned_identity=os.environ.get(
resource_id=os.environ.get(
"AIService__AzureSearchOptions__Identity__FQName"
)
)
Expand Down
6 changes: 3 additions & 3 deletions deploy_ai_search/rag_documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
FieldMapping,
IndexingParameters,
IndexingParametersConfiguration,
SearchIndexerIndexProjections,
SearchIndexerIndexProjection,
SearchIndexerIndexProjectionSelector,
SearchIndexerIndexProjectionsParameters,
IndexProjectionMode,
Expand Down Expand Up @@ -199,7 +199,7 @@ def get_skills(self) -> list:

return skills

def get_index_projections(self) -> SearchIndexerIndexProjections:
def get_index_projections(self) -> SearchIndexerIndexProjection:
"""This function returns the index projections for rag document."""
mappings = [
InputFieldMappingEntry(name="Chunk", source="/document/pages/*/chunk"),
Expand Down Expand Up @@ -241,7 +241,7 @@ def get_index_projections(self) -> SearchIndexerIndexProjections:
]
)

index_projections = SearchIndexerIndexProjections(
index_projections = SearchIndexerIndexProjection(
selectors=[
SearchIndexerIndexProjectionSelector(
target_index_name=self.index_name,
Expand Down
2 changes: 1 addition & 1 deletion deploy_ai_search/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
python-dotenv
azure-search-documents==11.6.0b4
azure-search-documents==11.6.0b5
azure-storage-blob
azure-identity
azure-mgmt-web
2 changes: 1 addition & 1 deletion text_2_sql/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
semantic-kernel==1.9.0
azure-search
azure-search-documents==11.6.0b4
azure-search-documents==11.6.0b5
aioodbc
azure-identity
python-dotenv
Loading