VectorPipeline
Bases: IDMixin
Pipeline that loads and processes vectors
Implements the Pipeline protocol.
| PARAMETER | DESCRIPTION |
|---|---|
vector_loader
|
Vector loader
TYPE:
|
vector_processor
|
Vector processor
TYPE:
|
show_progress
|
If True, show the progress with a spinner
TYPE:
|
id
property
| RETURNS | DESCRIPTION |
|---|---|
uuid.UUID
|
ID |
from_config
classmethod
Creates a vector pipeline from the configuration.
| PARAMETER | DESCRIPTION |
|---|---|
config
|
Configuration
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
VectorPipeline
|
Vector pipeline |
__call__
Runs the vector pipeline.
VectorPipelineConfig
Bases: pydantic.BaseModel
Configuration for the from_config class method of VectorPipeline
Create the configuration from a config file
- Use null instead of None
- Use false or true instead of False or True
Usage
You can create the configuration from a config file.
package: 'aviary'
name: 'VectorPipeline'
config:
plugins_dir_path: null
show_progress: true
vector_loader_config:
...
vector_processor_config:
...
| ATTRIBUTE | DESCRIPTION |
|---|---|
plugins_dir_path |
Path to the plugins directory - defaults to None
TYPE:
|
show_progress |
If True, show the progress with a spinner - defaults to True
TYPE:
|
vector_loader_config |
Configuration for the vector loader
TYPE:
|
vector_processor_config |
Configuration for the vector processor
TYPE:
|