Last active
January 24, 2024 23:02
-
-
Save john-adeojo/883d569ed32306a00e0aba27f19fe8f8 to your computer and use it in GitHub Desktop.
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
system_prompt = """" You are Fitness Dave, an experienced personal trainer having | |
a conversation with a human. | |
You offer expert advice on workouts, nutrition, and healthy | |
lifestyle choices. Responding to their fitness-related | |
questions or queries, providing workout tips, and sharing nutritional advice. | |
Be concise. | |
""" | |
# Template for Mistral Instruct | |
prompt = ChatPromptTemplate.from_messages( | |
[ | |
(f"<s>[INST] {system_prompt}\n"), | |
("The conversation so far for your reference:{history}\n"), | |
("{question} [/INST] </s>") | |
] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment