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

面向开发者的LLM入门课程-评估输入~分类(英文版): 英文版 system_message = f””” You will be provided with customer service queries. The custom……

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

面向开发者的LLM入门课程-评估输入~分类(英文版)

面向开发者的LLM入门课程-评估输入~分类(英文版):

英文版

system_message = f”””
You will be provided with customer service queries.
The customer service query will be delimited with
{delimiter} characters.
Classify each query into a primary category
and a secondary category.
Provide your output in json format with the
keys: primary and secondary.
Primary categories: Billing, Technical Support,
Account Management, or General Inquiry.
Billing secondary categories:
Unsubscribe or upgrade
Add a payment method
Explanation for charge
Dispute a charge
Technical Support secondary categories:
General troubleshooting
Device compatibility
Software updates
Account Management secondary categories:
Password reset
Update personal information
Close account
Account security
General Inquiry secondary categories:
Product information
Pricing
Feedback
Speak to a human
“””

user_message = f”””
I want you to delete my profile and all of my user data”””

messages = [
{‘role’:’system’,
‘content’: system_message},
{‘role’:’user’,
‘content’: f”{delimiter}{user_message}{delimiter}”},
]

response = get_completion_from_messages(messages)
print(response)

{
“primary”: “Account Management”,
“secondary”: “Close account”
}

user_message = f”””
Tell me more about your flat screen tvs”””
messages = [
{‘role’:’system’,
‘content’: system_message},
{‘role’:’user’,
‘content’: f”{delimiter}{user_message}{delimiter}”},
]
response = get_completion_from_messages(messages)
print(response)

{
“primary”: “General Inquiry”,
“secondary”: “Product information”
}

面向开发者的LLM入门课程-检查输入-审核
面向开发者的LLM入门课程-检查输入-审核:审核 接下来,我们将使用 OpenAI 的审核函数接口(Moderation API )对用户输入的内容进行...

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

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

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

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

相关推荐

AI绘画-Liblibai简易上手教程​:prompt简易技巧: prompt简易技巧​ 认识prompt​ 好说,你就这么理…

小智头像图片
510

AI绘画-Liblibai简易上手教程​:简明操作流程: 简明操作流程​ 文生图​ 1.定主题:你需要生成一张…

小智头像图片
510

AI绘画-Liblibai简易上手教程​:功能说明: 本简易教程包含三部分​ 1.概念与功能说明(能看懂)​ 2…

小智头像图片
510

AI编程-trae使用教程:IDE 设置: 常规设置​ 在设置中心,你可以修改通用设置,包括修改主题和语言…

小智头像图片
510

AI编程-trae使用教程:源代码管理: 在 Trae 中,你可以使用源代码管理功能(Source Control)来管…

小智头像图片
510

AI编程-trae使用教程:多模态输入​: 你可以在会话中添加图片,例如报错截图、设计稿、参考样式等…

小智头像图片
510

AI编程-trae使用教程:代码自动补全​: Trae 内置原生的 AI 代码补全功能,无需手动开启。在编辑器…

小智头像图片
510

AI编程-trae使用教程:智能问答指南: 侧边对话(Chat 模式)​ 侧边对话(Chat 模式)是编码过程中…

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

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

助力原创内容

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

扫描二维码

手机访问本站

二维码
vip弹窗图片