File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 1919 input_variables = ["context" , "answer_length" , "question" ],
2020 template = "Write an answer ({answer_length}) "
2121 "for the question below based on the provided context. "
22- "If the context provides insufficient information, "
22+ "If the context provides insufficient information and the question cannot be directly answered , "
2323 'reply "I cannot answer". '
2424 "For each part of your answer, indicate which sources most support it "
25- "via valid citation markers at the end of sentences, like (Example2012). "
26- "Answer in an unbiased, comprehensive, and scholarly tone. "
27- "If the question is subjective, provide an opinionated answer in the concluding 1-2 sentences. \n \n "
25+ "via valid citation markers at the end of sentences, like (Example2012). \n "
2826 "Context (with relevance scores):\n {context}\n "
2927 "Question: {question}\n "
3028 "Answer: " ,
5351)
5452
5553default_system_prompt = (
56- "Answer in an unbiased, concise, scholarly tone. "
57- "You may refuse to answer if there is insufficient information. "
54+ "Answer in an direct, concise, scholarly tone. "
5855 "If there are ambiguous terms or acronyms, first define them. "
5956)
Original file line number Diff line number Diff line change 1- __version__ = "3.6 .0"
1+ __version__ = "3.7 .0"
You can’t perform that action at this time.
0 commit comments