DataSource¶
Structure Class¶
DataSource
dataclass
¶
Contains details about a data source.
Attributes¶
data_deletion_policy
class-attribute
instance-attribute
¶
data_deletion_policy: DataDeletionPolicy | None = None
The data deletion policy for the data source.
data_source_configuration
instance-attribute
¶
data_source_configuration: DataSourceConfiguration
The connection configuration for the data source.
description
class-attribute
instance-attribute
¶
description: str | None = None
The description of the data source.
failure_reasons
class-attribute
instance-attribute
¶
failure_reasons: list[str] | None = None
The detailed reasons on the failure to delete a data source.
knowledge_base_id
instance-attribute
¶
knowledge_base_id: str
The unique identifier of the knowledge base to which the data source belongs.
server_side_encryption_configuration
class-attribute
instance-attribute
¶
server_side_encryption_configuration: ServerSideEncryptionConfiguration | None = None
Contains details about the configuration of the server-side encryption.
status
instance-attribute
¶
status: DataSourceStatus
The status of the data source. The following statuses are possible:
-
Available -- The data source has been created and is ready for ingestion into the knowledge base.
-
Deleting -- The data source is being deleted.
updated_at
instance-attribute
¶
updated_at: datetime
The time at which the data source was last updated.
vector_ingestion_configuration
class-attribute
instance-attribute
¶
vector_ingestion_configuration: VectorIngestionConfiguration | None = None
Contains details about how to ingest the documents in the data source.