diff --git a/custom_sentences/en/music_assistant_PlayMediaAssist.yaml b/custom_sentences/en/music_assistant_PlayMediaAssist.yaml deleted file mode 100644 index 735a254f..00000000 --- a/custom_sentences/en/music_assistant_PlayMediaAssist.yaml +++ /dev/null @@ -1,87 +0,0 @@ -language: "en" -intents: - MassPlayMediaAssist: - data: - - # TARGET AN AREA - - sentences: - - " {artist} in [the ] [((with)|(using)) {radio_mode}]" - - " {album} [by {artist}] in [the ] [((with)|(using)) {radio_mode}]" - - " {track} [by {artist}] in [the ] [((with)|(using)) {radio_mode}]" - - " {playlist} in [the ] [((with)|(using)) {radio_mode}]" - - " {radio} in [the ]" - expansion_rules: - play: "((play)|(listen to))" - artist: "[the ](artist|band|group)" - track: "[the ](track|song)" - album: "[the ](album|ep|record|compilation|single)" - playlist: "[the ]playlist" - radio_station: "[the ]((radio station)|(radio)|(station))" - - # TARGET A NAME - - sentences: - - " {artist} [the ]{name} [] [((with)|(using)) {radio_mode}]" - - " {album} [by {artist}] [the ]{name} [] [((with)|(using)) {radio_mode}]" - - " {track} [by {artist}] [the ]{name} [] [((with)|(using)) {radio_mode}]" - - " {playlist} [the ]{name} [] [((with)|(using)) {radio_mode}]" - - " {radio} [the ]{name} []" - expansion_rules: - play: "((play)|(listen to))" - player_devices: "((speaker)|([media] player))" - "on": "(on|using)" - artist: "[the ](artist|band|group)" - track: "[the ](track|song)" - album: "[the ](album|ep|record|compilation|single)" - playlist: "[the ]playlist" - radio_station: "[the ]((radio station)|(radio)|(station))" - requires_context: - domain: "media_player" - - # TARGET AN AREA AND A NAME - - sentences: - - " {artist} in [the ] [the ]{name} [] [((with)|(using)) {radio_mode}]" - - " {album} [by {artist}] in [the ] [the ]{name} [] [((with)|(using)) {radio_mode}]" - - " {track} [by {artist}] in [the ] [the ]{name} [][((with)|(using)) {radio_mode}]" - - " {playlist} in [the ] [the ]{name} [][((with)|(using)) {radio_mode}]" - - " {radio} in [the ] [the ]{name} []" - expansion_rules: - play: "((play)|(listen to))" - player_devices: "((speaker)|([media] player))" - "on": "(on|using)" - artist: "[the ](artist|band|group)" - track: "[the ](track|song)" - album: "[the ](album|ep|record|compilation|single)" - playlist: "[the ]playlist" - radio_station: "[the ]((radio station)|(radio)|(station))" - - # CONTEXT AWARNESS - - sentences: - - " {artist} [((with)|(using)) {radio_mode}]" - - " {album} [by {artist}] [((with)|(using)) {radio_mode}]" - - " {track} [by {artist}] [((with)|(using)) {radio_mode}]" - - " {playlist} [((with)|(using)) {radio_mode}]" - - " {radio}" - expansion_rules: - play: "((play)|(listen to))" - artist: "[the ](artist|band|group)" - track: "[the ](track|song)" - album: "[the ](album|ep|record|compilation|single)" - playlist: "[the ]playlist" - radio_station: "[the ]((radio station)|(radio)|(station))" - requires_context: - area: - slot: true -lists: - artist: - wildcard: true - album: - wildcard: true - track: - wildcard: true - playlist: - wildcard: true - radio: - wildcard: true - radio_mode: - values: - - "radio mode" diff --git a/custom_sentences/en/play_media_on_media_player.yaml b/custom_sentences/en/play_media_on_media_player.yaml deleted file mode 100644 index 071e3778..00000000 --- a/custom_sentences/en/play_media_on_media_player.yaml +++ /dev/null @@ -1,37 +0,0 @@ -language: "en" -intents: - MassPlayMediaOnMediaPlayer: - data: - - # TARGET AN AREA - - sentences: - - " {query};in [the ] [((with)|(using)) {radio_mode}]" - expansion_rules: - play: "((play)|(listen to))" - - # TARGET A NAME - - sentences: - - " {query}; [the ]{name} [] [((with)|(using)) {radio_mode}]" - expansion_rules: - play: "((play)|(listen to))" - player_devices: "((speaker)|([media] player))" - "on": "(on|using)" - requires_context: - domain: "media_player" - - # TARGET AN AREA AND A NAME - - sentences: - - " {query};in [the ] [the ]{name} [] [((with)|(using)) {radio_mode}]" - expansion_rules: - play: "((play)|(listen to))" - player_devices: "((speaker)|([media] player))" - "on": "(on|using)" - requires_context: - domain: "media_player" - -lists: - query: - wildcard: true - radio_mode: - values: - - "radio mode" diff --git a/prompt/prompt.txt b/prompt/prompt.txt deleted file mode 100644 index 75f5a118..00000000 --- a/prompt/prompt.txt +++ /dev/null @@ -1,38 +0,0 @@ -You are an AI process that transforms a music search query into a structured JSON. - -There are 2 response types possible. -Here is the structured JSON that I expect in the first response type {"media_id":"name", "media_type":"type"} -Here is the structured JSON that I expect in the second response type {"media_id":["name", "name"], "media_type":"type"} -Only 1 response type may be returned for each request. - -"media_type" can be one of 4 different values: "track" if the search is about a specific track, "album" if the search is about an album, "artist" if the search is about an artist, or "playlist" if the search is about a playlist. -media_type is mandatory - -media_id is the most specific from track, album, artist, and playlist. -If the search is about a track: Then media_id takes the form "artist name - track name". -If the search is about an album: Then media_id takes the form "artist name - album name". -If the search is about an artist: Then media_id takes the form "artist name". -If the search is about a list of tracks: Then media_id takes the form ["artist name - track name", "artist name - track name", "artist name - track name"] -If the search is about a playlist: Then media_id takes the form "playlist name". -media_id is mandatory. - -For example, if the input is "Hells Bells by ACDC", then the output should be {"media_id":"AC/DC - Hells Bells", "media_type":"track"}. - -As another example, if the input is "500 Random Tracks playlist", then the output should be {"media_id":"500 Random Tracks", "media_type":"playlist"} - -There can be 5 types of answers: -Just an artist like this {"media_id": "artist name", "media_type":"artist"}. -An album by an artist like this {"media_id": "artist name - album name", "media_type": "album"}. -A track by an artist like this {"media_id":"artist name - track name", "media_type":"track"}. -Just a track if the artist is not known like this {"media_id":"track name", "media_type":"track"}. -A playlist like this {"media_id":"All Favorited Tracks", "media_type":"playlist"} - -You must reply with only the JSON model, nothing before nor after because your response will be processed by a search component of a media listening service. - -Here are a few examples of input with the expected output: -"Hells Bells by ACDC" >> {"media_id":"AC/DC - Hells Bells", "media_type":"track"}. -"The artist that composed the soundtrack of Inception" >> {"media_id": "Hans Zimmer", "media_type":"artist"}. -"a list of 5 classic 80's rock tracks" >> {"media_id": ["Guns N' Roses - Sweet Child o' Mine", "AC/DC - Back in Black", "Bon Jovi - Livin' on a Prayer", "Def Leppard - Pour Some Sugar on Me", "Journey - Don't Stop Believin'"], "media_type":"track"} -"Play 500 random tracks playlist" >> {"media_id":"500 Random Tracks", "media_type":"playlist"} -"Play my liked songs playlist" >> {"media_id":"Liked songs", "media_type":"playlist"} -"Play my favorited tracks" >> {"media_id":"All Favorited Tracks", "media_type":"playlist"}