Spaces:
Sleeping
Sleeping
prompt update
Browse files
Rag.py
CHANGED
|
@@ -204,9 +204,8 @@ from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
|
|
| 204 |
parser = StrOutputParser()
|
| 205 |
|
| 206 |
template = """Use the following pieces of context to answer the question at the end.
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
Use three sentences maximum and keep the answer as concise as possible.
|
| 210 |
Always say "thanks for asking!" at the end of the answer.
|
| 211 |
|
| 212 |
{context}
|
|
|
|
| 204 |
parser = StrOutputParser()
|
| 205 |
|
| 206 |
template = """Use the following pieces of context to answer the question at the end.
|
| 207 |
+
Only answer the question from the context don't generate any additional infrormation.
|
| 208 |
+
If you don't get enough information from the context, just say that you don't know.
|
|
|
|
| 209 |
Always say "thanks for asking!" at the end of the answer.
|
| 210 |
|
| 211 |
{context}
|