Extract
The model reads the inquiry in JSON mode; the regex baseline runs on the same text.
Enter a project inquiry in English or Khmer. A live model and a regex baseline both extract contact details, service, and urgency. A strict schema validator checks every reply, and output that fails is sent back to the model once with the exact issues to fix.
01 / Input
Your text is sent to Groq for this run. Don't paste anything private.
121/2,00002 / output.json
Run the extraction to see structured JSON and validation details.
Expected schema
name: string | null · email: email | null · service: enum | null · urgency: high | normal | low | nullThe model reads the inquiry in JSON mode; the regex baseline runs on the same text.
A strict schema check rejects missing keys, extra keys, invalid emails, and values outside the allowed lists.
Failed output goes back to the model once with the exact issues. If it still fails, the lab says so instead of guessing.
Related technical article
Getting Reliable JSON Out of an LLM →