AzureCosmosDBDataSourceParameters Class
Azure Cosmos DB data source parameters.
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
-
AzureCosmosDBDataSourceParameters
Constructor
AzureCosmosDBDataSourceParameters(*, indexName: str, indexLanguage: str | None = None, fieldsMapping: DataSourceFieldsMapping | None = None, inScope: bool | None = True, topNDocuments: int | None = 5, semanticConfiguration: str | None = None, roleInformation: str | None = None, filter: str | None = None, strictness: int = 3, embeddingDependency: AzureEmbeddingDependency | None = None, authentication: ConnectionStringAuthentication | None = None, databaseName: str | None = None, containerName: str | None = None, embeddingDependencyType: AzureEmbeddingDependency | None = None, **extra_data: Any)
Keyword-Only Parameters
Name | Description |
---|---|
indexName
Required
|
|
indexLanguage
Required
|
|
fieldsMapping
Required
|
|
inScope
|
Default value: True
|
topNDocuments
|
Default value: 5
|
semanticConfiguration
Required
|
|
roleInformation
Required
|
|
filter
Required
|
|
strictness
|
Default value: 3
|
embeddingDependency
Required
|
|
authentication
Required
|
|
databaseName
Required
|
|
containerName
Required
|
|
embeddingDependencyType
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]] = {'authentication': FieldInfo(annotation=Union[ConnectionStringAuthentication, NoneType], required=False, default=None, alias_priority=1, validation_alias='authentication', serialization_alias='authentication'), 'container_name': FieldInfo(annotation=Union[str, NoneType], required=False, default=None, alias_priority=1, validation_alias='containerName', serialization_alias='container_name'), 'database_name': FieldInfo(annotation=Union[str, NoneType], required=False, default=None, alias_priority=1, validation_alias='databaseName', serialization_alias='database_name'), 'embedding_dependency': FieldInfo(annotation=Union[AzureEmbeddingDependency, NoneType], required=False, default=None, alias_priority=1, validation_alias='embeddingDependency', serialization_alias='embedding_dependency'), 'embedding_dependency_type': FieldInfo(annotation=Union[AzureEmbeddingDependency, NoneType], required=False, default=None, alias_priority=1, validation_alias='embeddingDependencyType', serialization_alias='embedding_dependency_type'), 'fields_mapping': FieldInfo(annotation=Union[DataSourceFieldsMapping, NoneType], required=False, default=None, alias_priority=1, validation_alias='fieldsMapping', serialization_alias='fields_mapping'), 'filter': FieldInfo(annotation=Union[str, NoneType], required=False, default=None, alias_priority=1, validation_alias='filter', serialization_alias='filter'), 'in_scope': FieldInfo(annotation=Union[bool, NoneType], required=False, default=True, alias_priority=1, validation_alias='inScope', serialization_alias='in_scope'), 'index_language': FieldInfo(annotation=Union[str, NoneType], required=False, default=None, alias_priority=1, validation_alias='indexLanguage', serialization_alias='index_language'), 'index_name': FieldInfo(annotation=str, required=True, alias_priority=1, validation_alias='indexName', serialization_alias='index_name'), 'role_information': FieldInfo(annotation=Union[str, NoneType], required=False, default=None, alias_priority=1, validation_alias='roleInformation', serialization_alias='role_information'), 'semantic_configuration': FieldInfo(annotation=Union[str, NoneType], required=False, default=None, alias_priority=1, validation_alias='semanticConfiguration', serialization_alias='semantic_configuration'), 'strictness': FieldInfo(annotation=int, required=False, default=3, alias_priority=1, validation_alias='strictness', serialization_alias='strictness'), 'top_n_documents': FieldInfo(annotation=Union[int, NoneType], required=False, default=5, alias_priority=1, validation_alias='topNDocuments', serialization_alias='top_n_documents')}
authentication
authentication: ConnectionStringAuthentication | None
container_name
container_name: str | None
database_name
database_name: str | None
embedding_dependency_type
embedding_dependency_type: AzureEmbeddingDependency | None