Prompt Engineering met de OpenAI API
Fouad Trad
Machine Learning Engineer

text = "I recently purchased your XYZ Smart Watch and wanted to provide some feedback based on my experience with the product. I must say that I'm impressed with the sleek design and build quality of the watch. It feels comfortable on the wrist and looks great with any outfit. The touchscreen is responsive and easy to navigate through the various features."prompt = f"""Summarize the text delimited by triple backticks: ```{text}```""" print(get_response(prompt))
De auteur kocht de XYZ Smart Watch en is onder de indruk van het strakke design, de
bouwkwaliteit en het comfortabele draaggevoel. Ze vinden het touchscreen responsief en
gebruiksvriendelijk voor het navigeren door de functies.

text = "I recently purchased your XYZ Smart Watch and wanted to provide some feedback based on my experience with the product. I must say that I'm impressed with the sleek design and build quality of the watch. It feels comfortable on the wrist and looks great with any outfit. The touchscreen is responsive and easy to navigate through the various features."prompt = f"""Summarize the text delimited by triple backticks in one sentence: ```{text}```""" print(get_response(prompt))
De klant is onder de indruk van het strakke design, de bouwkwaliteit, het comfort en de
responsiviteit van het touchscreen van de XYZ Smart Watch.
text = "I recently purchased your XYZ Smart Watch and wanted to provide some feedback based on my experience with the product. I must say that I'm impressed with the sleek design and build quality of the watch. It feels comfortable on the wrist and looks great with any outfit. The touchscreen is responsive and easy to navigate through the various features."prompt = f"""Summarize the text delimited by triple backticks, in at most three bullet points. ```{text}```""" print(get_response(prompt))
- De XYZ Smart Watch heeft een strak, indrukwekkend design en uitstekende bouwkwaliteit.
- Zit comfortabel om de pols en past bij elke outfit.
- Het touchscreen is responsief en gebruiksvriendelijk voor makkelijke navigatie door de functies.
text = "I recently purchased your XYZ Smart Watch and wanted to provide some feedback based on my experience with the product. I must say that I'm impressed with the sleek design and build quality of the watch. It feels comfortable on the wrist and looks great with any outfit. The touchscreen is responsive and easy to navigate through the various features."prompt = f"""Summarize the review delimited by triple backticks, in three sentences, focusing on the key features and user experience: ```{text}```""" print(get_response(prompt))
De klant kocht de XYZ Smart Watch en was onder de indruk van het strakke design
en de bouwkwaliteit.
Ze vonden hem comfortabel om te dragen en passend bij elke outfit.
Het touchscreen was responsief en gebruiksvriendelijk, waardoor je eenvoudig
door de functies van het horloge navigeert.


service_description = """Service: Social XYZ
- Social Media Strategy Development
- Content Creation and Posting
- Audience Engagement and Community Building
- Increased Brand Visibility
- Enhanced Customer Engagement
- Data-Driven Marketing Decisions"""
prompt = f"""Expand the description for the Social XYZ service delimited by triple
backticks to provide an overview of its features and benefits, without bypassing
the limit of two sentences. Use a professional tone.
```{service_description}```"""
print(get_response(prompt))
Social XYZ is een complete socialmediadienst met strategische
ontwikkeling, contentcreatie en -plaatsing om bedrijven effectief met hun
doelgroep te laten communiceren en een sterke community op te bouwen.
Met focus op meer merkzichtbaarheid en sterkere klantbetrokkenheid helpt
Social XYZ bedrijven datagedreven marketingbeslissingen te nemen voor optimale
resultaten.
Prompt Engineering met de OpenAI API