How to make gpt3.5 turbo to summarize story without generating content that is not there in original text

Hi all, My first newbie topic here.
I am trying to generate a summary of a story using gpt3.5 API. It generates the summary well with some things I would like to exclude:

  1. In the end it generates morale of the story
  2. It generates information that is not present in the chapter. e.g. the name of the Authors
    How to avoid the above 2?
    My prompt:

messages= [{"role": "user", "content":f"Write a summary of the following:{chapter_content}"}]

You can provide these instructions as part of the prompt eg. “Follow these instructions when generating the summary”.

1 Like

thanks, I will try that and get back with the results

Hi @samsk

Welcome to the community.

Try this system prompt:
"You are assistant who replies with a clear and concise summary to every message"

1 Like