This document provides guidance on configuring environment variables for the Gemini Batch API workflow.
During the initial setup, you do not need to specify a value for the OUTPUT_JSONL_PATH environment variable. Leave it blank or as it is.
- Location: Do not change the location setting; leave it set to "global".
- Ensure all other required environment variables are correctly set.
After the batch job has finished, update the OUTPUT_JSONL_PATH before running the post-processing pipeline.
- Locate the output folder in your Google Cloud Storage (GCS) bucket.
- The folder will have a name resembling
prediction-model-2026-03-19...followed by a timestamp. - Copy the full folder name.
- Set the
OUTPUT_JSONL_PATHvariable to the following format:ReplaceOUTPUT_JSONL_PATH="jsonl/prediction-model-2026-03-19.../"prediction-model-2026-03-19...with the actual folder name from your bucket.
This ensures the post-processing script can access the correct output JSONL file generated by the batch job.