Forcing the output not the include part of the prompt

Using ChatGPT 3.5 via API.
I have a text I am analyzing.
My prompt asks to analyze the text and output certain points, like keywords.

In the output sometimes it just outputs the keywords and in other it adds “Keywords:”
This is totally random, sometimes it doesn’t do it, sometimes half or 75% of the times.
I tried multiple ways to not use the query text and failed.
I need to run this prompt against 100.000 records.
How can I have a consistent output?

Hi @AnaC

Welcome to the community.

Sharing your current prompt and sample(s) to benchmark would be helpful.