תשובה מהירה
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.

בעזרת ממשק ה-API לתשובות מהירות של ML Kit, תוכלו ליצור באופן אוטומטי תשובות רלוונטיות להודעות. התכונה 'תשובה מהירה' עוזרת למשתמשים להשיב להודעות במהירות, ומאפשרת להשיב בקלות להודעות במכשירים עם יכולות קלט מוגבלות.
iOS
Android
יכולות עיקריות
- מודל התשובות המהירות יוצר הצעות לתשובות על סמך ההקשר המלא של השיחה ולא רק על הודעה בודדת. כלומר, ההצעות מועילות יותר למשתמשים שלכם.
- המודל במכשיר מייצר תשובות במהירות ולא מחייב אתכם לשלוח הודעות של משתמשים לשרת מרוחק.
מגבלות
- תשובה מהירה מיועדת לשיחות יומיומיות באפליקציות לצרכנים. ההצעות לתשובה עשויות לא להתאים להקשרים או לקהלים אחרים.
- בשלב הזה יש תמיכה באנגלית בלבד. המודל מזהה באופן אוטומטי את השפה, ומספק הצעות רק אם היא באנגלית.
איך המודל עובד
- המודל משתמש בעד 10 מההודעות האחרונות מהיסטוריית השיחות כדי ליצור הצעות לתשובות.
- היא מזהה את שפת השיחה ומנסה להשיב רק אם השפה שנקבעת היא אנגלית.
- המודל משווה בין ההודעות לבין רשימה של נושאים רגישים, ולא מספק הצעות כשהוא מזהה נושא רגיש.
- אם הוגדרה שהשפה היא אנגלית ולא זוהו נושאים רגישים, המודל מספק עד שלוש תשובות. מספר התגובות תלוי במספר התגובות שעומדות ברמת הסמך מספיק על סמך הקלט למודל.
שליחת משוב
בגלל המורכבות של עיבוד שפה טבעית (NLP), ייתכן שההצעות שהמודל מספק לא מתאימות לכל ההקשרים או הקהלים. אם נתקלתם בהצעות לתשובות לא הולמות, תוכלו לפנות אל התמיכה של ML Kit. המשוב שלכם עוזר לנו לשפר את המודל ואת המסננים של נושאים רגישים.
תוצאות לדוגמה
חותמת זמן |
מזהה המשתמש |
משתמש מקומי? |
מסר |
ה', 21 בפברואר 13:13:39 PST 2019 |
|
true |
האם אתה בדרך? |
ה', 21 בפברואר 13:15:03 PST 2019 |
FRIEND0 |
false |
סליחה, באיחור! |
הצעות לתשובות
הצעה מס' 1 |
הצעה מס' 2 |
הצעה מס' 3 |
אין לך מה לדאוג |
😞 |
אין בעיה! |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-08-29 (שעון UTC).
[null,null,["עדכון אחרון: 2025-08-29 (שעון UTC)."],[[["\u003cp\u003eML Kit's Smart Reply API automatically generates relevant replies to messages, aiding quick responses and assisting devices with limited input.\u003c/p\u003e\n"],["\u003cp\u003eThe on-device model processes conversation history locally to provide quick replies without sending data to a remote server, prioritizing user privacy.\u003c/p\u003e\n"],["\u003cp\u003eSmart Reply is designed for casual English conversations and may not be suitable for all contexts; feedback on inappropriate suggestions is encouraged for model improvement.\u003c/p\u003e\n"],["\u003cp\u003eThe model analyzes up to 10 recent messages, identifies English language, filters sensitive topics, and offers up to 3 suggestions based on confidence levels.\u003c/p\u003e\n"]]],[],null,["With ML Kit's smart reply API, you can automatically generate relevant\nreplies to messages. Smart reply helps your users respond to messages quickly,\nand makes it easier to reply to messages on devices with limited input\ncapabilities.\n\n[iOS](/ml-kit/language/smart-reply/ios)\n[Android](/ml-kit/language/smart-reply/android)\n\nKey capabilities\n\n- The smart reply model generates reply suggestions based on the full context of a conversation, not just a single message. This means the suggestions are more helpful to your users.\n- The on-device model generates replies quickly and doesn't require you to send users' messages to a remote server.\n\nLimitations\n\n- Smart reply is intended for casual conversations in consumer apps. Reply suggestions might not be appropriate for other contexts or audiences.\n- Currently, only English is supported. The model automatically identifies the language being used and only provides suggestions when it's English.\n\nHow the model works\n\n- The model uses up to 10 of the most recent messages from a conversation history to generate reply suggestions.\n- It detects the language of the conversation and only attempts to provide responses when the language is determined to be English.\n- The model compares the messages against a list of sensitive topics and won't provide suggestions when it detects a sensitive topic.\n- If the language is determined to be English and no sensitive topics are detected, the model provides up to three suggested responses. The number of responses depends on how many meet a sufficient level of confidence based on the input to the model.\n\nProvide feedback\n\nDue to the complexity of natural language processing, the suggestions provided\nby the model may not be appropriate for all contexts or audiences. If you\nencounter inappropriate reply suggestions, reach out to\n[ML Kit support](/ml-kit/community). Your feedback\nhelps to improve the model and the filters for sensitive topics.\n\nExample results\n\nInput\n\n| Timestamp | User ID | Local User? | Message |\n|------------------------------|---------|-------------|----------------------|\n| Thu Feb 21 13:13:39 PST 2019 | | true | are you on your way? |\n| Thu Feb 21 13:15:03 PST 2019 | FRIEND0 | false | Running late, sorry! |\n\nSuggested replies\n\n| Suggestion #1 | Suggestion #2 | Suggestion #3 |\n|---------------|---------------|---------------|\n| No worries | 😞 | No problem! |"]]