Your classifier uses DeepSeek’s JSON mode.
A few replies a day come back with empty content, and the pipeline stores them as blank records.
- ATurn JSON mode off and parse the prose the model writes instead
- BSend every ticket that got an empty reply to the thinking mode
- CRetry an empty reply; never store it
- DRaise the temperature so the model has more to say next time
Answer: C
Retry an empty reply; never store it
Why
DeepSeek’s docs warn that JSON mode may occasionally return empty content. It is a hiccup, not an answer: retry it, and keep validating real replies against your schema. Prose parsing brings back guesswork, and neither the thinking mode nor a higher temperature addresses an empty reply.
- Structured outputYou need reliable JSON from the model to feed a downstream service.
- Structured outputAbout 2% of responses come back as JSON with a trailing comma or a stray note before the object, and your pipeline crashes on them.
- Structured outputYou need three fields from the model.
- Structured outputThe model hit the token limit halfway through a JSON object.
More on Way of the Agent
- Course programThe first three modules are free: start in the browser or the app, no card needed.
- Library: guides, skills and promptsReady prompt templates, grouped into collections.
- AI ChroniclesSourced stories from the history of AI.
- ConceptsPlain-language explainers of agent engineering.
- Learn AI agentsApps and courses for learning AI agents, compared honestly.
Real situations from building agents - with the answer and why.
Solve a new one every day on the Path