-
Notifications
You must be signed in to change notification settings - Fork 775
Minor prompt adjustments and docs #1107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
540f6e5
to
5fd2e7c
Compare
tests/test_paperqa.py
Outdated
settings.prompts.summary_json_system = ( | ||
"Provide a summary of the excerpt that could help answer the question based on" | ||
" the excerpt. The excerpt may be irrelevant. Do not directly answer the" | ||
" question - only summarize relevant information. Respond with the following" | ||
' JSON format:\n\n {{\n"summary": "...",\n"author_name":' | ||
' "...",\n"relevance_score": "..."}}\n\n where `summary` is relevant' | ||
" information from text - about 100 words words, `author_name` specifies the" | ||
" author , and `relevance_score` is the relevance of `summary` to answer the" | ||
" question (integer out of 10)." | ||
"Provide a summary of the excerpt that could help answer the question" | ||
" based on the excerpt. The excerpt may be irrelevant." | ||
" Do not directly answer the question - only summarize relevant information." | ||
" Respond with the following JSON format:" | ||
'\n\n{{\n "summary": "...",\n "author_name": "...",\n "relevance_score": 1-10\n}}' | ||
"\n\nwhere `summary` is relevant information from text - about 100 words words," | ||
" `author_name` specifies the author," | ||
" and `relevance_score` is an integer 1-10 for the relevance of `summary`" | ||
" to the question." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This conflicts with prior - should be 0-10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This prompt clobbers the prior and it doesn't mention the 0
score case. What I can do is just propagate the 0
score case here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright it's done, agreed it's nice just to standardize
Resolving my own PR comments