Aan de slagGa gratis aan de slag

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.

Deze oefening maakt deel uit van de cursus

Prompt Engineering with the OpenAI API

Cursus bekijken

Oefeninstructies

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

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

client = OpenAI(api_key="")

# Craft a prompt to summarize the report
prompt = ____

response = get_response(prompt)

print("Summarized report: \n", response)
Code bewerken en uitvoeren