小智头像图片
AI教程 2025年01月12日
0 收藏 0 点赞 312 浏览 4688 个字
摘要 :

面向开发者的LLM入门课程-文本扩展英文版: 文本扩展英文版 1.定制客户邮件 # given the sentiment from the lesson on “inferring”, # and the original c……

哈喽!伙伴们,我是小智,你们的AI向导。欢迎来到每日的AI学习时间。今天,我们将一起深入AI的奇妙世界,探索“面向开发者的LLM入门课程-文本扩展英文版”,并学会本篇文章中所讲的全部知识点。还是那句话“不必远征未知,只需唤醒你的潜能!”跟着小智的步伐,我们终将学有所成,学以致用,并发现自身的更多可能性。话不多说,现在就让我们开始这场激发潜能的AI学习之旅吧。

面向开发者的LLM入门课程-文本扩展英文版

面向开发者的LLM入门课程-文本扩展英文版:

文本扩展英文版

1.定制客户邮件

# given the sentiment from the lesson on “inferring”,
# and the original customer message, customize the email
sentiment = “negative”
# review for a blender
review = f”””
So, they still had the 17 piece system on seasonal
sale for around $49 in the month of November, about
half off, but for some reason (call it price gouging)
around the second week of December the prices all went
up to about anywhere from between $70-$89 for the same
system. And the 11 piece system went up around $10 or
so in price also from the earlier sale price of $29.
So it looks okay, but if you look at the base, the part
where the blade locks into place doesn’t look as good
as in previous editions from a few years ago, but I
plan to be very gentle with it (example, I crush
very hard items like beans, ice, rice, etc. in the
blender first then pulverize them in the serving size
I want in the blender then switch to the whipping
blade for a finer flour, and use the cross cutting blade
first when making smoothies, then use the flat blade
if I need them finer/less pulpy). Special tip when making
smoothies, finely cut and freeze the fruits and
vegetables (if using spinach-lightly stew soften the
spinach then freeze until ready for use-and if making
sorbet, use a small to medium sized food processor)
that you plan to use that way you can avoid adding so
much ice if at all-when making your smoothie.
After about a year, the motor was making a funny noise.
I called customer service but the warranty expired
already, so I had to buy another one. FYI: The overall
quality has gone done in these types of products, so
they are kind of counting on brand recognition and
consumer loyalty to maintain sales. Got it in about
two days.
“””

prompt = f”””
You are a customer service AI assistant.
Your task is to send an email reply to a valued customer.
Given the customer email delimited by “`,
Generate a reply to thank the customer for their review.
If the sentiment is positive or neutral, thank them for
their review.
If the sentiment is negative, apologize and suggest that
they can reach out to customer service.
Make sure to use specific details from the review.
Write in a concise and professional tone.
Sign the email as `AI customer agent`.
Customer review: “`{review}“`
Review sentiment: {sentiment}
“””
response = get_completion(prompt)
print(response)

Dear Valued Customer,
Thank you for taking the time to share your review with us. We appreciate your
feedback and apologize for any inconvenience you may have experienced.
We are sorry to hear about the price increase you noticed in December. We strive
to provide competitive pricing for our products, and we understand your
frustration. If you have any further concerns regarding pricing or any other
issues, we encourage you to reach out to our customer service team. They will be
more than happy to assist you.
We also appreciate your feedback regarding the base of the system. We
continuously work to improve the quality of our products, and your comments will
be taken into consideration for future enhancements.
We apologize for any inconvenience caused by the motor issue you encountered. Our
customer service team is always available to assist with any warranty-related
concerns. We understand that the warranty had expired, but we would still like to
address this matter further. Please feel free to contact our customer service
team, and they will do their best to assist you.
Thank you once again for your review. We value your feedback and appreciate your
loyalty to our brand. If you have any further questions or concerns, please do
not hesitate to contact us.
Best regards,
AI customer agent

2.引入温度系数

prompt = f”””
You are a customer service AI assistant.
Your task is to send an email reply to a valued customer.
Given the customer email delimited by “`,
Generate a reply to thank the customer for their review.
If the sentiment is positive or neutral, thank them for
their review.
If the sentiment is negative, apologize and suggest that
they can reach out to customer service.
Make sure to use specific details from the review.
Write in a concise and professional tone.
Sign the email as `AI customer agent`.
Customer review: “`{review}“`
Review sentiment: {sentiment}
“””
response = get_completion(prompt, temperature=0.7)
print(response)

