-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor!: Remove routing from DocumentLanguageClassifier and rename …
…TextLanguageClassifier (#6307) * remove routing from DocumentLanguageClassifier * fix MetadataRouter typo
- Loading branch information
1 parent
5295b40
commit 08ec492
Showing
7 changed files
with
47 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
from haystack.preview.components.classifiers.document_language_classifier import DocumentLanguageClassifier | ||
from haystack.preview.components.classifiers.text_language_classifier import TextLanguageClassifier | ||
|
||
__all__ = ["DocumentLanguageClassifier", "TextLanguageClassifier"] | ||
__all__ = ["DocumentLanguageClassifier"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
from haystack.preview.components.routers.file_type_router import FileTypeRouter | ||
from haystack.preview.components.routers.metadata_router import MetadataRouter | ||
from haystack.preview.components.routers.text_language_router import TextLanguageRouter | ||
|
||
__all__ = ["FileTypeRouter", "MetadataRouter"] | ||
__all__ = ["FileTypeRouter", "MetadataRouter", "TextLanguageRouter"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
releasenotes/notes/separate-classifiers-from-routers-96a37c76820385d6.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
preview: | ||
- | | ||
Remove routing functionality from DocumentLanguageClassifier and rename TextLanguageClassifer to TextLanguageRouter. | ||
Classifiers in Haystack 2.x change metadata values but do not route inputs to multiple outputs. The latter is reserved for routers. | ||
Use DocumentLanguageClassifier in combination with MetaDataRouter to classify and route documents in indexing pipelines. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters