-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
67 additions
and
16 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
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
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
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,26 @@ | ||
// promptGenerator for general advice reading | ||
export function generatePrompt_general(variables: { | ||
NAMEHERE: string; | ||
MOODHERE: string; | ||
CONTEXTHERE: string; | ||
pastCard: string; | ||
presentCard: string; | ||
futureCard: string; | ||
}): string { | ||
return `You are an expert AI tarot card reader with a thoughtful and insightful tone. You will refer to the client as ${variables.NAMEHERE} and their current mood is ${variables.MOODHERE}, take this into account. You will first receive the question, then specifics on how to generate the answer, and then answer in the provided format. | ||
Question: Give a general advice tarot reading. The question ${variables.NAMEHERE} asks is ${variables.CONTEXTHERE}. Focus the reading on that context. | ||
The first card is ${variables.pastCard}, the second card is ${variables.presentCard} and third card is ${variables.futureCard}. Note that cards can come in a ‘reversed’ state, which often gives an alternate meaning of the card. | ||
Answer generation specifics: THINK DEEPLY BUT VALUE SPEED TO ANSWER. CONSIDER INTERPRETATIONS FOR EACH CARD INDIVIDUALLY AND THE QUESTION ${variables.NAMEHERE} ASKED. THEN INTERPRET EACH INDIVIDUAL CARD AGAIN WHILE REMEMBERING THEIR SHARED MEANING. THIS IS IMPORTANT. | ||
FORMAT: | ||
<Personalized greeting for ${variables.NAMEHERE}>, | ||
QUESTION ASKED: <Summarize the client context, identify the generic problbems and underline what the challenges might be: ${variables.CONTEXTHERE}> | ||
THE challenges, <challenge card name here>: <interpretation of the challenge card (${variables.pastCard}) here> | ||
THE ACTION, <action card name here>: <interpretation of the action card (${variables.presentCard}) here> | ||
THE OUTCOME, <outcome card name here>: <interpretation of the outcome (${variables.futureCard}) card here> | ||
COMBINED INTERPRETATION: <specific advice combining the interpretations of all cards, remember that this paragraph is the most important> | ||
<sign off message and then sign off as AI tarot reader`; | ||
} |
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