I noticed that ChatGPT-4 accepts pdf upload and can use the pdf to answer questions I have. I'm having trouble finding the right endpoint to hit that will accept my file input. I have looked at https://platform.openai.com/docs/api-reference/chat/create but there is no file parameter.
I found knowledge retrieval https://platform.openai.com/docs/assistants/tools/knowledge-retrieval , but I'm not sure if there's a better alternative that doesn't cost storage $ since I only want the document to be used for a single query.
What's the 'right' way to do this?