Skip to main content

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,
    ParallelAiSearchNode,
)

pipeline = Pipeline.fetch(id="698d6768a07ed4bec88d7aed")

pipeline.nodes.clear()

string_input = InputNode(node_name='query', input_type='string')

search_node = ParallelAiSearchNode(
    node_name='search',
    objective=string_input.text,  # string -> string (OK)
    max_results=string_input.text,  # string -> int32  (WARNING)
)

output_node = OutputNode(
    node_name='result',
    output_type='string',
    value=search_node.formatted_text,  # string -> string (OK)
)

pipeline.nodes = [string_input, search_node, output_node]
pipeline.save()
Source: examples/pipelines/type_warnings_parallel_search.py in the SDK repo.