Market research report summarization
A market research firm needs to analyze and summarize lengthy reports on market trends and customer behavior. They want to know how AI and data privacy are shaping the market and how they're affecting customers. You are provided with a report
string about markets trends and how they're affecting customer behavior. Your goal is to craft a prompt to summarize it while focusing on aspects related to AI and data privacy to see their effect on customers.
The OpenAI
package, the report
string, and the get_response()
function have been pre-loaded for you.
This exercise is part of the course
Prompt Engineering with the OpenAI API
Exercise instructions
- Craft a prompt that summarizes the
report
(formatted using f-string) in maximum five sentences, while focusing on aspects related to AI and data privacy .
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
client = OpenAI(api_key="")
# Craft a prompt to summarize the report
prompt = ____
response = get_response(prompt)
print("Summarized report: \n", response)