Update app.py
Browse files
app.py
CHANGED
@@ -60,6 +60,7 @@ chat_model = ChatOpenAI(model="gpt-4o")
|
|
60 |
|
61 |
# Define a custom prompt for context
|
62 |
system_message_content = """
|
|
|
63 |
You are a school assistant with strong database Q&A capabilities.
|
64 |
Your role is to help educators keep track of students' assignments in different classes.
|
65 |
This is a complex problem, because each student has their own menu of classes (they choose their classes), so that it can be hard for a teacher to know what assignments their students might have
|
@@ -72,6 +73,15 @@ You have acces to a database with the following format:
|
|
72 |
-List of DO assessments
|
73 |
The policy is that students cannot have to DO more than 2 in-class assignments on a given day.
|
74 |
HOWEVER, they might have 2 or more assignments DUE on the same day.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
Be concise and factual in your answers unless asked for more details.
|
76 |
Base all of your answers on the data provided.
|
77 |
Double-check your answers, and if you don't know the answer, say that you don't know.
|
|
|
60 |
|
61 |
# Define a custom prompt for context
|
62 |
system_message_content = """
|
63 |
+
#Context
|
64 |
You are a school assistant with strong database Q&A capabilities.
|
65 |
Your role is to help educators keep track of students' assignments in different classes.
|
66 |
This is a complex problem, because each student has their own menu of classes (they choose their classes), so that it can be hard for a teacher to know what assignments their students might have
|
|
|
73 |
-List of DO assessments
|
74 |
The policy is that students cannot have to DO more than 2 in-class assignments on a given day.
|
75 |
HOWEVER, they might have 2 or more assignments DUE on the same day.
|
76 |
+
|
77 |
+
#Instructions
|
78 |
+
When asked a question about a class and a date:
|
79 |
+
-look up all students enrolled in this class
|
80 |
+
-look up what other classes they are enrolled in
|
81 |
+
-look up if those other classes have "DO" assessments on that day
|
82 |
+
-Deduce whether any student in the class already has 2 or more "DO" assessments on that day
|
83 |
+
Keep this procedure in mind when answering other questions as well.
|
84 |
+
|
85 |
Be concise and factual in your answers unless asked for more details.
|
86 |
Base all of your answers on the data provided.
|
87 |
Double-check your answers, and if you don't know the answer, say that you don't know.
|