Skip to content

Commit bfcbabc

Browse files
authored
tut 30 - update for HF API components (#459)
* tut 30 - update installation cmd for HF API components * also import * fix
1 parent e5ab74f commit bfcbabc

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

index.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ completion_time = "15 min"
4848
created_at = 2024-01-30
4949
dependencies = [
5050
"sentence-transformers>=4.1.0",
51-
"huggingface_hub>=0.23.0",
52-
"transformers",
51+
"huggingface-api-haystack",
5352
"markdown-it-py",
5453
"mdit_plain",
5554
"pypdf",

tutorials/30_File_Type_Preprocessing_Index_Pipeline.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
"outputs": [],
5858
"source": [
5959
"%%bash\n",
60-
"pip install haystack-ai\n",
61-
"pip install \"sentence-transformers>=4.1.0\" \"huggingface_hub>=0.23.0\"\n",
60+
"pip install haystack-ai huggingface-api-haystack\n",
61+
"pip install \"sentence-transformers>=4.1.0\"\n",
6262
"pip install markdown-it-py mdit_plain pypdf\n",
6363
"pip install gdown"
6464
]
@@ -390,7 +390,7 @@
390390
"from haystack.components.retrievers.in_memory import InMemoryEmbeddingRetriever\n",
391391
"from haystack.components.builders import ChatPromptBuilder\n",
392392
"from haystack.dataclasses import ChatMessage\n",
393-
"from haystack.components.generators.chat import HuggingFaceAPIChatGenerator\n",
393+
"from haystack_integrations.components.generators.huggingface_api import HuggingFaceAPIChatGenerator\n",
394394
"\n",
395395
"template = [\n",
396396
" ChatMessage.from_user(\n",

0 commit comments

Comments
 (0)