Allow setting metadata for ByteStream when created from file or from string #6217
Labels
2.x
Related to Haystack v2.0
good first issue
Good for newcomers
P2
Medium priority, add to the next sprint if no P1 available
Milestone
Right now
ByteStream
supports metadata, but only when initialized directly. On the contrary,from_file_path
andfrom_string
don't let users set any metadata, and on top of that the class is frozen, so the metadata cannot be added after creation.We should:
ByteStream
metadata
parameter to the two methods.The text was updated successfully, but these errors were encountered: