Skip to main content
For the complete documentation index for agents and LLMs, see llms.txt.

Add a Custom Component

Learn how to create and upload custom components to Haystack Enterprise Platform.


About This Task

Recommended approach

For most use cases, we recommend using the Code component to add custom code to your pipelines. You write the code directly in Builder, test it, and save it as a custom component to share with your workspace or organization — no GitHub setup required. For details, see Add a Code Component.

Use the GitHub template to create a custom component if you need:

  • External pip dependencies not already available in Haystack Platform.
  • Full version control and CI/CD testing via GitHub Actions.

For details on which approach fits your use case, see Custom Components.

GPU Acceleration

By default, pipelines and indexes run on CPU. If your component will work better on a GPU, you can turn on GPU acceleration in the pipeline or index settings. For details, see GPU Acceleration.

Add a Custom Component

To add a custom component to Haystack Enterprise Platform:

  1. Create a custom component.
  2. Upload the custom component.