Skip to content

Commit e2c84a4

Browse files
author
AWS
committed
Amazon Personalize Runtime Update: This release adds support for a Reason attribute for predicted items generated by User-Personalization-v2.
1 parent 662d4c8 commit e2c84a4

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Personalize Runtime",
4+
"contributor": "",
5+
"description": "This release adds support for a Reason attribute for predicted items generated by User-Personalization-v2."
6+
}

services/personalizeruntime/src/main/resources/codegen-resources/service-2.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"endpointPrefix":"personalize-runtime",
66
"jsonVersion":"1.1",
77
"protocol":"rest-json",
8+
"protocols":["rest-json"],
89
"serviceFullName":"Amazon Personalize Runtime",
910
"serviceId":"Personalize Runtime",
1011
"signatureVersion":"v4",
@@ -293,7 +294,8 @@
293294
"Metadata":{
294295
"type":"map",
295296
"key":{"shape":"ColumnName"},
296-
"value":{"shape":"ColumnValue"}
297+
"value":{"shape":"ColumnValue"},
298+
"sensitive":true
297299
},
298300
"MetadataColumns":{
299301
"type":"map",
@@ -348,6 +350,10 @@
348350
"metadata":{
349351
"shape":"Metadata",
350352
"documentation":"<p>Metadata about the item from your Items dataset.</p>"
353+
},
354+
"reason":{
355+
"shape":"ReasonList",
356+
"documentation":"<p>If you use User-Personalization-v2, a list of reasons for why the item was included in recommendations. Possible reasons include the following:</p> <ul> <li> <p>Promoted item - Indicates the item was included as part of a promotion that you applied in your recommendation request.</p> </li> <li> <p>Exploration - Indicates the item was included with exploration. With exploration, recommendations include items with less interactions data or relevance for the user. For more information about exploration, see <a href=\"https://docs.aws.amazon.com/personalize/latest/dg/use-case-recipe-features.html#about-exploration\">Exploration</a>.</p> </li> <li> <p> Popular item - Indicates the item was included as a placeholder popular item. If you use a filter, depending on how many recommendations the filter removes, Amazon Personalize might add placeholder items to meet the <code>numResults</code> for your recommendation request. These items are popular items, based on interactions data, that satisfy your filter criteria. They don't have a relevance score for the user. </p> </li> </ul>"
351357
}
352358
},
353359
"documentation":"<p>An object that identifies an item.</p> <p>The and APIs return a list of <code>PredictedItem</code>s.</p>"
@@ -379,6 +385,14 @@
379385
"member":{"shape":"Promotion"},
380386
"max":1
381387
},
388+
"Reason":{
389+
"type":"string",
390+
"max":256
391+
},
392+
"ReasonList":{
393+
"type":"list",
394+
"member":{"shape":"Reason"}
395+
},
382396
"RecommendationID":{"type":"string"},
383397
"ResourceNotFoundException":{
384398
"type":"structure",

0 commit comments

Comments
 (0)