A Markdown table is a good output format when the answer is a list of items with the same fields: the columns fix the structure, and the rows are easy to read and to check. Ask for it by naming the columns and showing one example row in the format you want. A named format is easier for the model to follow than a description of a table.
Prerequisites
- The fields the answer needs, as column names.
- One example row in the exact format you want.
- A question whose answer is a list of similar items.
Steps
Step 1: Name the columns
Name the columns in the prompt, in order: for a book list, Title, Author, Year. Keep the column count small; more than 5 columns is hard for the model to fill consistently.
Step 2: Show one example row
Show one example row in the prompt, with the same separators the model should use. The model copies the pattern, including the header row and the separator line.
Step 3: Count the rows
When the answer comes back, count the rows and check each one has the right number of columns. A row with a missing column is a sign the model lost the format; ask again with the example row repeated.
Worked example: Cedar Street Library new books
The fictional Cedar Street Library asks for 3 new books as a Markdown table with columns Title, Author and Year.
| Title | Author | Year |
|---|---|---|
| The Salt Road | M. Ferreira | 2024 |
| Baking with Rye | A. Novak | 2023 |
| The Long Winter | S. Adeyemi | 2025 |
The answer is a table with 3 rows and 3 columns each, matching the requested format, and every row is complete.
Expected result. The answer is a Markdown table with the named columns and the requested row count. UNTESTED: this guide was not run against a live model or API. The worked example below is fictional practice material, and its result is the expected result, not a measured one.
Limits
- Tables suit lists of similar items; a narrative answer should not be forced into a table.
- A table cell with a pipe character breaks the format; ask the model to avoid it.
- This guide does not cover structured JSON output, which is stricter than a table.
