How to Structure Chaotic Responses
In Chapter 2
, we explored key terms and techniques frequently used in prompt engineering. In Chapter 3
, we will learn about how prompt engineering can be applied in our everyday lives.
For practical applications related to work, refer to the course Applying Prompt Engineering in the Workplace.
Methods to Improve Data Readability
Leveraging generative AI like GPT can effectively format
(align data into a specific form) disorganized data that’s difficult to grasp at a glance.
Data is primarily structured in tables and CSV (Comma Separated Values, utilized in spreadsheet software like Excel) formats. In this lesson, we will focus on organizing data into a table format.
Organizing Data into Table Format
Let's convert data written in plain text, and hence hard to grasp at a glance, into a table format.
Prompt Example
In a recent business performance announcement, the CEO of American Electronics highlighted significant achievements from the last fiscal year. According to the report, American Electronics' revenues increased by 15%, reaching $500 million, with a 12% profit margin (net profits at $60 million). Additionally, the customer base grew by 20%, now totaling around 100,000 customers. The company’s operational costs increased by 10% reaching $100 million, and the number of employees increased by 25%, with 500 employees currently working at American Electronics.
Based on the data above, please organize the key information into a table.
AI Response Example
American Electronics Business Performance
Item | Value |
---|---|
Revenue | $500 Million |
Revenue Growth | 15% |
Profit Margin | 12% |
Net Profit | $60 Million |
Customer Growth | 20% |
Total Customers | 100,000 |
Operational Cost | $100 Million |
Cost Growth Rate | 10% |
Total Employees | 500 |
Employee Growth | 25% |
By adding a request to organize data into a table format, data can be structured for easier comprehension at a glance.
To download the created table, include a request in the prompt like make the table downloadable.
The table provided by AI is typically offered as a .csv
file upon download.
But what exactly is a CSV file? We’ll learn more in the next lesson!
Practice
Send the prompt example and compare AI's response.
Want to learn more?
Join CodeFriends Plus membership or enroll in a course to start your journey.