TLDR Web Dev · MISCELLANEOUS
A BASIC TEST OF OPENAI'S STRUCTURED OUTPUT FEATURE AGAINST FINANCIAL DISCLOSURE REPORTS AND A NEWSPAPER'S POLICE BLOTTER
Summary from the TLDR Web Dev newsletter
OpenAI's Structured Output API feature can be used for data extraction from images. This article shows how to define a data schema using Pydantic and then use OpenAI's gpt-4o-mini model to extract data from screenshots of financial disclosure reports and newspaper police blotters.