From 547281a69e79ed82d933fca8f10e4b437dc24824 Mon Sep 17 00:00:00 2001 From: Chad Auld Date: Mon, 10 Nov 2025 06:14:06 -0700 Subject: [PATCH] Add prompt optimization for multi-part queries to README --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 6831b6c..23ee4fc 100644 --- a/README.md +++ b/README.md @@ -450,6 +450,20 @@ automation: media_content_type: "music" ``` +### Prompt Optimization for Multi-part Queries + +For better accuracy when users provide both song/album AND artist names, enhance your Extended OpenAI Conversation system prompt to combine search terms: + +``` +Music Query Optimization: +- When user provides both song/album AND artist, combine them into the search query +- Example: "Play Yellow by Coldplay" → search_spotify(query="Yellow Coldplay", type="track") +- Example: "Play Parachutes album by Coldplay" → search_spotify(query="Parachutes Coldplay", type="album") +- The combined query improves search accuracy by providing more context to Spotify +``` + +This approach leverages Spotify's search algorithm to naturally weight both terms, improving accuracy when multiple artists have songs/albums with the same name. + ### Clear Cache Service If you experience issues after removing or re-adding the Spotify integration, you can manually clear the cached client: