haystack
haystack copied to clipboard
Add meta field to `FileTypeRouter`
Is your feature request related to a problem? Please describe.
When a preprocessing pipeline starts with FileTypeRouter
, which is usually the case when we use multiple converters, it's not possible to provide meta information for files
Describe the solution you'd like
Let's add meta
input to the FileTypeRouter
and this component can use ByteStream
dataclass to pass this info to converters.
Describe alternatives you've considered
Having separate metadata outputs for each file type: router.text/plain_meta
Additional context The same issue opened a year ago #6392
cc: @silvanocerza