Accumulate
Accumulates the value flowing through the connection into an internal attribute.
Basic Information
- Type:
haystack_integrations.testing.sample_components.accumulate.Accumulate
Inputs
| Parameter | Type | Default | Description |
|---|---|---|---|
| value | int |
Outputs
| Parameter | Type | Default | Description |
|---|---|---|---|
| value | int |
Overview
Work in Progress
Bear with us while we're working on adding pipeline examples and most common components connections.
Accumulates the value flowing through the connection into an internal attribute.
The sum function can be customized. Example of how to deal with serialization when some of the parameters are not directly serializable.
Usage Example
components:
Accumulate:
type: testing.sample_components.accumulate.Accumulate
init_parameters:
Parameters
Init Parameters
These are the parameters you can configure in Pipeline Builder:
| Parameter | Type | Default | Description |
|---|---|---|---|
| function | Optional[Callable] | None | the function to use to accumulate the values. The function must take exactly two values. If it's a callable, it's used as it is. If it's a string, the component will look for it in sys.modules and import it at need. This is also a parameter. |
Run Method Parameters
These are the parameters you can configure for the component's run() method. This means you can pass these parameters at query time through the API, in Playground, or when running a job. For details, see Modify Pipeline Parameters at Query Time.
| Parameter | Type | Default | Description |
|---|---|---|---|
| value | int |
Was this page helpful?