View Source TxtaiEx.Workflow (txtai_ex v0.1.1)
txtai workflow instance for interfacing with a remote txtai service via REST API calls, providing functionality for executing named workflows with specified elements.
Summary
Functions
Executes a named workflow using elements as input.
Functions
Executes a named workflow using elements as input.
Parameters
- api: The API struct containing configuration for URL and token.
- name: The name of the workflow to execute.
- elements: A list of elements (e.g., texts, images) to process through the workflow.
Returns
- on success, where
processed_elements
is a list of elements processed by the workflow. - on failure.