Add new 'Classical Serenity' playlist, and adjust the review prompt to more precisely remove tracks that do not fit the brief.
This commit is contained in:
1 parent
6c3121bc19
commit
bd2359b5af
1 file changed
+25
-12
@@ -138,6 +138,17 @@ AI_PLAYLIST_DEFINITIONS = [
|
||||
"rock, no hip-hop, no tracks with prominent vocals or lyrics, no strong "
|
||||
"rhythmic beats, and no catchy hooks or memorable melodies."
|
||||
)
|
||||
},
|
||||
{
|
||||
"name": "AI: Classical Serenity",
|
||||
"prompt": (
|
||||
"Calming, restorative classical music to soothe emotions and quiet the mind. "
|
||||
"Gentle solo piano works (e.g. Debussy, Satie, Chopin nocturnes), serene "
|
||||
"string adagios, peaceful chamber pieces, and soft, lyrical slow movements. "
|
||||
"STRICT EXCLUSIONS: Exclude bombastic orchestral marches, loud brass fanfares, "
|
||||
"dramatic or intense symphonic allegros, jarring dissonant modern classical, "
|
||||
"Christmas carols, and all non-classical genres (no pop, rock, or electronic)."
|
||||
)
|
||||
}
|
||||
]
|
||||
|
||||
@@ -581,20 +592,22 @@ def ask_gemini_for_tracks(prompt, candidates):
|
||||
def ask_gemini_to_review_tracks(prompt, tracks_in_playlist):
|
||||
system_instruction = (
|
||||
"You are an expert music archivist performing quality control on an existing playlist. "
|
||||
"Review the tracks and identify any that CLEARLY do not belong based on the thematic brief. "
|
||||
"Review the tracks and identify any that do not genuinely fit the thematic brief. "
|
||||
"CRITICAL INSTRUCTIONS:\n"
|
||||
"1. Be VERY CONSERVATIVE. Only flag tracks you are HIGHLY CONFIDENT are a bad fit. "
|
||||
"If there is any reasonable argument for keeping a track, KEEP IT.\n"
|
||||
"2. Use your deep knowledge of music - artist styles, moods, instrumentation. "
|
||||
"Do not rely solely on genre tags.\n"
|
||||
"3. Respect STRICT EXCLUSIONS in the prompt - tracks violating an explicit "
|
||||
"exclusion rule are fair game for removal.\n"
|
||||
"4. Each track includes a duration_seconds field. Use it to enforce any "
|
||||
"duration-based rules in the prompt.\n"
|
||||
"5. When in doubt, KEEP the track.\n"
|
||||
"6. Return ONLY a JSON array of string IDs of tracks to REMOVE. "
|
||||
"1. Maintain a cohesive, high-quality playlist. Flag tracks that feel out of place, "
|
||||
"break the intended mood, or fall outside the core genres/styles requested—even if they "
|
||||
"are good songs in their own right.\n"
|
||||
"2. Use your deep knowledge of music - artist styles, moods, instrumentation, and "
|
||||
"arrangement. Do not rely solely on genre tags.\n"
|
||||
"3. STRICT EXCLUSIONS and duration limits are hard rules: ALWAYS flag any track that "
|
||||
"violates an explicit exclusion or exceeds a specified duration_seconds limit (e.g. "
|
||||
"duration_seconds > 480 when capped at 8 minutes).\n"
|
||||
"4. Balance firmness with consistency: do not nitpick or remove tracks that genuinely "
|
||||
"belong, as we want a stable playlist rather than daily churn, but do not hesitate to "
|
||||
"prune clear misfits or borderline tracks that dilute the vibe.\n"
|
||||
"5. Return ONLY a JSON array of string IDs of tracks to REMOVE. "
|
||||
"Return [] if all tracks are acceptable.\n"
|
||||
"7. No markdown, no code blocks, no conversational text."
|
||||
"6. No markdown, no code blocks, no conversational text."
|
||||
)
|
||||
user_content = (
|
||||
f"Playlist Brief: {prompt}\n\n"
|
||||
|
||||
Reference in new issue
Block a user