CompositeLoader
Vector loader that composes multiple vector loaders
Notes
- The vector loaders are called concurrently depending on the maximum number of threads
- If the maximum number of threads is 1, the vector loaders are composed vertically, i.e., in sequence
- If the maximum number of threads is greater than 1, the vector loaders are composed horizontally, i.e., in parallel
Implements the VectorLoader protocol.
| PARAMETER | DESCRIPTION |
|---|---|
vector_loaders
|
Vector loaders
TYPE:
|
max_num_threads
|
Maximum number of threads
TYPE:
|
from_config
classmethod
Creates a composite loader from the configuration.
| PARAMETER | DESCRIPTION |
|---|---|
config
|
Configuration
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
CompositeLoader
|
Composite loader |
CompositeLoaderConfig
Bases: pydantic.BaseModel
Configuration for the from_config class method of CompositeLoader
Create the configuration from a config file
- Use null instead of None
Example
You can create the configuration from a config file.
package: 'aviary'
name: 'CompositeLoader'
config:
vector_loader_configs:
- ...
...
max_num_threads: null
| ATTRIBUTE | DESCRIPTION |
|---|---|
vector_loader_configs |
Configurations of the vector loaders
TYPE:
|
max_num_threads |
Maximum number of threads - defaults to None
TYPE:
|