IniziaInizia gratis

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.

Questo esercizio fa parte del corso

Prompt Engineering with the OpenAI API

Visualizza il corso

Istruzioni dell'esercizio

  • 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 .

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

client = OpenAI(api_key="")

# Craft a prompt to summarize the report
prompt = ____

response = get_response(prompt)

print("Summarized report: \n", response)
Modifica ed esegui il codice