Precisei alterar a disposição das instruções para o Chat GPT, porque ele estava me retornando a resposta em JSON. O prompt ficou assim:
Sua tarefa é executar as seguintes ações:
1 - Resuma as resenhas abaixo, delimitadas por aspas, em no máximo 30 palavras
2 - Traduza os resumos para português
Para cada resumo:
3 - Crie uma lista com os pontos fortes do produto
4 - Crie uma lista com os pontos fracos do produto
5 - Defina qual é o sentimento do resumo: positivo, neutro ou negativo?
Resenhas:
""""
Resenha 1: I use the air fryer a lot. It works very well. I made hamburgers in it last night, the were wonderful! The rack you put the food on is a little hard to clean. It has lots of crevices that food gets in. The basket itself is very easy to clean. I also do not trust the rack not to fall out when dumping out food, like French fries.
Resenha 2: Air fryer works fine until the handle breaks off. There's only 3 screws that attach the handle to a plastic piece on the basket. The plastic piece breaks and the screws fall out so there's no way to attach the handle to the basket rendering the air fryer useless. If there were 4 screws or if the screws attached to metal the handle attachment would have been much more secure and less prone to breaking.
Resenha 3: Even though I returned it for the bigger one of the same company I liked the fryer. Ferry ez to use But hard to judge. Seafood button isn't fish and it was a guessing game how to cook the product. I way over cooked it and the chicken legs came out crispy, but the other side was raw. But, this is my first time using an air fryer so maybe it's me. Very sleek on the counter buttons light up real nice. I made tater tots and let me tell you they came out perfect and stayed hot. I like it so much that I returned this one and got the same company Bigger one. But I had to buy it from the place itself not from Amazon and I don't lie that at all. Hope this review helps.
""""
Ao final:
6 - Gere uma saída em JSON, contendo 5 chaves: um ID para cada resumo, o resumo, a lista de pontos fortes, a lista de pontos fracos, o sentimento.
Obtive essa resposta:
O resultado no formato JSON:
[
{
"id": "resenha_1",
"resumo": "A fritadeira funciona muito bem e prepara alimentos saborosos. Porém, a grade é difícil de limpar e parece insegura ao despejar alimentos.",
"pontos_fortes": [
"Funciona muito bem",
"Prepara alimentos saborosos",
"Cesto fácil de limpar",
"Bom desempenho geral"
],
"pontos_fracos": [
"Grade difícil de limpar",
"Acúmulo de resíduos nas frestas",
"Insegurança quanto à fixação da grade ao esvaziar alimentos"
],
"sentimento": "positivo"
},
{
"id": "resenha_2",
"resumo": "A fritadeira funciona adequadamente, mas o cabo quebra devido a uma falha estrutural, tornando o produto inutilizável.",
"pontos_fortes": [
"Funciona bem inicialmente"
],
"pontos_fracos": [
"Cabo quebra facilmente",
"Projeto estrutural fraco",
"Peça plástica pouco resistente",
"Produto torna-se inutilizável após a quebra"
],
"sentimento": "negativo"
},
{
"id": "resenha_3",
"resumo": "Fritadeira bonita e fácil de usar, com bons resultados em alguns alimentos, mas apresenta dificuldade de ajuste do cozimento e instruções pouco claras.",
"pontos_fortes": [
"Fácil de usar",
"Design moderno e elegante",
"Painel iluminado",
"Excelente resultado com alguns alimentos",
"Mantém os alimentos quentes",
"Usuário gostou da marca a ponto de comprar um modelo maior"
],
"pontos_fracos": [
"Configurações pouco intuitivas",
"Dificuldade para acertar o tempo de cozimento",
"Cozimento inconsistente em alguns alimentos",
"Botão de frutos do mar pouco claro",
"Necessidade de tentativa e erro"
],
"sentimento": "positivo"
}
]