OpenAI announces structured outputs #4291
legaltextai
started this conversation in
General
Replies: 1 comment
-
I saw this. I thought it looked really useful for our scanning project too, assuming this works with their vision API. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
They now guarantee the model’s response will conform to a particular schema.
They did have an option for json output before but without the guarantee part.
Why is it a big deal? You can now instruct the model to analyze any case or thousands of cases and return the output in a structured json as per your requirements. For example, you can add these template schemas to the model instruction.
{
"Issue": "",
"Rule": "",
"Application": "",
"Conclusion": ""
}
{
"cited_case": "",
"treatment": "positive/negative/neutral"
}
And then set up search query to apply these as filters. "Find me the case that considered the issue of such and such...", "Find me cases after 2022 that reviewed 141 S. Ct. 1183 and summarize its treatment"
Beta Was this translation helpful? Give feedback.
All reactions