on-internet
← Community

OpenAI structured outputs: model returns null or skips values that exist in the source text during email data extraction

Stack Overflow ·

I am currently working on an application where we get an email, and after identification, we process that email with AI, where a response is required in JSON format for the values. Initially, I used a strict JSON schema technique, but I faced challenges with timeouts and blank-line output from the OpenAI model gpt-4o-mini. I also found that over-contexting is causing problems in response generation. Sometimes it misses the row that I want to process, and sometimes it totally misses the present value. I cut the over-contexted prompt, reduced its size, and changed from Strict JSON schema to Spar

Comments

Sign in or sign up to comment and upvote.

No comments yet.