diff --git a/index.toml b/index.toml index 17c9618..8cd3c30 100644 --- a/index.toml +++ b/index.toml @@ -99,7 +99,7 @@ notebook = "34_Extractive_QA_Pipeline.ipynb" aliases = [] completion_time = "10 min" created_at = 2024-02-09 -dependencies = ["accelerate", "sentence-transformers", "datasets"] +dependencies = ["accelerate", "sentence-transformers", "datasets", "transformers<5"] [[tutorial]] title = "Evaluating RAG Pipelines" @@ -169,7 +169,7 @@ notebook = "41_Query_Classification_with_TransformersTextRouter_and_Transformers aliases = [] completion_time = "25 min" created_at = 2024-10-15 -dependencies = ["sentence-transformers>=4.1.0", "gradio", "torch", "sentencepiece", "datasets", "accelerate"] +dependencies = ["sentence-transformers>=4.1.0", "gradio", "torch", "sentencepiece", "datasets", "accelerate", "transformers<5"] [[tutorial]] title = "Retrieving a Context Window Around a Sentence" @@ -214,7 +214,7 @@ notebook = "44_Creating_Custom_SuperComponents.ipynb" aliases = [] completion_time = "20 min" created_at = 2025-04-22 -dependencies = ["sentence-transformers>=4.1.0", "datasets", "accelerate"] +dependencies = ["sentence-transformers>=4.1.0", "datasets", "accelerate", "transformers<5"] [[tutorial]] title = "Creating a Multi-Agent System with Haystack" diff --git a/tutorials/34_Extractive_QA_Pipeline.ipynb b/tutorials/34_Extractive_QA_Pipeline.ipynb index e594bd9..0d6cf15 100644 --- a/tutorials/34_Extractive_QA_Pipeline.ipynb +++ b/tutorials/34_Extractive_QA_Pipeline.ipynb @@ -60,7 +60,7 @@ "source": [ "%%bash\n", "\n", - "pip install haystack-ai accelerate \"sentence-transformers>=4.1.0\" \"datasets>=2.6.1\"" + "pip install haystack-ai accelerate \"sentence-transformers>=4.1.0\" \"datasets>=2.6.1\" \"transformers<5\"" ] }, { @@ -659,4 +659,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} \ No newline at end of file +} diff --git a/tutorials/41_Query_Classification_with_TransformersTextRouter_and_TransformersZeroShotTextRouter.ipynb b/tutorials/41_Query_Classification_with_TransformersTextRouter_and_TransformersZeroShotTextRouter.ipynb index 98a4d39..e79dc2b 100644 --- a/tutorials/41_Query_Classification_with_TransformersTextRouter_and_TransformersZeroShotTextRouter.ipynb +++ b/tutorials/41_Query_Classification_with_TransformersTextRouter_and_TransformersZeroShotTextRouter.ipynb @@ -68,7 +68,7 @@ "%%bash\n", "\n", "pip install --upgrade pip\n", - "pip install haystack-ai torch sentencepiece datasets sentence-transformers" + "pip install haystack-ai torch sentencepiece datasets sentence-transformers \"transformers<5\"" ] }, { @@ -2704,4 +2704,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} \ No newline at end of file +} diff --git a/tutorials/44_Creating_Custom_SuperComponents.ipynb b/tutorials/44_Creating_Custom_SuperComponents.ipynb index 553b3c8..b298399 100644 --- a/tutorials/44_Creating_Custom_SuperComponents.ipynb +++ b/tutorials/44_Creating_Custom_SuperComponents.ipynb @@ -56,7 +56,7 @@ "%%bash\n", "\n", "pip install haystack-ai\n", - "pip install \"sentence-transformers>=4.1.0\" datasets transformers[torch,sentencepiece]" + "pip install \"sentence-transformers>=4.1.0\" datasets \"transformers[torch,sentencepiece]<5\"" ] }, { @@ -851,4 +851,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} \ No newline at end of file +}