Why did cutting our system prompt in half improve AI output accuracy?

We kept adding rules to our support drafting prompt every time the model made a formatting mistake. We kept going until the instructions reached over two thousand words.. Instead of getting better, the model started ignoring the middle rules. It began hallucinating field names. Long prose prompts bury the important constraints under too much conversational noise.

We made a change. We replaced the wall of text with a JSON schema and just three short, concrete examples. Each example showed input and output pairs. We took out the filler words. We moved the formatting rules into the schema descriptions. This forced the model to focus on data mapping, not on guessing what we meant.

The result? Our valid response rate jumped from 78% to 97% overnight.. Token costs dropped by nearly forty percent per request.

Keep your system instructions short. Let strict output schemas handle structure.

How long are your production prompts before accuracy starts slipping?

4 views

Add a comment

Replies

Best

Mine sits at the other extreme. The meal photo prompt in my app is about 60 words: return a JSON object with two fields, a food name and a protein estimate, plus one fixed empty answer for anything that isn't food or asks for medical advice. The API call also forces JSON output, so the structure never depends on the prose. That prompt hasn't changed since June.

What I don't have is a measurement like your 78 to 97, so I can't say it's accurate, only that it's short. How did you count a valid response: schema validation only, or did someone check the field values too?