Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -74,23 +74,24 @@ Include:
|
|
| 74 |
- One short class activity
|
| 75 |
"""
|
| 76 |
),
|
| 77 |
-
"general question":
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
You are a Virginia Geometry
|
| 81 |
|
| 82 |
-
From the following
|
| 83 |
{context}
|
| 84 |
|
| 85 |
-
Identify the SOL standard (e.g., G.RLT.1
|
| 86 |
|
| 87 |
Respond with:
|
| 88 |
-
1. The SOL code (e.g., G.RLT.
|
| 89 |
-
2. The
|
| 90 |
|
| 91 |
-
Do not summarize.
|
| 92 |
"""
|
| 93 |
-
)
|
|
|
|
| 94 |
|
| 95 |
|
| 96 |
|
|
|
|
| 74 |
- One short class activity
|
| 75 |
"""
|
| 76 |
),
|
| 77 |
+
"general question": ChatPromptTemplate.from_messages([
|
| 78 |
+
HumanMessagePromptTemplate.from_template(
|
| 79 |
+
"""
|
| 80 |
+
You are a Virginia Geometry SOL assistant.
|
| 81 |
|
| 82 |
+
From the following SOL context:
|
| 83 |
{context}
|
| 84 |
|
| 85 |
+
Identify the SOL standard (e.g., G.RLT.1) that best matches this query: "{query}"
|
| 86 |
|
| 87 |
Respond with:
|
| 88 |
+
1. The exact SOL code (e.g., G.RLT.1)
|
| 89 |
+
2. The exact description line from the SOL guide
|
| 90 |
|
| 91 |
+
Do not summarize. Only copy from the context.
|
| 92 |
"""
|
| 93 |
+
)
|
| 94 |
+
])
|
| 95 |
|
| 96 |
|
| 97 |
|