haive.core.engine.document.loaders.sources.implementation¶
Enhanced Source Implementation for Document Engine.
This module provides enhanced source type implementations adapted from the original project_notes with proper integration into the Haive document engine framework.
Classes¶
Source for cloud storage. |
|
Credential information for authenticated sources. |
|
Manages credentials for various source types. |
|
Types of credentials supported. |
|
Source for database connections. |
|
Enhanced base class for document sources. |
|
Source for local directories. |
|
Source for local files. |
|
Registry for managing source types. |
|
Enhanced source type classification. |
|
Source for direct text input. |
|
Source for web URLs. |
Module Contents¶
- class haive.core.engine.document.loaders.sources.implementation.CloudStorageSource(/, **data)[source]¶
Bases:
EnhancedSourceSource for cloud storage.
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.sources.implementation.Credential(/, **data)[source]¶
Bases:
pydantic.BaseModelCredential information for authenticated 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.sources.implementation.CredentialManager[source]¶
Manages credentials for various source types.
Init .
- Returns:
Add return description]
- Return type:
[TODO
- add_credential(source_id, credential)[source]¶
Add a credential for a source.
- Parameters:
source_id (str)
credential (Credential)
- Return type:
None
- get_credential(source_id)[source]¶
Get credential for a source.
- Parameters:
source_id (str)
- Return type:
Credential | None
- class haive.core.engine.document.loaders.sources.implementation.CredentialType[source]¶
-
Types of credentials supported.
Initialize self. See help(type(self)) for accurate signature.
- class haive.core.engine.document.loaders.sources.implementation.DatabaseSource(/, **data)[source]¶
Bases:
EnhancedSourceSource for database connections.
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.sources.implementation.EnhancedSource(/, **data)[source]¶
Bases:
pydantic.BaseModel,abc.ABCEnhanced base class for 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)
- abstractmethod get_confidence_score(path)[source]¶
Get confidence score (0.0-1.0) for handling this path.
- class haive.core.engine.document.loaders.sources.implementation.LocalDirectorySource(/, **data)[source]¶
Bases:
EnhancedSourceSource for local directories.
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.sources.implementation.LocalFileSource(/, **data)[source]¶
Bases:
EnhancedSourceSource for local 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.sources.implementation.SourceRegistry[source]¶
Registry for managing source types.
Init .
- Returns:
Add return description]
- Return type:
[TODO
- find_all_sources(path)[source]¶
Find all sources that can handle a path with confidence scores.
- Parameters:
path (str)
- Return type:
- find_best_source(path)[source]¶
Find the best source for a given path.
- Parameters:
path (str)
- Return type:
EnhancedSource | None
- register(source)[source]¶
Register a new source type.
- Parameters:
source (EnhancedSource)
- class haive.core.engine.document.loaders.sources.implementation.SourceType[source]¶
-
Enhanced source type classification.
Initialize self. See help(type(self)) for accurate signature.
- class haive.core.engine.document.loaders.sources.implementation.TextInputSource(/, **data)[source]¶
Bases:
EnhancedSourceSource for direct text input.
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.sources.implementation.WebUrlSource(/, **data)[source]¶
Bases:
EnhancedSourceSource for web URLs.
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)