Skip to content

Commit 59c44db

Browse files
committed
Improve AI search for one real course among many fakes
1 parent 514d115 commit 59c44db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export async function reformulateQuery(
134134
- DO replace pronouns and references with specific names and identifiers
135135
- DO include course codes, names and specific details for academic entities
136136
- If the query is not about university courses & offerings, return exactly a copy of the user's query.
137-
- Append "code: " before course codes For example: "CSCC01" -> "code: CSCC01"
137+
- Append "code: " before each course code For example: "CSCC01, BIOA01" -> "code: CSCC01, code: BIOA01"
138138
- If a course year level is written as "first year", "second year", etc. Then replace "first" with "1st" and "second" with "2nd" etc.
139139
140140
Examples:

0 commit comments

Comments
 (0)