mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-07-23 00:42:28 +00:00

* Update pydoc-markdown-file-classifier.yml * Add latest docstring and tutorial changes * Prevent wrapping DataParallel in second DataParallel (#1855) * Prevent wrapping DataParallel in second DataParallel * Add latest docstring and tutorial changes Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Create v1.0 docs (#1862) * Update pydoc-markdown-file-classifier.yml * Add latest docstring and tutorial changes * Rebase and apply change to v1.0 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: bogdankostic <bogdankostic@web.de>
22 lines
399 B
Markdown
22 lines
399 B
Markdown
<a name="file_type"></a>
|
|
# Module file\_type
|
|
|
|
<a name="file_type.FileTypeClassifier"></a>
|
|
## FileTypeClassifier
|
|
|
|
```python
|
|
class FileTypeClassifier(BaseComponent)
|
|
```
|
|
|
|
Route files in an Indexing Pipeline to corresponding file converters.
|
|
|
|
<a name="file_type.FileTypeClassifier.run"></a>
|
|
#### run
|
|
|
|
```python
|
|
| run(file_paths: Union[Path, List[Path]])
|
|
```
|
|
|
|
Return the output based on file extension
|
|
|