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

Adding Custom Code

Add custom Python code to enhance your pipelines.


About This Task

You can add custom Python code to your pipelines in two ways:

  • With a Code component in Builder (recommended): Write your component code directly in Builder and test it right away. You can use it in a single pipeline or save it as a custom component to share with your workspace or organization.
  • With a GitHub template: Write your component in your IDE using a GitHub template and upload it to Haystack Platform. Best if you need external pip dependencies, full version control, or CI/CD testing.