Engenharia rápida com a API OpenAI
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))
O autor comprou o XYZ Smart Watch e ficou impressionado com o design elegante, a
qualidade de construção e o conforto no pulso. Achou a tela touch responsiva e
intuitiva para navegar pelos recursos do relógio.

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))
O cliente está impressionado com o design elegante, a qualidade, o conforto e a
responsividade da tela touch do 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))
- O XYZ Smart Watch tem design elegante e ótima qualidade de construção.
- É confortável no pulso e combina com qualquer roupa.
- A tela touch é responsiva e fácil de navegar pelos recursos.
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))
O cliente comprou o XYZ Smart Watch e ficou impressionado com o design elegante
e a qualidade de construção.
Achou confortável de usar e versátil, combinando com qualquer roupa.
A tela touch foi responsiva e intuitiva, facilitando a navegação
pelos recursos do relógio.


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 é um serviço completo de mídias sociais que oferece desenvolvimento
estratégico, criação de conteúdo e postagem para ajudar empresas a engajar o
público-alvo e construir uma comunidade online forte.
Com foco em aumentar a visibilidade da marca e ampliar o engajamento do cliente,
o Social XYZ permite decisões de marketing orientadas por dados para melhores
resultados.
Engenharia rápida com a API OpenAI