Hello everyone, I’m having an hard time setting up an assistant that accepts a pdf or an excel.
ChatGPT allows me to upload an excel or pdf file and extract data to fill fields of a structured json, I don’t understand how to make an assistant (or a direct call to the API) with the same ability.
Thank you in advance!
does it really need to use assistants-api? is your excel file formatted to look like an invoice? one possible, maybe easiest way, is to convert both pdf and excel files to images, generate an invoice reader system prompt, tweak to use your own structured output schema and use chat completions api. you can try and test it from the playground.
That’s a good idea actually, how can i convert a pdf/excel in an image in php?
for pdf, you can use imagemagick if it is installed. not sure about excel though.