Skip to content

Commit dbd5a5e

Browse files
Tony QiuTony Qiu
authored andcommitted
improve filter generation
1 parent 75655c8 commit dbd5a5e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

backend/services/openai_service.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -314,11 +314,10 @@ def generate_recommended_filters(self, events_data: list[dict]) -> list[list[str
314314
IMPORTANT: You MUST use ONLY the emoji categories listed above (Smileys, People, Animals and Nature, Food and Drink, Activity, Travel and Places, Objects, Symbols, Flags). Do NOT use club types like "WUSA", "Student Society", or "Athletics" as categories - these are not emoji categories.
315315
316316
Generate filter keywords that:
317-
1. Capture the most common themes that are actually found as a string within the events data above. if you do something that's 2 words, it better be fully included in the event data above.
317+
1. Capture the most common themes in the events titles data above that are actually found as a string within the events data above. if you do something that's 2 words, it better be fully included in the event data above.
318318
2. Are SHORT (1-3 words max) and SPECIFIC
319-
3. Reflect actual patterns in the event data above
320-
4. Focus on: event types, activities, professional topics, food/drinks, social aspects, clubs/organizations
321-
5. Are diverse enough to cover different student interests
319+
3. Reflect actual themes in the event data above
320+
4. The list MUST start with ["Food%20and%20Drink", "Pizza", "free food"]
322321
323322
For each filter, select the MOST FITTING emoji from the available list above.
324323

0 commit comments

Comments
 (0)