Skip to content

[FEATURE]Β #310

@techspikenet-ui

Description

@techspikenet-ui

Request Feature: I notice instant playlist with AI (used Ollama-mistral) results are good but too many duplicates title. somtime same title and same arrtist sometme same title different artist. Maybe dev could add remove_duplicate. normalize the title and artist then remove duplicates. here is a sample request summary : 🎡 NEW MCP-BASED PLAYLIST GENERATION

Request: 'relax folk songs tool ai_brainstorm. ***Remove song with same title'

AI Provider: OLLAMA

πŸ€– Using MCP Agentic Workflow for playlist generation

Target: 100 songs

Available tools: song_similarity, text_search, artist_similarity, song_alchemy, ai_brainstorm, search_database

============================================================

ITERATION 1/5

Current progress: 0/100 songs

============================================================

--- AI Decision (Iteration 1) ---

Using timeout: 300 seconds for Ollama request

Ollama raw response (first 300 chars): {

"tool_calls": [

{

  "name": "ai_brainstorm",

  "arguments": {

    "user_request": "relax folk songs",

    "get_songs": 100,

    "remove_duplicates": true

  }

}

]

}

Attempting to parse: {

"tool_calls": [

{

  "name": "ai_brainstorm",

  "arguments": {

    "user_request": "relax folk songs",

    "get_songs": 100,

    "remove_duplicates": true

  }

}

]

βœ“ Extracted tool_calls array with 1 items

βœ… Ollama returned 1 valid tool calls

--- Executing 1 Tool(s) ---

πŸ”§ Tool 1/1: ai_brainstorm

Arguments: {

  "user_request": "relax folk songs",

  "get_songs": 100,

  "remove_duplicates": true

}

βœ… Retrieved 12 songs from database

Using AI knowledge to brainstorm songs for: relax folk songs

AI suggested 20 songs

Found 12 songs in database

πŸ“Š Added 12 NEW unique songs

🎡 Sample songs: 5/12

  1. The Boxer - Simon & Garfunkel

  2. House Of The Rising Sun (PMEDIA) - The Animals

  3. House Of The Rising Sun (PMEDIA) - The Animals

  4. Obviously Five Believers (PMEDIA) - Bob Dylan

  5. Obviously Five Believers (PMEDIA) - Bob Dylan

πŸ“ˆ Iteration 1 Summary:

Songs added this iteration: 12

Total songs now: 12/100

============================================================

ITERATION 2/5

Current progress: 12/100 songs

============================================================

--- AI Decision (Iteration 2) ---

Using timeout: 300 seconds for Ollama request

Ollama raw response (first 300 chars): {

"tool_calls": [

{

  "name": "text_search",

  "arguments": {

    "description": "relax folk songs",

    "get_songs": 88

  }

},

{

  "name": "ai_brainstorm",

  "arguments": {

    "user_request": "folk songs (exclude similar to current)",

    "get_song

Attempting to parse: {

"tool_calls": [

{

  "name": "text_search",

  "arguments": {

    "description": "relax folk songs",

    "get_songs": 88

  }

},

{

  "name": "ai_brainstorm",

βœ“ Extracted tool_calls array with 3 items

βœ… Ollama returned 3 valid tool calls

--- Executing 3 Tool(s) ---

πŸ”§ Tool 1/3: text_search

Arguments: {

  "description": "relax folk songs",

  "get_songs": 88

}

βœ… Retrieved 88 songs from database

CLAP text search: 'relax folk songs'

CLAP returned 100 songs

Retrieved 100 songs from CLAP

πŸ“Š Added 88 NEW unique songs

🎡 Sample songs: 5/88

  1. Apostle - Peter Green

  2. Blue Red and Grey - The Who

  3. Your Long Journey - Robert Plant & Alison Krauss

  4. Maria Elena - Ry Cooder

  5. A Pillow of Winds - Pink Floyd

πŸ”§ Tool 2/3: ai_brainstorm

Arguments: {

  "user_request": "folk songs (exclude similar to current)",

  "get_songs": 88

}

βœ… Retrieved 18 songs from database

Using AI knowledge to brainstorm songs for: folk songs (exclude similar to current)

AI suggested 21 songs

Found 18 songs in database

πŸ“Š Added 6 NEW unique songs

🎡 Sample songs: 5/6

  1. To Make You Feel My Love - Billy Joel

  2. Tell Her About It - Billy Joel

  3. Just the Way You Are - Billy Joel

  4. Black Magic Woman (2018 Master) (PMEDIA) - Fleetwood Mac

  5. Like It This Way (PMEDIA) - Fleetwood Mac

πŸ”§ Tool 3/3: search_database

Arguments: {

  "genres": [

        "folk"

  ],

  "moods": [

        "relaxed"

  ],

  "get_songs": 100,

  "current_songs": [

        "<CURRENT SONG TITLES>"

  ]

}

βœ… Retrieved 100 songs from database

Found 100 songs matching genres: folk, moods: relaxed

πŸ“Š Added 96 NEW unique songs

🎡 Sample songs: 5/96

  1. Bring on the Lucie (Freda Peeple) (ultimate mix) - John Lennon

  2. Love Scene Improvisations, Version 3 - Jerry Garcia

  3. Old Pigweed - Mark Knopfler

  4. Whalewatching - Jon Anderson

  5. Wayfaring Stranger - Ry Cooder

πŸ“ˆ Iteration 2 Summary:

Songs added this iteration: 190

Total songs now: 202/100

============================================================

ITERATION 3/5

Current progress: 202/100 songs

============================================================

βœ… Target reached! Stopping iteration.

βœ… SUCCESS! Generated playlist with 100 songs

Total songs collected: 202

βš–οΈ Proportionally sampled 102 excess songs to meet target of 100

Iterations used: 3/5

Tools called: 4

πŸ“Š Tool Contribution (Collected β†’ Final Playlist):

β€’ ai_brainstorm(request='relax folk songs...'): 12 collected β†’ 8 in final playlist

β€’ text_search(no filters): 88 collected β†’ 43 in final playlist

β€’ ai_brainstorm(request='folk songs (exclude similar to...'): 6 collected β†’ 2 in final playlist

β€’ search_database(genres=['folk'], moods=['relaxed']): 96 collected β†’ 47 in final playlist

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions