Getting Consistent Formatting From Any Model

The same request gives different shapes on different days. If you need output you can paste somewhere, say the shape in the prompt and give one example.

Name the format explicitly

Markdown table, CSV, bulleted list, JSON. Pick one and say it. "Nice formatting" means nothing.

Give the column headers

If you want a table, list the headers in the order you want them. The model will fill them rather than invent its own.

Set length limits per part

Two sentences for the summary, one line per bullet, 60 characters for a title. Limits are easier to enforce than "be brief".

Ask for no preamble

"Return only the table" removes the sentence before it that you would otherwise delete every time.

Save the prompt that worked

When the output comes back clean, keep the prompt text. Reusing a working format prompt is faster than rewriting rules.

FAQ

Why does it add commentary?

Because it was not told not to. Say "no commentary before or after".

Can I enforce it in a system prompt?

Yes, for a tool you use daily. Format rules belong there.

New here? Start with the topics page.

Comments

Popular posts from this blog

System Prompts: Setting the Rules Once

When to Start a New Chat Instead of Continuing

Reviewing AI Output: A Five-Minute Checklist