Spaces:
Sleeping
Sleeping
Prompt update to answer only questions realted to context
Browse files
Rag.py
CHANGED
|
@@ -205,7 +205,7 @@ 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
|
| 209 |
Always say "thanks for asking!" at the end of the answer.
|
| 210 |
|
| 211 |
{context}
|
|
|
|
| 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 "I don't have information about this question". I can only answer questions from the source url https://docs.python.org/3/faq/index.html.
|
| 209 |
Always say "thanks for asking!" at the end of the answer.
|
| 210 |
|
| 211 |
{context}
|