智能回复
plat_ios
plat_android

利用机器学习套件的 Smart Reply API,您可以自动生成对消息的相关回复。智能回复可帮助用户快速回复消息,可以更轻松地回复输入功能有限的设备上的消息。
iOS
Android
主要功能
生成与上下文相关的建议 |
智能回复模型在生成回复建议时会考虑对话的完整上下文而不只是单条消息,因此给出的建议对用户来说更实用。
|
在设备上运行 |
由设备端模型快速生成回复,不需要您将用户的消息发送到远程服务器。
|
限制
- 智能回复适合消费者应用中的非正式对话。回复建议可能不适合其他情境或受众群体。
- 目前只支持英语。模型会自动检测是否使用了其他语言。如果有使用,则不会提供建议。
模型的工作方式
- 模型根据对话历史记录中的最多 10 条最新消息来生成回复建议。
- 它会检测对话语言,只有在确定语言为英语时才会尝试提供回复。
- 接下来,模型会将消息与敏感主题列表进行比较,在检测到敏感主题时不会提供建议。
- 如果确定语言为英语,并且未检测到敏感主题,模型最多会提供三条回复建议。回复的数量取决于有多少回复的置信度达到了要求的水平(基于模型的输入数据)。
提供反馈
由于自然语言处理的复杂性,模型提供的建议可能不适合所有情境或受众群体。如果您遇到不恰当的回复建议,请与 Firebase 支持团队联系。您的反馈有助于我们继续改进模型和敏感主题过滤条件。
示例结果
时间戳 |
用户 ID |
是否为本地用户? |
消息 |
太平洋标准时间 2019 年 2 月 21 日星期四 13:13:39 |
|
是 |
还在路上吗? |
太平洋标准时间 2019 年 2 月 21 日星期四 13:15:03 |
FRIEND0 |
否 |
要迟到了,对不起! |
建议的回复
第 1 条建议 |
第 2 条建议 |
第 3 条建议 |
别担心 |
😞 |
没关系。 |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-08-06 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]