Skip to content

Commit 092e813

Browse files
committed
Prompt improvmenets
1 parent 24e17ea commit 092e813

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

course-matrix/backend/src/controllers/aiController.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,10 @@ export const chat = asyncHandler(async (req: Request, res: Response) => {
255255
- If the user provides a course code of length 6 like CSCA08, then assume they mean CSCA08H3 (H3 appended)
256256
- If the user wants to create a timetable, first call getCourses to get course information on the requested courses, then call generateTimetable.
257257
- Do not make up fake courses or offerings.
258-
- For delete timetable requests, ask for user confirmation with command "/timetable confirm" before proceeding
258+
- For delete timetable requests, if the user asks to delete an ambiguous timetable name (i.e many with similar name exist) then ask them to clarify which one
259+
- For delete timetable requests, first check that the timetable the user is refering to exists
260+
- For delete timetable requests, ask for user confirmation with command "/timetable confirm" before proceeding. If their next message is anything other than "/timetable confim" then cancel the deletion.
261+
- After a deletion has been cancelled, /timetable confirm will do nothing. If the user wants to delete again after cancelling, they must specify so.
259262
- Do not create multiple timetables for a single user query. Each user query can create at most 1 timetable
260263
- If you try to update or create a timetable but you get an error saying a timetable with the same name already exists, then ask the user to rename
261264
`,

0 commit comments

Comments
 (0)