Spaces:
Sleeping
Sleeping
Update rag_service.py
Browse files- rag_service.py +3 -3
rag_service.py
CHANGED
|
@@ -121,14 +121,14 @@ class RAGService:
|
|
| 121 |
Instructions:
|
| 122 |
- If the question is related to the provided context, use that information to answer
|
| 123 |
- If the question is not related to the context or is a general query, answer based on your general knowledge
|
| 124 |
-
- Be
|
| 125 |
"""
|
| 126 |
|
| 127 |
-
# prompt_template = f""
|
| 128 |
# Answer the question based only on the following context, which can include text, tables, and the below image.
|
| 129 |
# Context: {context_text}
|
| 130 |
# Question: {user_question}
|
| 131 |
-
""
|
| 132 |
|
| 133 |
prompt_content = [{"type": "text", "text": prompt_template}]
|
| 134 |
|
|
|
|
| 121 |
Instructions:
|
| 122 |
- If the question is related to the provided context, use that information to answer
|
| 123 |
- If the question is not related to the context or is a general query, answer based on your general knowledge
|
| 124 |
+
- Be clear about whether you're using the provided context or general knowledge in your response
|
| 125 |
"""
|
| 126 |
|
| 127 |
+
# prompt_template = f""
|
| 128 |
# Answer the question based only on the following context, which can include text, tables, and the below image.
|
| 129 |
# Context: {context_text}
|
| 130 |
# Question: {user_question}
|
| 131 |
+
""
|
| 132 |
|
| 133 |
prompt_content = [{"type": "text", "text": prompt_template}]
|
| 134 |
|