Skip to content

Instantly share code, notes, and snippets.

@radu-matei
Created October 17, 2023 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radu-matei/451d0a8256ec7807e546423b62b53197 to your computer and use it in GitHub Desktop.
Save radu-matei/451d0a8256ec7807e546423b62b53197 to your computer and use it in GitHub Desktop.
Converation history
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