deepset-ai / hayhooks

Deploy Haystack pipelines behind a REST Api.
https://haystack.deepset.ai
Apache License 2.0
30 stars 8 forks source link

Sending a file via ByteStream #19

Open jacksteussie opened 1 month ago

jacksteussie commented 1 month ago

I have been trying to do the above, but can't find any easy-to-do way to go about this. My thinking as to the easiest way to do this would be to use the to_string function of the ByteStream class to serialize the bytes to a string using the proper encoding format, send it and the encoding format label over to hayhooks endpoint, and then have the api convert this string back into a ByteStream object. Would this be potentially more easily done as a custom component, or am I maybe overthinking this process and missing a simpler solution? Thanks!~