Import a Pipeline

Import your Haystack pipeline into deepset Cloud to visualize it and make further updates.

Prerequisites

You must have a Haystack pipeline in the YAML format. You can use the following code to serialize your pipeline:

from haystack import Pipeline

pipeline = Pipeline()
with open("/path/to/save/the/pipeline.yaml", "w") as file:
    pipeline.dump(file)

For more information, see Haystack documentation.

Import Your Pipeline

  1. Log in to deepset Cloud and click Pipeline Templates in the navigation.

  2. On the Templates page, choose Create empty pipeline.

    The Create empty pipeline button on the Pipeline templates page
  3. Give your pipeline a name and click Create Pipeline. You're redirected to Pipeline Builder.

  4. Switch to the YAML view using the code switch.

    The code switch button
  5. Make sure you're in the right tab (Indexing for indexing pipelines or Query for query pipelines), copy your pipeline YAML, and paste it in the code editor.

  6. Use the code switch to change to the canvas view and see your pipeline visualization.

What's Next

  • To deploy your pipeline in deepset Cloud, add the input and output components. For details, see Inputs and Outputs.

  • Once you're done updating your pipeline, you can export it to YAML or Python using the Export code button.

    The export code button next to the code switch