Spaces:
Paused
Paused
Daniel Marques
commited on
Commit
·
42d6b9c
1
Parent(s):
9349ed2
fix: add tokenWs
Browse files
main.py
CHANGED
@@ -78,7 +78,7 @@ You should only answer the topics that appear in these documents.
|
|
78 |
Always answer in the most helpful and reliable way possible, if you don't know the answer to a question, just say you don't know, don't try to make up an answer,
|
79 |
don't share false information. you should use no more than 15 sentences and all your answers should be as concise as possible.
|
80 |
Always say "Thank you for asking!" at the end of your answer.
|
81 |
-
Context: {context}
|
82 |
Question: {question}
|
83 |
"""
|
84 |
|
@@ -93,6 +93,7 @@ QA = RetrievalQA.from_chain_type(
|
|
93 |
return_source_documents=SHOW_SOURCES,
|
94 |
chain_type_kwargs={
|
95 |
"prompt": QA_CHAIN_PROMPT,
|
|
|
96 |
},
|
97 |
)
|
98 |
|
|
|
78 |
Always answer in the most helpful and reliable way possible, if you don't know the answer to a question, just say you don't know, don't try to make up an answer,
|
79 |
don't share false information. you should use no more than 15 sentences and all your answers should be as concise as possible.
|
80 |
Always say "Thank you for asking!" at the end of your answer.
|
81 |
+
Context: {history} \n {context}
|
82 |
Question: {question}
|
83 |
"""
|
84 |
|
|
|
93 |
return_source_documents=SHOW_SOURCES,
|
94 |
chain_type_kwargs={
|
95 |
"prompt": QA_CHAIN_PROMPT,
|
96 |
+
"memory": memory
|
97 |
},
|
98 |
)
|
99 |
|