How to handle the prompt which exceeds above 4k of text in a file to summarize using davincitext003

How to handle the prompt which exceeds above 4k of text in a file to summarize using davinci text003 in power automate.

Iam trying openai davinci text 003 to summerize the larger text document by supplying it in chunks. in th eHTTP post as below for this I am getting the output shown under “output” below. I am not getting the proper summary or response .
{
“model”: “text-davinci-003”,
“prompt”: “@{items(‘Apply_to_each’)}”,
“max_tokens”: 2000,
“temperature”: 0.5,
“n”: 5,
“stream”: false,
“logprobs”: null,
“stop”: null
}

“Output:”

“xxxx\r\nTake care”,“aaaa\r\nHmm, OK\r\nyyyy\r\nAnd then they can reset their password\r\naaaa\r\nYeah, OK\r\nyyyy\r\nSo that’s the only way”,“mme let me try again”,“yyyy\r\nUmm\r\naaaa\r\nIt’s like a full stack procedure\r\nyyyy\r\nRight, right\r\naaaa\r\nYeah, so it’s like a full stack procedure that I need to follow”,“”,“need to contact the support, then we can get the contact details from the chat\r\n\r\nSummary: The people in this meeting discussed the support for European customers, the contact details for Tanya Europe, and the support for Egyptian schools. They also discussed automation, logging issues, and how to communicate with customers who speak Dutch.”,“he was not in the rotation, he will take care of it\r\naaaa\r\nUmm\r\nyyyy\r\nBut now, we don’t have one person who can take care of the issue and resolve it quickly”,“it work?\r\nxxxx\r\nI’m giving some issues off to the development team, how do I know that they are working on it?\r\naaaa\r\nUmm, okay, so the best way I think is you can follow up with them, right?\r\naaaa\r\nBecause once you assign the ticket to them, they will definitely check it and if they are having any issues, they will give you the reply, right?\r\naaaa\r\nSo that’s the best way to follow up with them, right?\r\nxxxx\r\nYes, I see. That’s a good way. Thank you.”,“yyyy\r\nYeah, exactly\r\nyyyy\r\nSo that’s the kind of thing that we have to do\r\nyyyy\r\nWe have to identify the issues that are frequent and then try to find a solution for them”,“aaaa\r\nSo that’s why I said that\r\nyyyy\r\nYeah, yeah, exactly\r\nyyyy\r\nSo, so what I would suggest is, like, have a training program in place\r\nyyyy\r\nSo, like, when the practitioners come on board, have a training program in place\r\nyyyy\r\nSo, like, you can have a webinar or something like that\r\nyyyy\r\nAnd, like, have a few sessions with the service coordinators and the customer success team so that they can get a better understanding of how to update the office and how to update the fields and how to update the emails and all that stuff\r\nyyyy\r\nAnd, like, have a refresher course every now and then so that the practitioners can get a better understanding of how to update the fields and how to update the emails and all that stuff\r\nyyyy\r\nThat’s what I would suggest”]

image

Thanks

A post was merged into an existing topic: Suggestion for the best OpenAI API model to get the summary from teams meeting transcript