AudioMuse-AI icon indicating copy to clipboard operation
AudioMuse-AI copied to clipboard

[FEEDBACK] Enhance cluster playlist naming prompt

Open ElectricTea opened this issue 11 months ago • 3 comments

Hi! I'm loving AudioMuse-AI so far, the integration with Jellyfin and Finamp is great!

I have a few suggestions to modify the cluster playlist naming prompt. My goal is to nudge the model towards generating more consistent playlist names.

Original prompt: (Version v0.8.2)

You're an expert of music and you need to give a title to this playlist.
The title need to represent the mood and the activity of when you listening the playlist.
The title MUST use ONLY standard ASCII (a-z, A-Z, 0-9, spaces, and - & ' ! . , ? ( ) [ ]).
No special fonts or emojis.
* BAD EXAMPLES: 'Ambient Electronic Space - Electric Soundscapes - Emotional Waves' (Too long/descriptive)
* BAD EXAMPLES: 'Blues Rock Fast Tracks' (Too direct/literal, not evocative enough)
* BAD EXAMPLES: '𝑯𝒘𝒆 𝒂𝒓𝒐𝒏𝒊 𝒅𝒆𝒕𝒔' (Non-standard characters)

CRITICAL: Your response MUST be ONLY the single playlist name. No explanations, no 'Playlist Name:', no numbering, no extra text or formatting whatsoever.
This is the playlist: - <Title of song 1> by <Artist name>
- <Title of song 2> by <Artist name>
- <Title of song 3> by <Artist name>
- <Title of song N> by <Artist name>

Suggested changes

  • Line 1: Refine the role of the model and include MUST keyword - You are an expert music collector and MUST give a title to this playlist.
  • Line 2: Include MUST keyword, and tweak words around "listen" - The title MUST represent the mood and the activity of when you are listening to the playlist.
  • Line 4: Include the hardcoded character limits in the prompt - The title MUST be within the range of 5 to 40 characters long.
  • Line 10: add a linebreak between the end of the prompt and the list of songs

Modified prompt:

You are an expert music collector and MUST give a title to this playlist.
The title MUST represent the mood and the activity of when you are listening to the playlist.
The title MUST use ONLY standard ASCII (a-z, A-Z, 0-9, spaces, and - & ' ! . , ? ( ) [ ]).
The title MUST be within the range of 5 to 40 characters long.
No special fonts or emojis.
* BAD EXAMPLES: 'Ambient Electronic Space - Electric Soundscapes - Emotional Waves' (Too long/descriptive)
* BAD EXAMPLES: 'Blues Rock Fast Tracks' (Too direct/literal, not evocative enough)
* BAD EXAMPLES: '𝑯𝒘𝒆 𝒂𝒓𝒐𝒏𝒊 𝒅𝒆𝒕𝒔' (Non-standard characters)

CRITICAL: Your response MUST be ONLY the single playlist name. No explanations, no 'Playlist Name:', no numbering, no extra text or formatting whatsoever.
This is the playlist:
- <Title of song 1> by <Artist name>
- <Title of song 2> by <Artist name>
- <Title of song 3> by <Artist name>
- <Title of song N> by <Artist name>

Additional notes

Task Parameters:

All analysis and clustering parameters were default from version v0.8.2, with the exception of using ollama with granite4:7b-a1b-h

What was confusing or could be improved?

  • There is no indication in the Web UI that clustered playlists with fewer than 20 songs are discarded. Given the default number of clusters (40 - 100) and a libary size of 700 songs, every cluster had less than 20 songs and was discarded. A notification to the user of 0 successful playlists and a suggestion to lower the K-Means min/max clusters would reduce user confusion.
  • The hamburger menu icon to open the sidebar menu is small, I did not notice it for a long time.
  • A dark mode would help tired eyes at night.

Any Other Thoughts or Ideas?

AudioMuse-AI is a great project, and i'm looking foward to it's continued success!

ElectricTea avatar Dec 19 '25 00:12 ElectricTea

Hi and thanks for the feedback. The prompt improvement will be very appreciated, if you want to rasie a PR I'll merge for sure. About the other point:

  • 20 song minimum I think is a common ground to have micro playlist. Sincerily I would like to decrease the number of parameter more than encrease. If you have small playlist, ask to create less, so intead off 40-100 try 20-40.
  • Hamburger menu and dark mode, I feel I don't have time for this in the near future, will be nice if you would like to implement and raise a PR.

Another time thanks for your feedback, I'm really happy to read people that use AudioMuse-AI and find new way to improve it. It's only that in this moment I'm laser focused on improve the Machine Learning hearth and fix the bug that arise in the meanwhile. So I don't have much time for this other improvement in the near future.

NeptuneHub avatar Dec 22 '25 13:12 NeptuneHub

Just updated the prompt with your suggestion. Should be ready in devel image in around 1h. Thanks for your support.

NeptuneHub avatar Jan 19 '26 13:01 NeptuneHub

Right now the naming prompt hard-requires standard ASCII only, and the response is additionally normalized/stripped to ASCII in code afterwards. This means that even when a locally-hosted, language-specific model is used (e.g. a Polish fine-tune like SpeakLeash/Bielik running via Ollama), the generated playlist name is always forced back into English words — diacritics and non-Latin characters get silently stripped even if the model itself produces a perfectly good name in the target language.

It would be great to have an option (e.g. a PLAYLIST_NAME_ALLOWED_CHARSET or PLAYLIST_NAME_LANGUAGE config value, or simply widening the whitelist to Unicode letter categories) so users running non-English models can get playlist names in their own language instead of ASCII-only English output. Happy to test this on my own setup (Ollama + Bielik-11B) if a PR/beta build is available.

TomaszBojanowski avatar Aug 19 '26 13:08 TomaszBojanowski