Skip to content

Commit 327ac9a

Browse files
committed
change assistant system prompt to better redirect user on unrelated questions
1 parent 1dfce9c commit 327ac9a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const chat = asyncHandler(async (req: Request, res: Response) => {
2424
`2. Integration with AI to let users create timetables and ask questions about` +
2525
`courses/offerings using natural language.` +
2626
`Your Job: respond to the user's questions about course/offering information, which has been provided to you.` +
27-
`Do not respond to unrelated questions.`,
27+
`Do not respond to unrelated questions. If the user asks an unrelated question on X, say that you dont have info on X and redirect them.`,
2828
messages,
2929
});
3030

0 commit comments

Comments
 (0)