Skip to content

Commit 7c7e439

Browse files
Add SuperComponent tutorial (#396)
* add draft notebook * install dependencies, simplify, include outputs * Update the notebook * remove the `haystack_2` field from index.toml * Add accelerate dependency for tests * add quote signs * update pip install to latest release * Update created_at in index.toml --------- Co-authored-by: bilgeyucel <[email protected]>
1 parent 3a7d267 commit 7c7e439

File tree

3 files changed

+3607
-0
lines changed

3 files changed

+3607
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ To contribute to the tutorials, please check out our [Contributing Guidelines](.
3232
| [Query Classification with TransformersTextRouter](./tutorials/41_Query_Classification_with_TransformersTextRouter_and_TransformersZeroShotTextRouter.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/deepset-ai/haystack-tutorials/blob/main/tutorials/41_Query_Classification_with_TransformersTextRouter_and_TransformersZeroShotTextRouter.ipynb) |
3333
| [Retrieving a Context Window Around a Sentence](./tutorials/42_Sentence_Window_Retriever.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/deepset-ai/haystack-tutorials/blob/main/tutorials/42_Sentence_Window_Retriever.ipynb) | |
3434
| [Build a Tool-Calling Agent](./tutorials/43_Building_a_Tool_Calling_Agent.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/deepset-ai/haystack-tutorials/blob/main/tutorials/43_Building_a_Tool_Calling_Agent.ipynb) | |
35+
| [Creating Custom SuperComponents](./tutorials/44_Creating_Custom_SuperComponents.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/deepset-ai/haystack-tutorials/blob/main/tutorials/44_Creating_Custom_SuperComponents.ipynb) | |

index.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,3 +206,15 @@ completion_time = "10 min"
206206
created_at = 2025-04-03
207207
dependencies = ["docstring-parser", "trafilatura"]
208208
featured = true
209+
210+
[[tutorial]]
211+
title = "Creating Custom SuperComponents"
212+
description = "Learn how to use the @super_component decorator to create custom SuperComponents with input and output mappings"
213+
level = "intermediate"
214+
weight = 8
215+
notebook = "44_Creating_Custom_SuperComponents.ipynb"
216+
aliases = []
217+
completion_time = "20 min"
218+
created_at = 2025-04-22
219+
dependencies = ["sentence-transformers>=3.0.0", "datasets", "accelerate"]
220+
featured = true

0 commit comments

Comments
 (0)