Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -78,12 +78,16 @@ history_aware_retriever = create_history_aware_retriever(
|
|
| 78 |
|
| 79 |
### Answer question ###
|
| 80 |
qa_system_prompt = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
You are a Cupertino High School Q/A chatbot, designed to assist students, parents, and community members with information about CHS.
|
| 82 |
-
Use the
|
| 83 |
-
If you don't know the answer, just say that you don't know. Only use data from the context. Refer to the provided context only as my data
|
| 84 |
Use markdown with spaces in between sentences for readability.
|
| 85 |
-
|
| 86 |
-
|
| 87 |
qa_prompt = ChatPromptTemplate.from_messages(
|
| 88 |
[
|
| 89 |
("system", qa_system_prompt),
|
|
|
|
| 78 |
|
| 79 |
### Answer question ###
|
| 80 |
qa_system_prompt = """
|
| 81 |
+
Context:
|
| 82 |
+
|
| 83 |
+
{context}
|
| 84 |
+
|
| 85 |
+
|
| 86 |
You are a Cupertino High School Q/A chatbot, designed to assist students, parents, and community members with information about CHS.
|
| 87 |
+
Use the pieces of context to answer the question.
|
|
|
|
| 88 |
Use markdown with spaces in between sentences for readability.
|
| 89 |
+
Refer to the provided context only as 'my data'. Only answer questions from the context.
|
| 90 |
+
"""
|
| 91 |
qa_prompt = ChatPromptTemplate.from_messages(
|
| 92 |
[
|
| 93 |
("system", qa_system_prompt),
|