jypi
  • Explore
ChatWays to LearnMind mapAbout

jypi

  • About Us
  • Our Mission
  • Team
  • Careers

Resources

  • Ways to Learn
  • Mind map
  • Blog
  • Help Center
  • Community Guidelines
  • Contributor Guide

Legal

  • Terms of Service
  • Privacy Policy
  • Cookie Policy
  • Content Policy

Connect

  • Twitter
  • Discord
  • Instagram
  • Contact Us
jypi

© 2026 jypi. All rights reserved.

Generative AI: Prompt Engineering Basics
Chapters

1Foundations of Generative AI

2LLM Behavior and Capabilities

3Core Principles of Prompt Engineering

4Writing Clear, Actionable Instructions

5Roles, Personas, and System Prompts

6Supplying Context and Grounding

7Examples: Zero-, One-, and Few-Shot

8Structuring Outputs and Formats

Bullets, Lists, and OutlinesHeadings and SectionsJSON and Schema EnforcementXML, CSV, and TSV OutputsMarkdown and Code BlocksTags, Markers, and DelimitersLength Targets and SummariesScoring Rubrics and ScalesKey-Value Output PatternsPlaceholders and VariablesError Message ConventionsStructured Reasoning FieldsTables and MatricesMulti-Part Output AssemblyPost-Processing Friendly Designs

9Reasoning and Decomposition Techniques

10Iteration, Testing, and Prompt Debugging

11Evaluation, Metrics, and Quality Control

12Safety, Ethics, and Risk Mitigation

13Tools, Functions, and Agentic Workflows

14Retrieval-Augmented Generation (RAG)

15Multimodal and Advanced Prompt Patterns

Courses/Generative AI: Prompt Engineering Basics/Structuring Outputs and Formats

Structuring Outputs and Formats

20817 views

Specify output schemas, enforce structure, and design responses for easy parsing, scoring, and downstream use.

Content

1 of 15

Bullets, Lists, and Outlines

List-Mastery: Bullets, Outlines & Format Judo
6843 views
beginner
humorous
visual
education theory
gpt-5-mini
6843 views

Versions:

List-Mastery: Bullets, Outlines & Format Judo

Watch & Learn

AI-discovered learning video

Sign in to watch the learning video for this topic.

Sign inSign up free

Start learning for free

Sign up to save progress, unlock study materials, and track your learning.

  • Bookmark content and pick up later
  • AI-generated study materials
  • Flashcards, timelines, and more
  • Progress tracking and certificates

Free to join · No credit card required

Bullets, Lists, and Outlines — Make Your Model Actually Follow the Plan

Hook: Why your model keeps giving paragraph soup

Ever prompt a model for a crisp checklist and get back an essay about the emotional journey of a checklist instead? Welcome to the thrilling world of output structuring. You already learned when to give examples (zero, one, few-shot), how order affects behavior, and why selection bias will sabotage neat outputs. Now we learn the next epic skill: making the model spit out the exact shape you want — bullet lists, numbered steps, outlines, nested trees, CSV, JSON — without the interpretive theater.

Structuring outputs is the difference between getting a usable API response and getting a novella you now have to parse in Python. One is efficient. The other deserves an agent name.


What this is and why it matters (quick)

Structuring outputs means specifying the precise format and organization for model responses so downstream systems, humans, or graders can consume them reliably. This reduces ambiguity, cuts post-processing, and improves reproducibility when combined with your few-shot strategies.

Imagine you're building a pipeline: Prompt -> Model -> Extractor -> Action. If the prompt doesn't nail the list or outline style, the extractor fails. That's wasted tokens and developer tears.


Patterns and when to use them

1) Bulleted lists (unordered)

  • Best when the order doesn't matter and you want concise items.
  • Use for: features, pros/cons, ideas, non-ranked tasks.

Prompt tip: Ask for a bullet list and give one exemplar bullet in few-shot if tone matters.

Example prompt snippet:

Return an unordered list of 5 concise features, each 6 words max:
- Feature sample: "fast inference on small models"

Why it works: the sample sets rhythm and length. If you skip sample, depend on clear constraints (length, count).

2) Numbered lists (ordered)

  1. Use when sequence matters.
  2. Great for step-by-step instructions.
  3. The model tends to honor order more reliably when you number examples in few-shot.

