Skip to content

Commit

Permalink
Adjusted prompts to reduce reticence to answer
Browse files Browse the repository at this point in the history
  • Loading branch information
whitead committed Aug 12, 2023
1 parent f6c69a0 commit e5a4b62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions paperqa/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@
input_variables=["context", "answer_length", "question"],
template="Write an answer ({answer_length}) "
"for the question below based on the provided context. "
"If the context provides insufficient information, "
"If the context provides insufficient information and the question cannot be directly answered, "
'reply "I cannot answer". '
"For each part of your answer, indicate which sources most support it "
"via valid citation markers at the end of sentences, like (Example2012). "
"Answer in an unbiased, comprehensive, and scholarly tone. "
"If the question is subjective, provide an opinionated answer in the concluding 1-2 sentences. \n\n"
"via valid citation markers at the end of sentences, like (Example2012). \n"
"Context (with relevance scores):\n {context}\n"
"Question: {question}\n"
"Answer: ",
Expand Down Expand Up @@ -53,7 +51,6 @@
)

default_system_prompt = (
"Answer in an unbiased, concise, scholarly tone. "
"You may refuse to answer if there is insufficient information. "
"Answer in an direct, concise, scholarly tone. "
"If there are ambiguous terms or acronyms, first define them. "
)
2 changes: 1 addition & 1 deletion paperqa/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "3.6.0"
__version__ = "3.7.0"

0 comments on commit e5a4b62

Please sign in to comment.