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:
files = client_gemini.files.upload(file=[file_exercises, file_solutions], config={'display_name': ["exercises", "solutions"]})
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”.