Skip to content

Commit 8952db3

Browse files
committed
docs: clarify language classification step in tutorial 32
1 parent e57ef0c commit 8952db3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tutorials/32_Classifying_Documents_and_Queries_by_Language.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,11 @@
159159
"id": "d9fyP-ThRTue"
160160
},
161161
"source": [
162+
"In this step, we configure the language classification component that will detect and route documents based on their language\n",
163+
"\n",
162164
"The `DocumentLanguageClassifier` takes a list of languages. The `MetadataRouter` needs a dictionary of rules. These rules specify which node to route a document to (in this case, which language-specific `DocumentWriter`), based on the document's metadata.\n",
163165
"\n",
164-
"The keys of the dictionary are the names of the output connections, and the values are dictionaries that follow the format of [filtering expressions in Haystack.](https://docs.haystack.deepset.ai/docs/metadata-filtering).\n"
166+
"The keys of the dictionary are the names of the output connections, and the values are dictionaries that follow the format of [filtering expressions in Haystack.](https://docs.haystack.deepset.ai/docs/metadata-filtering)."
165167
]
166168
},
167169
{

0 commit comments

Comments
 (0)