NicolasGaudemet
commited on
Commit
•
e176e32
1
Parent(s):
132921c
Update document_questioner_app.py
Browse files
document_questioner_app.py
CHANGED
@@ -35,7 +35,7 @@ def question_document(Document, Question):
|
|
35 |
Precise the number starting the above text in your answer. It corresponds to its page number in the document it is from. Label this number as "page".
|
36 |
Also make sure to answer in the same langage than the following question.
|
37 |
QUESTION : {question}
|
38 |
-
ANSWER :
|
39 |
"""
|
40 |
|
41 |
combine_template = """{summaries}
|
@@ -43,7 +43,7 @@ def question_document(Document, Question):
|
|
43 |
So make sure to not mention different documents or extracts or passages or portions or texts. There is only one, entire document.
|
44 |
Also make sure to answer in the same langage than the following question.
|
45 |
QUESTION : {question}.
|
46 |
-
ANSWER :
|
47 |
"""
|
48 |
|
49 |
question_prompt = PromptTemplate(template = question_template, input_variables=['context', 'question'])
|
|
|
35 |
Precise the number starting the above text in your answer. It corresponds to its page number in the document it is from. Label this number as "page".
|
36 |
Also make sure to answer in the same langage than the following question.
|
37 |
QUESTION : {question}
|
38 |
+
ANSWER :
|
39 |
"""
|
40 |
|
41 |
combine_template = """{summaries}
|
|
|
43 |
So make sure to not mention different documents or extracts or passages or portions or texts. There is only one, entire document.
|
44 |
Also make sure to answer in the same langage than the following question.
|
45 |
QUESTION : {question}.
|
46 |
+
ANSWER :
|
47 |
"""
|
48 |
|
49 |
question_prompt = PromptTemplate(template = question_template, input_variables=['context', 'question'])
|