Documentation Index
Fetch the complete documentation index at: https://docs.vectorshift.ai/llms.txt
Use this file to discover all available pages before exploring further.
import vectorshift
from vectorshift.pipeline import Pipeline, InputNode, OutputNode, CreateListNode
pipeline = Pipeline.fetch(id="698d6768a07ed4bec88d7aed")
pipeline.nodes.clear()
pipeline.save()
string_input = InputNode(node_name='query', input_type='string')
string_input_2 = InputNode(node_name='query', input_type='string')
create_list_node = CreateListNode(list=[string_input.text, string_input_2.text])
output_node = OutputNode(
node_name='result',
output_type='string',
value=create_list_node.output, # string -> string (OK)
)
pipeline.nodes = [string_input, create_list_node, output_node]
pipeline.save()
Source: examples/pipelines/create_list_pipeline.py in the SDK repo.