I have to files. A pdf with exercises and a pdf with solutions.
I would like to send both files in one call.
So, I’d give one file the name “exercises” and the other “solutions” and would include that logic in the prompt.
Something like this:
Why not just append it to one file?
I want to extract questions from the file with their solutions. The solutions are at the very end of the document. When I send it as one file, gemini gets confused and extracts the questions from the solution part too instead of mapping it to the exercises… and yes, the pdf is rather clear when it comes to solutions as on every solution pages it says SOLUTIONS. And also the chapter begins with the title “Solutions”.
Yes, you can add multiple inlineData parts into your request. Depending on the size of files there is no need to use the File API. But there are constraints, like max. 20 MB file size, etc.