mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-07-31 12:48:43 +00:00

* fix all eof * fix test * fix test * fix test * typo * fix sample * fix sample * add logs * fix page_dynamic_result.txt
1004 B
1004 B
Module file_type
FileTypeClassifier
class FileTypeClassifier(BaseComponent)
Route files in an Indexing Pipeline to corresponding file converters.
FileTypeClassifier.__init__
def __init__(supported_types: List[str] = DEFAULT_TYPES)
Node that sends out files on a different output edge depending on their extension.
Arguments:
supported_types
: The file types that this node can distinguish between. The default values are:txt
,pdf
,md
,docx
, andhtml
. Lists with duplicate elements are not allowed.
FileTypeClassifier.run
def run(file_paths: Union[Path, List[Path], str, List[str], List[Union[Path, str]]])
Sends out files on a different output edge depending on their extension.
Arguments:
file_paths
: paths to route on different edges.