Table of Contents
Structured data generation is a powerful feature in Perplexity that allows users to create organized and meaningful data outputs through specific prompt syntax. Understanding practical examples can help maximize the effectiveness of your prompts and achieve desired results efficiently.
Basic Structured Data Prompt
A simple way to generate structured data is by requesting specific formats such as lists, tables, or JSON objects. For example, to generate a list of historical figures, you can use:
Prompt: List five notable inventors and their inventions in JSON format.
Expected Output:
{ “inventors”: [ {“name”: “Thomas Edison”, “invention”: “Light Bulb”}, {“name”: “Alexander Graham Bell”, “invention”: “Telephone”}, {“name”: “Nikola Tesla”, “invention”: “Alternating Current”}, {“name”: “Marie Curie”, “invention”: “Radioactivity”}, {“name”: “James Watt”, “invention”: “Steam Engine”} ] }
Creating Tables with Structured Data
To organize data into tables, specify the headers and rows explicitly. For example, to compare ancient civilizations:
Prompt: Create a table comparing the Egyptian, Greek, and Roman civilizations including their period, key achievements, and location.
Expected Output:
| Civilization | Period | Key Achievements | Location |
|————–|———|——————|———-|
| Egypt | 3100 BC – 30 BC | Pyramids, Hieroglyphics | Northeast Africa |
| Greece | 800 BC – 146 BC | Democracy, Philosophy, Olympics | Southeast Europe |
| Rome | 753 BC – 476 AD | Republic, Engineering, Law | Mediterranean Basin |
Using Prompts for Timeline Generation
Timelines are useful for understanding historical sequences. To generate a timeline, specify events with dates:
Prompt: Create a timeline of the American Civil War with key battles and dates.
Expected Output:
– 1861: Beginning of the Civil War
– 1862: Battle of Antietam
– 1863: Emancipation Proclamation
– 1863: Battle of Gettysburg
– 1865: End of the Civil War
Generating Data in Different Formats
Perplexity allows prompts to specify output formats such as CSV, JSON, or XML. For example, to export data about world capitals:
Prompt: List the capitals of countries in CSV format.
Expected Output:
Country,Capital
France,Paris
Japan,Tokyo
Brazil,Brasília
India,New Delhi
Australia,Canberra
Advanced Prompt Syntax Tips
To enhance the quality of structured data, specify constraints or filters within your prompts. For example, to generate a list of European countries with populations over 50 million:
Prompt: List European countries with populations over 50 million, formatted as JSON.
Expected Output:
{ “countries”: [ {“name”: “Germany”, “population”: 83 million}, {“name”: “France”, “population”: 67 million}, {“name”: “Italy”, “population”: 60 million} ] }
Using specific syntax and clear instructions in your prompts ensures accurate and useful structured data outputs in Perplexity.