diff --git a/index.toml b/index.toml index 2473a6f..4a2160c 100644 --- a/index.toml +++ b/index.toml @@ -75,7 +75,7 @@ notebook = "32_Classifying_Documents_and_Queries_by_Language.ipynb" aliases = [] completion_time = "15 min" created_at = 2024-02-06 -dependencies = ["langdetect"] +dependencies = ["langdetect-haystack"] [[tutorial]] title = "Creating a Hybrid Retrieval Pipeline" diff --git a/tutorials/32_Classifying_Documents_and_Queries_by_Language.ipynb b/tutorials/32_Classifying_Documents_and_Queries_by_Language.ipynb index 45e9a58..fc01abe 100644 --- a/tutorials/32_Classifying_Documents_and_Queries_by_Language.ipynb +++ b/tutorials/32_Classifying_Documents_and_Queries_by_Language.ipynb @@ -56,7 +56,7 @@ "%%bash\n", "\n", "pip install haystack-ai\n", - "pip install langdetect" + "pip install langdetect-haystack" ] }, { @@ -91,7 +91,7 @@ "source": [ "from haystack import Document, Pipeline\n", "from haystack.document_stores.in_memory import InMemoryDocumentStore\n", - "from haystack.components.classifiers import DocumentLanguageClassifier\n", + "from haystack_integrations.components.classifiers.langdetect import DocumentLanguageClassifier\n", "from haystack.components.routers import MetadataRouter\n", "from haystack.components.writers import DocumentWriter\n", "\n", @@ -389,7 +389,7 @@ "from haystack.components.builders import ChatPromptBuilder\n", "from haystack.components.generators.chat import OpenAIChatGenerator\n", "from haystack.dataclasses import ChatMessage\n", - "from haystack.components.routers import TextLanguageRouter\n", + "from haystack_integrations.components.routers.langdetect import TextLanguageRouter\n", "\n", "prompt_template = [\n", " ChatMessage.from_user(\n",