4 Situations Where AI Gives You the Wrong Format

One Two Three AI — in your inbox

AI news, practical tips and how-to guides. One useful idea a day.

4 Situations Where AI Gives You the Wrong Format
Image generated with AI

You ask ChatGPT for a table and get a bulleted list. You tell Claude to write a one-paragraph summary and receive five. You request JSON from Gemini and get prose with code blocks sprinkled in.

AI models have gotten remarkably good at understanding what you want to say, but they still struggle with how you want it formatted. The mismatch isn’t random—it happens in predictable situations, and knowing when to expect it saves you from wasting prompts on reformatting requests.

When You Ask for Tables or Structured Data

Most conversational AI models default to prose. Ask for a comparison of three products and you’ll likely get paragraphs, even if a table would be clearer.

The problem gets worse when you need specific column structures. A model might give you a Markdown table with the right data but wrong headers, or collapse multiple data points into a single cell when you needed them separated.

What works better: Be explicit about column names and what goes in each. Instead of “compare these in a table,” try “create a table with columns for Product Name, Price, and Key Feature. Put each product in its own row.” For tools like ChatGPT or Claude, you can also specify Markdown, CSV, or ask it to generate the table in a code block for easy copying.

When You Need Consistent Length

AI models interpret length requests loosely. Ask for a “brief summary” and one model gives you two sentences while another gives you two paragraphs. Request “about 100 words” and you might get 87 or 134.

The inconsistency comes from how models are trained—they learn patterns from human writing, where “brief” is subjective and word counts are rarely exact. Models also don’t count words in real-time; they estimate based on token patterns.

What works better: Give a range with consequences. “Write a summary between 80-120 words. If you go over, cut the least important detail.” Or specify structure instead of length: “Write exactly three bullet points, each one sentence long.” Structural constraints are easier for models to follow than abstract length goals.

When You Want Code Without Explanation

By default, AI models assume you want context. Ask for a Python function and you’ll often get the code, plus an explanation of how it works, example usage, and sometimes suggestions for improvement you didn’t request.

This happens because models are trained on tutorials, documentation, and Q&A forums where code rarely appears alone. The training data teaches them that helpful responses include explanation.

What works better: State explicitly that you only want code. “Give me only the Python function, no explanation, no examples, no comments.” If you’re using the code in a pipeline or script where extra text breaks things, mention that: “I’m pasting this directly into a file—code only, nothing else.”

When You Need a Specific File Format

Request a CSV and you might get a Markdown table. Ask for JSON and receive a JavaScript object with comments (which isn’t valid JSON). Want a plain text list and get Markdown with asterisks.

Models often conflate presentation formats with data formats. They know CSV is “comma-separated” but might add headers in a way that breaks parsing, or escape quotes inconsistently. JSON responses sometimes include trailing commas or explanatory text outside the JSON structure.

What works better: Specify the format and how you’ll use it. “Give me valid JSON that I can parse directly—no extra text before or after, no comments inside.” For CSVs: “Create a CSV with headers in the first row, all fields quoted, and nothing except the CSV data.” If you’re using a specific tool or library to parse the output, mention it—”JSON that works with Python’s json.load()” is clearer than just “JSON.”

Why This Keeps Happening

Formatting failures aren’t bugs—they’re a side effect of how language models work. These systems are trained to predict likely next tokens based on patterns in text, not to follow rigid output specifications. Human writing is flexible and context-dependent, so models learn to be flexible too.

When you ask for a table, the model understands the concept but has seen tables formatted dozens of ways in its training data. It picks what seems most likely in context, which isn’t always what you need.

The good news: being specific about format in your prompt works because it changes the context. You’re essentially telling the model, “In this situation, the likely next tokens should follow this exact structure.”

One More Thing to Try

If a model keeps missing your format after a clear prompt, ask it to confirm the format first. “I need a CSV with three columns: Name, Email, Phone. Confirm you understand the format, then generate five sample rows.” The confirmation step often improves accuracy—it’s like giving the model a chance to load the right pattern before generating.

You can also iterate in the same conversation. If the first attempt is close but wrong, point out the specific issue: “Good, but remove the row numbers and make sure every field is quoted.” Models are better at adjusting format when they can see their previous attempt.

Want one useful AI idea in your inbox every day? Subscribe to the One Two Three AI newsletter and stop wasting time on formatting fixes.

One Two Three AI — in your inbox

AI news, practical tips and how-to guides. One useful idea a day.

Other newsletters you might like

How To Move To Ireland

A daily newsletter and blog for people moving to Ireland — visas and immigration, finding work, housing, healthcare, cost of living, banking, driving, schools and settling in.

Subscribe

Love Castles

Apart from the fascinating and rich history of castles, people love to visit them for their majestic beauty. From the imposing stone walls to the beautiful architecture, there is something captivating about these grand structures.

Subscribe

Love Italy

Love Italy is a comprehensive online platform and Newsletter that is devoted to showcasing the beauty, charm, and allure of Italy as a premier travel destination.

Subscribe

Irish Rugby Fans

The best Irish rugby updates, straight to your inbox — Six Nations, the Nations Championship and the provinces. Only when there's something worth reading.

Subscribe

Newsletters via the One Two Three Send network.  ·  Want your newsletter featured here? Click here

Scroll to Top