all AI news
Example of OpenAI function calling API to extract data from LAPD newsroom articles
Simon Willison's Weblog simonwillison.net
Example of OpenAI function calling API to extract data from LAPD newsroom articles
Fascinating code example from Kyle McDonald. The OpenAI functions mechanism is intended to drive custom function calls, but I hadn't quite appreciated how useful it can be ignoring the function calls entirely. Kyle instead uses it to define a schema for data he wants to extract from a news article, then uses the gpt-3.5-turbo-0613 to get back that exact set of extracted data as JSON.
Via @kcimc
ai api articles code data datajournalism drive example extract function functions generativeai llms mcdonald newsroom openai