Structured Gemini Prompts

A couple of examples of using Gemini 2.5 with structured outputs in Google AI Studio in order to conduct document analysis.

About This Project

Structured-Gemini-Prompts is a repository of example prompts designed to produce predictable, schema-conformant outputs from Gemini 2.5 in Google AI Studio. Each example pairs a system prompt file (system-prompt.md) with a JSON schema definition (schema.json), with the schemas generated through AI Studio's visual schema editor. The repository includes two demonstration workloads: British English Deviation Analysis, which identifies non-British word usage in a manuscript, and PDF Currency Identification, which locates and classifies currency references in documents.

The project illustrates a workflow that uses AI Studio's system prompt area, document upload, and structured output settings to create a reusable document analysis agent. The methodology relies on Gemini 2.5's extended maximum output length to process book-length manuscripts page by page, with the resulting JSON arrays convertible to CSV, XLSX, or database formats. A sample output is included as a reference. The repository also notes that the same approach can be implemented through code or in Vertex AI.

This project may be useful to editors, publishing professionals, and researchers who need consistent, machine-readable analysis of long documents, as well as developers exploring structured output techniques with the Gemini API. It is also a practical reference for anyone adapting the pattern to custom analysis workloads.

Project Details

Explore More Projects