Prompt tip: For multi-step processes, explicitly request numbers and cardinality: "Return steps 1-6." That clamps the decision boundary.

3) Outlines (headings + nested bullets)

  • Use for hierarchical content: plans, essays, multi-part designs.
  • Ask for heading levels (e.g., I, A, 1 or #, ##, ###) to control parsing.

Example:

Return an outline with 3 sections. Use roman numerals for sections, uppercase letters for subsections, and numbers for points.

Hierarchy reduces ambiguity and helps automated parsers map nodes to actions.

4) Tables

  • Use when you need structured comparisons: columns map to fields.
  • Prefer CSV or Markdown tables depending on downstream reader.

Table vs JSON: table = human-readable; JSON = machine-native.

5) JSON / CSV / YAML

  • When you need strict schema. Always provide a minimal schema example in the prompt.

Example JSON template in prompt:

Return a JSON array of objects like:
[ { id: 1, title: "", priority: "low|med|high" } ]

If you need exact types or keys, show them in a one-shot example to avoid key drift.


Practical rules: concise, explicit, and demonstrated

  1. Be explicit about the container. Tell the model Return a markdown bulleted list or Return valid JSON array.
  2. Clamp the cardinality. Say how many items. Order effects matter here; if you want 4 items, ask for 4.
  3. Give an exemplar when style matters. Few-shot with 1 example often changes format reliably. Remember earlier: exemplars can create selection bias, so pick a representative example, not an extreme one.
  4. Limit verbosity per item. Use character/word limits if you want terse bullets.
  5. Use separators or tokens. If you need parsing safety, ask for ---BEGIN--- and ---END--- wrappers.
  6. Guard against hallucinated list items. Ask the model to justify items or provide sources if accuracy is critical.

Order effects redux (linking to previous topic)

You learned how few-shot examples influence decision boundaries. The same is true for list formats: the order and phrasing of your exemplar bullets can nudge the model into producing hierarchical vs flat lists, or into ranking importance vs presenting options neutrally.

Ask yourself: did your exemplar imply ranking? If so, the model will likely infer an ordinal scale. If you want a neutral unordered list, show an unordered example.


Pitfalls and how to dodge them

  • Selection bias in examples: If all your examples are long, the model will produce long bullets. Mix exemplar lengths if you need variety. (Tie-back to Avoiding Selection Bias.)
  • Ambiguous instructions: "List steps to do X" invites a variable number. Clamp it.
  • Extra commentary: Models like explaining their choices. If you want only data, specify "No commentary, only the list."
  • Token waste: Huge nested outlines can use many tokens. If you only need keys, request a shallow outline.

Bite-sized templates you can copy-paste

  1. Bullet list, exact count, terse:
Return a markdown unordered list of exactly 5 items. Each item max 8 words. No intro or commentary.
  1. Step-by-step numbered process:
Return a numbered list of 6 steps to accomplish X. Each step one sentence. Include no extra text.
  1. JSON with schema:
Return a JSON array of objects with keys: id (int), task (string), priority ("low"|"med"|"high"). Example format: [{id:1,task:"",priority:""}]

Quick table: when to use which format

Use case Format Why
Human checklist Bullets Fast scanning, flexible order
Procedure Numbered list Clarity of sequence
Structured data JSON/CSV Easy programmatic parsing
Comparative summary Table Compact side-by-side

Closing — TL;DR and a tiny motivational rant

  • Be explicit about the container, the count, and the verbosity.
  • Use a one-shot example to lock style when necessary, but avoid biased exemplars.
  • For pipelines, prefer machine formats (JSON/CSV) and provide a schema.

Final thought: teaching a model to speak your format is like teaching someone to fold a fitted sheet. It seems mystical at first, but with a clear method and one or two good demonstrations, it stops being chaos and starts being reliable craftsmanship.

Go forth. Make your models tidy, parsable, and merciful to your downstream scripts.

Flashcards
Mind Map
Speed Challenge

Comments (0)

Please sign in to leave a comment.

No comments yet. Be the first to comment!

Ready to practice?

Sign up now to study with flashcards, practice questions, and more — and track your progress on this topic.

Study with flashcards, timelines, and more
Earn certificates for completed courses
Bookmark content for later reference
Track your progress across all topics