Closed Julian-Cao closed 2 months ago
For PDF input, it's recommend to pass the PDF directly to Gemini 1.5. You can see examples for document processing in this notebook:
For PDF input, it's recommend to pass the PDF directly to Gemini 1.5. You can see examples for document processing in this notebook:
I think it is not related to the method you deal with PDF file content. Suppose that if it is just a raw string not from PDF files, you put it to Gemini (AI Studio /Console / API), and it throws out a 400 error telling you that the param is invalid.
So what param is invalid? The long string? It worked in GPT3.5 and Claude. It should be something weird here.
What is more, there are some limits from Gemini when you put pdf files using GCS uri like size and page caps. It is not always right to use the native method to deal with PDF content. Sometime you will need to parse the file content by yourself.
File Name
gemini/getting-started/intro_gemini_1_5_pro.ipynb
What happened?
A bug happened! InvalidArgument: 400 Request contains an invalid argument.
It seems that the entire Gemini model, including but not limited to 1.5, API, console, and AI Studio, has special restrictions and recognition for the text within the prompt.
I copied all the text from a PDF file and gave it to the AI, hoping it would help me create a summary and some basic analysis. However, I received the following error.
Relevant log output
Code of Conduct