Spaces:
Running
Running
Fix typo in system prompt (#52)
Browse files- sage/chat.py +1 -1
sage/chat.py
CHANGED
|
@@ -28,7 +28,7 @@ def build_rag_chain(args):
|
|
| 28 |
# Prompt to contextualize the latest query based on the chat history.
|
| 29 |
contextualize_q_system_prompt = (
|
| 30 |
"Given a chat history and the latest user question which might reference context in the chat history, "
|
| 31 |
-
"
|
| 32 |
"just reformulate it if needed and otherwise return it as is."
|
| 33 |
)
|
| 34 |
contextualize_q_prompt = ChatPromptTemplate.from_messages(
|
|
|
|
| 28 |
# Prompt to contextualize the latest query based on the chat history.
|
| 29 |
contextualize_q_system_prompt = (
|
| 30 |
"Given a chat history and the latest user question which might reference context in the chat history, "
|
| 31 |
+
"formulate a standalone question which can be understood without the chat history. Do NOT answer the question, "
|
| 32 |
"just reformulate it if needed and otherwise return it as is."
|
| 33 |
)
|
| 34 |
contextualize_q_prompt = ChatPromptTemplate.from_messages(
|