My PDF is just a normal PDF file. Dont know why I get it.
This is the response:
“value”:"The file contains binary data which couldn’t be decoded as text, indicating it might be a non-text-based file, such as an Excel or PDF document. I’ll try to read it as an Excel file next to see if this works
If you’re using Code Interpreter you’re not actually using GPT/Assistant services to read the PDF. You are passing the responsibility to a Python library to read it for you.
PDFs are not text, even if they are they aren’t easy to read. For simplicity it’s easier to think of them as images that sometimes have the text available on a row-by-row basis. Ever had difficulties copy and pasting text in a PDF? Highlighting gets all weird? Yeah. Shit is messy.
You need to use retrieval if your objective is to discuss the content.
Otherwise you can convert it to a text and then paste the content in the chat. This is what retrieval does in the background (with some additional work to hand-pick the (hopefully) most relevant entries).
The documentation is meant for GPTs, there’s definitely better guides found around. Don’t give up on it!