AzureAISearchDataSource Class

Azure AI Search data source.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Inheritance
AzureAISearchDataSource

Constructor

AzureAISearchDataSource(*, type: Literal['azure_search'] = 'azure_search', parameters: Annotated[dict, AzureAISearchDataSourceParameters], **extra_data: Any)

Keyword-Only Parameters

Name Description
type
Default value: azure_search
parameters
Required

Methods

from_azure_ai_search_settings

Create an instance from Azure AI Search settings.

from_azure_ai_search_settings

Create an instance from Azure AI Search settings.

from_azure_ai_search_settings(azure_ai_search_settings: AzureAISearchSettings, **kwargs: Any)

Parameters

Name Description
azure_ai_search_settings
Required

Attributes

model_computed_fields

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_config: ClassVar[ConfigDict] = {'alias_generator': AliasGenerator(alias=None, validation_alias=<function to_camel>, serialization_alias=<function to_snake>), 'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True, 'use_enum_values': True, 'validate_assignment': True}

model_fields

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.fields from Pydantic V1.

model_fields: ClassVar[Dict[str, FieldInfo]] = {'parameters': FieldInfo(annotation=dict, required=True, alias_priority=1, validation_alias='parameters', serialization_alias='parameters', metadata=[<class 'semantic_kernel.connectors.ai.open_ai.prompt_execution_settings.azure_chat_prompt_execution_settings.AzureAISearchDataSourceParameters'>]), 'type': FieldInfo(annotation=Literal['azure_search'], required=False, default='azure_search', alias_priority=1, validation_alias='type', serialization_alias='type')}

parameters

parameters: Annotated[dict, AzureAISearchDataSourceParameters]

type

type: Literal['azure_search']