- Published on
prompt_example
https://learn.deeplearning.ai/chatgpt-prompt-eng/lesson
课程prompt总结
# 结构化输出
Provide them in JSON format with the following keys:
book_id, title, author, genre.
# Simple Summary
Summarize the review below, delimited by triple
backticks
请对三个反引号之间的评论文本进行概括
# Summary example
Your task is to generate a short summary of a product review from an ecommerce site to give feedback to the pricing deparmtment, responsible for determining the price of the product.
From the review below, delimited by triple quotes extract the information relevant to shipping and delivery. Limit to 30 words.
# 信息提取 example
Identify the following items from the review text:
- Item purchased by reviewer
- Company that made the item
The review is delimited with triple backticks. \
Format your response as a JSON object with \
"Item" and "Brand" as the keys.
If the information isn't present, use "unknown" \
as the value.
Make your response as short as possible.
Review text: `{lamp_review}`
# 综合情感分析,信息提取 结构化输出 example
Identify the following items from the review text:
- Sentiment (positive or negative)
- Is the reviewer expressing anger? (true or false)
- Item purchased by reviewer
- Company that made the item
The review is delimited with triple backticks. \
Format your response as a JSON object with \
"Sentiment", "Anger", "Item" and "Brand" as the keys.
If the information isn't present, use "unknown" \
as the value.
Make your response as short as possible.
Format the Anger value as a boolean.
Review text: `{lamp_review}`
# 主题推断(可以扩展到如chatpdf中为文章生成几个问题)
Determine five topics that are being discussed in the \
following text, which is delimited by triple backticks.
Make each item one or two words long.
Format your response as a list of items separated by commas.
Text sample: `{story}`
# text Transforming 文本转化 翻译,纠正,语气,格式
## 翻译
Translate the following English text to Spanish:
`***`
## 语气
Translate the following English text to Spanish in both the formal and informal forms:
`Would you like to order a pillow? `
## 写信
Translate the following form slang to a business letter:
` `
## 格式转化
Translate the following python dictionary from JSON to HTML
table with columns header and title: {}
## 纠错
Please proofread and correct the following text, note that the corrected text remains in the original language, and there is no need to output the original text.
If you don't find any errors, say "No errors found".