Spaces:
Sleeping
Sleeping
Update chatbot_rag.py
Browse files- chatbot_rag.py +4 -1
chatbot_rag.py
CHANGED
|
@@ -82,6 +82,8 @@ def build_qa():
|
|
| 82 |
input_variables=["context", "question"],
|
| 83 |
template="""
|
| 84 |
Use the following context to answer the question. -
|
|
|
|
|
|
|
| 85 |
Answer from the docs - Answer in plain natural language. -
|
| 86 |
Do not include code, imports, functions, or explanations of how to implement code. -
|
| 87 |
If you don't know, just say "I don't know."
|
|
@@ -93,7 +95,8 @@ def build_qa():
|
|
| 93 |
Question:
|
| 94 |
{question}
|
| 95 |
|
| 96 |
-
Answer
|
|
|
|
| 97 |
)
|
| 98 |
|
| 99 |
|
|
|
|
| 82 |
input_variables=["context", "question"],
|
| 83 |
template="""
|
| 84 |
Use the following context to answer the question. -
|
| 85 |
+
Answer ONLY in one short, plain sentence.
|
| 86 |
+
Do not explain, speculate, or roleplay.
|
| 87 |
Answer from the docs - Answer in plain natural language. -
|
| 88 |
Do not include code, imports, functions, or explanations of how to implement code. -
|
| 89 |
If you don't know, just say "I don't know."
|
|
|
|
| 95 |
Question:
|
| 96 |
{question}
|
| 97 |
|
| 98 |
+
Answer :
|
| 99 |
+
""",
|
| 100 |
)
|
| 101 |
|
| 102 |
|