Dear Valued Customer,
Thank you for taking the time to share your feedback with us. We sincerely
apologize for any inconvenience you experienced with our pricing and the quality
of our product.
We understand your frustration regarding the price increase of our 17 piece
system in December. We assure you that price gouging is not our intention, and we
apologize for any confusion caused. We appreciate your loyalty and we value your
feedback, as it helps us to improve our products and services.
Regarding the issue with the blade lock and the decrease in overall quality, we
apologize for any disappointment caused. We strive to provide our customers with
the best possible products, and we regret that we did not meet your expectations.
We will make sure to take your feedback into consideration for future
improvements.
If you require further assistance or if you have any other concerns, please do
not hesitate to reach out to our customer service team. They will be more than
happy to assist you in resolving any issues you may have.
Once again, we apologize for any inconvenience caused and we appreciate your
understanding. We value your business and we hope to have the opportunity to
serve you better in the future.
Best regards,
AI customer agent

面向开发者的LLM入门课程-聊天机器人“给定身份”
面向开发者的LLM入门课程-聊天机器人“给定身份”:聊天机器人 大型语言模型带给我们的激动人心的一种可能性是,我们可以通过它构建定...

嘿,伙伴们,今天我们的AI探索之旅已经圆满结束。关于“面向开发者的LLM入门课程-文本扩展英文版”的内容已经分享给大家了。感谢你们的陪伴,希望这次旅程让你对AI能够更了解、更喜欢。谨记,精准提问是解锁AI潜能的钥匙哦!如果有小伙伴想要了解学习更多的AI知识,请关注我们的官网“AI智研社”,保证让你收获满满呦!

微信打赏二维码 微信扫一扫

支付宝打赏二维码 支付宝扫一扫

版权: 转载请注明出处:https://www.ai-blog.cn/2498.html

相关推荐

AI写作-DeepSeek高阶提示词之自媒体爆款创作篇: 自媒体爆款创作篇 6.10W+标题生成器 “生成20个关…

小智头像图片
312

AI写作-DeepSeek高阶提示词之职场打工人必备篇: 职场打工人必备篇 1.会议纪要秒整理 “将以下会议…

小智头像图片
312

AI绘画-即梦3.0提示词示例之场景化种草型​: 场景化种草型​ 公式:产品+使用场景+氛围渲染+情感化…

小智头像图片
65

AI绘画-即梦3.0提示词示例之限时折扣型​: 限时折扣型​ 公式:产品+价格锚点+紧迫感元素+霓虹灯风…

小智头像图片
312

AI绘画-即梦3.0提示词示例之新品发布型: 新品发布型​ 公式:产品+核心卖点+高级质感+极简排版 ​ …

小智头像图片
312

AI绘画-即梦3.0提示词示例之节日促销型​: 节日促销型​ 公式:产品+节日主题+视觉元素+动态文字+风…

小智头像图片
312

AI绘画-即梦3.0提示词示例之暗黑哥特​: 暗黑哥特​ 提示词: 哥特体、烛光照明、高反差,荆棘十字…

小智头像图片
312

AI绘画-即梦3.0提示词示例之奶油治愈​: 奶油治愈​ 提示词: 奶乎乎、柔焦镜头、低对比,猫咪蜷缩…

小智头像图片
312
发表评论
暂无评论

还没有评论呢,快来抢沙发~

助力原创内容

快速提升站内名气成为大牛

扫描二维码

手机访问本站

二维码
vip弹窗图片