feat: Add AI Assistant with duplicate detection and emergency announcements#139
Open
iamgerwin wants to merge 6 commits intobettergovph:mainfrom
Open
feat: Add AI Assistant with duplicate detection and emergency announcements#139iamgerwin wants to merge 6 commits intobettergovph:mainfrom
iamgerwin wants to merge 6 commits intobettergovph:mainfrom
Conversation
Implements similarity detection algorithm using Jaccard coefficient to find similar ideas and prevent duplicate submissions. Includes utility functions for calculating similarity scores and formatting.
Creates modal UI to display similar ideas when duplicates are detected. Shows similarity scores and allows users to review existing ideas or continue with their submission.
Implements form component with AI-powered duplicate checking. Validates input before submission and shows loading state during AI processing.
Creates component to display emergency alerts from government sources like PAGASA and PHIVOLCS. Supports dismissing announcements and automatic expiration.
- Add AI-powered idea submission with duplicate detection - Display emergency announcements at the top of the page - Update UI to show AI Assistant option alongside GitHub submission - Handle new idea submissions with mock data storage
Document the new AI Assistant capabilities including duplicate detection, emergency announcements integration, and smart guidance for contributors.
Member
|
Is it really an "AI assistant" if we're just doing string comparison? I don't think we should be using AI assistant as a marketing term for this. |
|
Stale pull request message |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Implements the initial AI Assistant features as proposed in issue #82, focusing on duplicate detection for idea submissions and emergency announcement integration.
Key Features Implemented
1. Duplicate Detection Service
2. Emergency Announcements Component
3. AI-Powered Idea Submission Form
4. Ideas Page Integration
Technical Details
Testing
Future Enhancements
As outlined in issue #82, future iterations can include:
Screenshots
The AI Assistant features are now integrated into the Ideas page with a clean, intuitive interface that maintains the existing design language of BetterGov.ph.
Closes #82