Enable Natural Language Search + Improved AI Context & Prompt Formatting #384
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces natural language search for both events and hackathons, allowing users to search using flexible, human-style queries instead of rigid keyword matching.
Additionally, the AI context-generation pipeline has been refined to produce cleaner, more structured prompts, improving response quality, personalization, and contextual awareness.
✅ Key Enhancements
1. Natural Language Search for Events & Hackathons
"Show me upcoming coding competitions"
"Any hackathons in December?"
"Events related to AI or startups"
2. Improved AI Context Generation
Consolidated and optimized contextual data collection.
Injected cleaner structure into the context object.
Ensures the AI receives:
This leads to more accurate and personalized responses.
3. Refined Prompt Formatting
🧪 Testing
Search
Try different natural language queries:
Confirm results appear in correct order and relevance.
AI Responses
🔍 Notes
These updates do not modify database schema or authentication logic.
All changes are isolated to search utilities, context building, and prompt generation.
🤖💫 Funny Note
With all these upgrades, the AI can now understand your searches and your life better-
just don’t ask it for dating advice; even supercomputers crash under that workload. 😄
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.