haystack icon indicating copy to clipboard operation
haystack copied to clipboard

`FileTypeRouter` should get mime type from `ByteStream` mime type attribute instead of `meta

Open wochinge opened this issue 1 year ago • 0 comments

Describe the bug Looking at this code here:

The ByteStream class has an attribute mime_type. We should rather using this than using the metadata for this.

Error message None

Expected behavior Use mime_type field instead of meta (or make this configurable)

Additional context Add any other context about the problem here, like document types / preprocessing steps / settings of reader etc.

To Reproduce Steps to reproduce the behavior

FAQ Check

System:

  • OS:
  • GPU/CPU:
  • Haystack version (commit or version number): 2
  • DocumentStore:
  • Reader:
  • Retriever:

wochinge avatar May 02 '24 16:05 wochinge