With OpenAI.ChatCompletion, I am trying to summarise some titles related to given concepts.
The rest of the values are default.
My prompt is like this:
Summarise the titles below, which are delimited with triple quotes, about the concept ‘Football’.
- Messi’s next challenge!!
- Transfer season in UK is just started!!
…(and so on…)
There are cases that the given text has no relation with the concept, according to API, and it answers such:
- There are no titles related to the given concept ‘Football’.
Instead of such an answer, I’d like to have an empty response. Therefore, I am adding a line in my prompt like:
If there are no titles related to the given concept found, do not output anything.
However, it still keeps returning the generic answer instead of an empty string.
How can I construct my prompt for this?