Published: 2025

Enhancing structured data generation with GPT-4o: evaluating prompt efficiency across prompt styles

CATEGORIES

RISK-BASED PROCESS SAFETY ELEMENTS

Research Summary

Reports an experimental comparison of prompt “styles” (JSON, YAML, and Hybrid CSV/Prefix) for generating structured outputs with GPT‑4o, evaluating accuracy, token cost, and generation time across multiple data contexts. For PSM, selecting a prompt style is a practical design choice when generating or extracting structured artifacts at scale (hazard registers, safeguard inventories, action-item logs, compliance/audit check outputs). The paper’s results provide evidence-based guidance on trade-offs between structure strictness, cost, and latency—useful when building reliable pipelines that feed PSM systems and require validation and data integrity.

AUTHORS

Ashraf Elnashar; Jules White; Douglas C. Schmidt

CITATIONS

A. Elnashar, J. White, and D. C. Schmidt, "Enhancing structured data generation with GPT-4o: evaluating prompt efficiency across prompt styles," Frontiers in Artificial Intelligence, vol. 8, Art. 1558938, 2025, doi: 10.3389/frai.2025.1558938.