remove "please" from prompt for summarizing text

This commit is contained in:
HDKiller
2023-04-15 06:27:08 +00:00
parent 6a93537c42
commit 72da564db5

View File

@@ -57,9 +57,9 @@ def split_text(text, max_length=8192):
def create_message(chunk, question):
return {
"role": "user",
"content": f'"""{chunk}""" Using the above text, please answer the following'
"content": f'"""{chunk}""" Using the above text, answer the following'
f' question: "{question}" -- if the question cannot be answered using the text,'
" please summarize the text.",
" summarize the text.",
}