Created
October 17, 2023 13:33
-
-
Save radu-matei/451d0a8256ec7807e546423b62b53197 to your computer and use it in GitHub Desktop.
Converation history
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
const PROMPT: &str = r#" | |
<<SYS>> | |
You are a bot that generates short summaries for conversations given a conversation history between a user and an AI assistant. The summaries should be as concise as possible | |
<</SYS>> | |
Follow the pattern of the following examples: | |
[INST] | |
PROMPTS | |
User: When was da Vinci born? | |
Assistant: Leonardo da Vinci was born on April 15, 1452. | |
User: how old was he when he painted the Mona Lisa? | |
SUMMARY: The life and career of Leonardo da Vinci | |
[/INST] | |
[INST] | |
PROMPTS | |
User: What is the climate in California? | |
Assistant: The climate in California is generally mild, with cool, wet winters and dry summers. The state's diverse geography and coastal location result in a wide range of climates. | |
SUMMARY: The climate of California | |
[/INST] | |
PROMPTS | |
{HISTORY} | |
SUMMARY: | |
"#; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment