haive.core.engine.document.loaders.source_base¶
Base classes for document sources.
This module provides base classes for different types of document sources. Sources represent the location/type of documents, while loaders handle the actual loading.
Classes¶
Abstract base class for all document sources. |
|
Base class for cloud storage sources. |
|
Base class for database sources. |
|
Source for directory of files. |
|
Base class for local file sources. |
|
Base class for remote sources with credential support. |
Module Contents¶
- class haive.core.engine.document.loaders.source_base.BaseSource(/, **data)[source]¶
Bases:
pydantic.BaseModel,abc.ABCAbstract base class for all document sources.
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.
- Parameters:
data (Any)
- class haive.core.engine.document.loaders.source_base.CloudSource(/, **data)[source]¶
Bases:
RemoteSourceBase class for cloud storage sources.
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.
- Parameters:
data (Any)
- class haive.core.engine.document.loaders.source_base.DatabaseSource(/, **data)[source]¶
Bases:
BaseSource,haive.core.common.mixins.secure_config.SecureConfigMixinBase class for database sources.
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.
- Parameters:
data (Any)
- class haive.core.engine.document.loaders.source_base.DirectorySource(/, **data)[source]¶
Bases:
LocalSourceSource for directory of files.
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.
- Parameters:
data (Any)
- class haive.core.engine.document.loaders.source_base.LocalSource(/, **data)[source]¶
Bases:
BaseSourceBase class for local file sources.
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.
- Parameters:
data (Any)
- class haive.core.engine.document.loaders.source_base.RemoteSource(/, **data)[source]¶
Bases:
BaseSource,haive.core.common.mixins.secure_config.SecureConfigMixinBase class for remote sources with credential support.
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.
- Parameters:
data (Any)