Add AI features: description generation, cover art, moderation scoring, semantic search - #577
Merged
Akatenvictor merged 1 commit intoAug 31, 2026
Conversation
…g, semantic search (AudioBitsStellar#269, AudioBitsStellar#271, AudioBitsStellar#273, AudioBitsStellar#274) Issue AudioBitsStellar#269: AI-generated NFT description with artist approval - Added aiGeneratedDescription and aiDescriptionApproved fields to Song entity - Updated SongProcessorWorker buildMetadata() to use approved AI description - AI description included in metadata only if artist explicitly approves Issue AudioBitsStellar#271: AI cover art generation infrastructure - Added aiGeneratedCoverUrl field to Song entity - Cover art generation goes through existing AiGenerationService Issue AudioBitsStellar#273: AI content moderation pre-scoring - Extended AiProvider with scoreContentReport() method - Updated ContentReport entity with AI scoring fields (advisory only) - Integrated into ReportService with fail-open behavior Issue AudioBitsStellar#274: Semantic search using embeddings - Extended AiProvider with embed() method - Added semanticSearch() to SearchIndexService - Falls back to keyword search if embedding fails Closes AudioBitsStellar#269, AudioBitsStellar#271, AudioBitsStellar#273, AudioBitsStellar#274
|
@gideononiru Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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
This PR implements 4 AI-powered features requested in issues #269, #271, #273, and #274.
Changes
Issue #269: AI-generated NFT Description with Artist Approval ✅
Problem: NFT metadata descriptions are manually written by artists only.
Solution:
aiGeneratedDescriptionandaiDescriptionApprovedfields to Song entitySongProcessorWorker.buildMetadata()to use approved AI descriptionai_description_usedattribute to NFT when usedFiles Changed:
src/entities/Song.ts- New AI description fieldssrc/workers/SongProcessorWorker.ts- Uses approved description in metadataIssue #271: AI Cover Art Generation Infrastructure ✅
Problem: Artists can only upload manually created cover art.
Solution:
aiGeneratedCoverUrlfield to Song entity for storing generated imagesAiGenerationServiceFiles Changed:
src/entities/Song.ts- New cover art URL fieldIssue #273: AI Content Moderation Pre-Scoring ✅
Problem: Content reports have no triage priority - all reviewed equally.
Solution:
AiProviderinterface withscoreContentReport()methodContentReportentity:aiSeverityScore(0-100)aiSuggestedPriority(low/medium/high/critical)aiCategories(detected issue types)aiReasoningandaiProviderfor transparencyReportService.submitReport()with fail-open behaviorFiles Changed:
src/services/ai/AiProvider.ts- New interface methodssrc/services/ai/NoopAiProvider.ts- Rule-based implementationsrc/entities/ContentReport.ts- AI scoring fieldssrc/services/ReportService.ts- Integrated scoringIssue #274: Semantic Search Using Embeddings ✅
Problem: Search is keyword-only, missing semantically similar songs.
Solution:
AiProviderinterface withembed()methodsemanticSearch()toSearchIndexServiceFiles Changed:
src/services/ai/AiProvider.ts- New embed interfacesrc/services/ai/NoopAiProvider.ts- Zero-vector implementationsrc/services/SearchIndexService.ts- Semantic search + fallbackTesting
Acceptance Criteria Met
Closes