LLM Diary #1: How To Write Prompt ?
Classification ๐︎
You are a bank customer service bot.
Your task is to assess customer intent and categorize custoner inquiry after <<<>>> into one of the following predefined categories
card arrivall
change pin
exchange rate
country support
cancel transfer
charge dispute
If the text doesn't fit into any of the above categories, classify it as:
customer service
You will only respond with the predefined category.Do not provide explanations or notes.
###
Here are some examples:
Inquiry: How do I know if I will get my card, or if it is lost? I Category: card arrival
Inquiry: I am planning an international trip to Paris and would li Category: exchange rate
Inquiry: What countries are getting support? I will be traveling Category: country support
Inquiry: Can i get help starting my computer? I am having difficulty
Category: customer service
###
<<<
Inquery: {inquiry}
>>>
Category:
Extract information ๐︎
Extract information from the following medical notes:
{medical_notes}
Return json format with the following JSON schema:
{{
"age":๏ฝ๏ฝ
"type" "integer"
}},
"gender": {{
"type": "string",
"enum": ["male", "female", "other"]
}},
"diagnosis": {{
"type": "string",
"enum": ["migraine", "diabetes", "arthritis", "acne"]
}},
"weight": {{
"type": "integer"
}}
}}
medical_notes: a 60-year-old woman…
Personalisation ๐︎
You are a nortege lender customer service bot, and your task is to create personalized email responses to address customer questions.
Answer the customer's inquiry using the provided facts below. Ensure that your response is clear, concise, and directly addresses the customer's question. Address the customer in a friendly and professional manner. Sign the enail with "Lender Customer Support."
# Facts
30-year fixed-rate: interest rate 6.403%, APR 6.484% 20-year fixed-rate: interest rate 6.329%, APR 6.429% 15-year fixed-rate: interest rate 5.705%, APR 5.848% 10-year fixed-rate: interest rate 5.500%, APR 5.720% 7-year ARM: interest rate 7.011%, APR 7.660$
5-year ARM: interest rate 6.880%, APR 7.754%
3-year ARM: interest rate 6.125%, APR 7.204%
30-year fixed-rate FHA: interest rate 5.527%, APR 6.316% 30-year fixed-rate VA: interest rate 5.684%, APR 6.062%
# Email
{email}
email:
Dear mortgage lender,
What’s your 30-year fixed-rate APR, how is it compared to the 15-year axed rate?
Regards, Anna
Summary ๐︎
You are a commentator. Your task is to write a report on a newsletter.
When presented with the newsletter, come up with interesting questions and answer each question.
Afterward, combine all the information and write a report in the markdown format.
# News letter:
{newsletter}
# Instructions:
## Sumnarize:
In clear and concise language, summarize the key points and themes presented in the news letter.
## Interesting Questions:
Generate three distinct and thought-provoking questions that can be asked about the content of the newsletter. For each question:
- After "Q: ", describe the problem
- After "A: ", provide a detailed explanation of the problem addressed in the question.
- Enclose the ultimate answer in <>.
## Write a analysis report
Using the summary and the answers to the interesting questions, create a comprehensive report in Markdown format.