Free demo · Prompt Engineering · Lesson 7 · Prompt frameworks

Ask for a table or a comparison

Paragraphs are hard to compare. Two frameworks put the answer side by side: tabular prompting and comparative prompting.

Tabular prompting

“Explain [A] and [B]”, then: “Organize the generated outcome in a table with more descriptive categories.”
You
Explain a CV and a cover letter.
AI

A CV is a summary of your education, skills and work experience… A cover letter is a short letter that explains why you suit one particular job… (two paragraphs)

You
Organize the generated outcome in a table with more descriptive categories.
AI
AI
CategoryCVCover letter
PurposeLists education, skills, experienceExplains why you suit this job
Length1 to 2 pagesUnder one page
LayoutHeadings and bullet pointsA letter in short paragraphs

Comparative prompting

“Compare the following topics in tabular format, [A] and [B]”
You
Compare the following topics in tabular format, Phone A (₹12,999, 6 GB RAM, 5,000 mAh battery) and Phone B (₹14,499, 8 GB RAM, 6,000 mAh battery), for a college student.
AI
AI
CriterionPhone APhone B
Price₹12,999₹14,499 (₹1,500 more)
RAM6 GB8 GB
Battery5,000 mAh6,000 mAh
Best forA tight budgetMany apps, long days
  1. +Name the columns: “columns: price, RAM, battery, best for”
  2. ✓Ask for CSV to paste the table straight into Excel
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. Enrol

Tip: press → or Space to step through, ← to go back, R to replay.

About this lesson

Tabular prompting asks an AI assistant to organise its answer in a table, which makes information easier to scan and compare. You can ask for a table directly, or explain first and then say “Organize the generated outcome in a table with more descriptive categories”, as this lesson does for a CV and a cover letter. Comparative prompting asks the AI to compare two topics so that you can make a well-informed decision: “Compare the following topics in tabular format” turns two phones, with the prices and specifications you supply, into a clear decision table. Name the columns yourself when you want particular categories, and ask for CSV when the table should be pasted into Excel. The full course goes on to combine these with the other prompt frameworks, such as persona and chain of thought, and ends with a cheat sheet, a quiz and five practice exercises.

Key points

  • Turn an answer into a table
  • Compare two options in tabular format
  • Name the columns or ask for CSV