I'm creating a Batch Prediction Job using Gemini Flash 002 model. I want to format the output in a specific json format.
I'm able to specify it in Standalone request as there is a parameter to define it. But when creating Batch Prediction, I don't have any idea where to specify it. The documentation page about input file format specifies format of input but not about format of output.
Please guide me on how to do output formatting for Batch prediction Job from Gemini. If possible show me a sample code in python to accomplish this.
Thanks in Advance
Hi @Tharun-PS,
Welcome to Google Cloud Community!
Make sure that you are using the supported model for batch prediction.
For batch prediction output, you may refer to this link for guidance.
You can also read the following documentation for more details:
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |