You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/recombee_api_client/api/recommend_items_to_item.rb
+12-5Lines changed: 12 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,14 @@ module RecombeeApiClient
9
9
##
10
10
#Recommends set of items that are somehow related to one given item, *X*. Typical scenario is when user *A* is viewing *X*. Then you may display items to the user that he might be also interested in. Recommend items to item request gives you Top-N such items, optionally taking the target user *A* into account.
11
11
#
12
-
#It is also possible to use POST HTTP method (for example in case of very long ReQL filter) - query parameters then become body parameters.
12
+
#The returned items are sorted by relevance (first item being the most relevant).
13
+
#
14
+
#Besides the recommended items, also a unique `recommId` is returned in the response. It can be used to:
13
15
#
14
-
#The returned items are sorted by relevancy (first item being the most relevant).
16
+
#- Let Recombee know that this recommendation was successful (e.g. user clicked one of the recommended items). See [Reported metrics](https://docs.recombee.com/admin_ui.html#reported-metrics).
17
+
#- Get subsequent recommended items when the user scrolls down (*infinite scroll*) or goes to the next page. See [Recommend Next Items](https://docs.recombee.com/api.html#recommend-next-items).
18
+
#
19
+
#It is also possible to use POST HTTP method (for example in case of very long ReQL filter) - query parameters then become body parameters.
@@ -75,7 +80,8 @@ class RecommendItemsToItem < ApiRequest
75
80
# "url": "myshop.com/mixer-42"
76
81
# }
77
82
# }
78
-
# ]
83
+
# ],
84
+
# "numberNextRecommsCalls": 0
79
85
# }
80
86
#```
81
87
#
@@ -101,7 +107,8 @@ class RecommendItemsToItem < ApiRequest
101
107
# "price": 39
102
108
# }
103
109
# }
104
-
# ]
110
+
# ],
111
+
# "numberNextRecommsCalls": 0
105
112
# }
106
113
#```
107
114
#
@@ -124,7 +131,7 @@ class RecommendItemsToItem < ApiRequest
124
131
#
125
132
# - +diversity+ -> **Expert option** Real number from [0.0, 1.0] which determines how much mutually dissimilar should the recommended items be. The default value is 0.0, i.e., no diversification. Value 1.0 means maximal diversification.
126
133
#
127
-
# - +minRelevance+ -> **Expert option** If the *targetUserId* is provided: Specifies the threshold of how much relevant must the recommended items be to the user. Possible values one of: "low", "medium", "high". The default value is "low", meaning that the system attempts to recommend number of items equal to *count* at any cost. If there are not enough data (such as interactions or item properties), this may even lead to bestseller-based recommendations to be appended to reach the full *count*. This behavior may be suppressed by using "medium" or "high" values. In such case, the system only recommends items of at least the requested relevancy, and may return less than *count* items when there is not enough data to fulfill it.
134
+
# - +minRelevance+ -> **Expert option** If the *targetUserId* is provided: Specifies the threshold of how much relevant must the recommended items be to the user. Possible values one of: "low", "medium", "high". The default value is "low", meaning that the system attempts to recommend number of items equal to *count* at any cost. If there are not enough data (such as interactions or item properties), this may even lead to bestseller-based recommendations to be appended to reach the full *count*. This behavior may be suppressed by using "medium" or "high" values. In such case, the system only recommends items of at least the requested relevance, and may return less than *count* items when there is not enough data to fulfill it.
128
135
#
129
136
# - +rotationRate+ -> **Expert option** If the *targetUserId* is provided: If your users browse the system in real-time, it may easily happen that you wish to offer them recommendations multiple times. Here comes the question: how much should the recommendations change? Should they remain the same, or should they rotate? Recombee API allows you to control this per-request in backward fashion. You may penalize an item for being recommended in the near past. For the specific user, `rotationRate=1` means maximal rotation, `rotationRate=0` means absolutely no rotation. You may also use, for example `rotationRate=0.2` for only slight rotation of recommended items.
Copy file name to clipboardExpand all lines: lib/recombee_api_client/api/recommend_items_to_user.rb
+12-5Lines changed: 12 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,14 @@ module RecombeeApiClient
11
11
#
12
12
#The most typical use cases are recommendations at homepage, in some "Picked just for you" section or in email.
13
13
#
14
-
#It is also possible to use POST HTTP method (for example in case of very long ReQL filter) - query parameters then become body parameters.
14
+
#The returned items are sorted by relevance (first item being the most relevant).
15
+
#
16
+
#Besides the recommended items, also a unique `recommId` is returned in the response. It can be used to:
15
17
#
16
-
#The returned items are sorted by relevancy (first item being the most relevant).
18
+
#- Let Recombee know that this recommendation was successful (e.g. user clicked one of the recommended items). See [Reported metrics](https://docs.recombee.com/admin_ui.html#reported-metrics).
19
+
#- Get subsequent recommended items when the user scrolls down (*infinite scroll*) or goes to the next page. See [Recommend Next Items](https://docs.recombee.com/api.html#recommend-next-items).
20
+
#
21
+
#It is also possible to use POST HTTP method (for example in case of very long ReQL filter) - query parameters then become body parameters.
@@ -61,7 +66,8 @@ class RecommendItemsToUser < ApiRequest
61
66
# "url": "myshop.com/mixer-42"
62
67
# }
63
68
# }
64
-
# ]
69
+
# ],
70
+
# "numberNextRecommsCalls": 0
65
71
# }
66
72
#```
67
73
#
@@ -87,7 +93,8 @@ class RecommendItemsToUser < ApiRequest
87
93
# "price": 39
88
94
# }
89
95
# }
90
-
# ]
96
+
# ],
97
+
# "numberNextRecommsCalls": 0
91
98
# }
92
99
#```
93
100
#
@@ -108,7 +115,7 @@ class RecommendItemsToUser < ApiRequest
108
115
#
109
116
# - +diversity+ -> **Expert option** Real number from [0.0, 1.0] which determines how much mutually dissimilar should the recommended items be. The default value is 0.0, i.e., no diversification. Value 1.0 means maximal diversification.
110
117
#
111
-
# - +minRelevance+ -> **Expert option** Specifies the threshold of how much relevant must the recommended items be to the user. Possible values one of: "low", "medium", "high". The default value is "low", meaning that the system attempts to recommend number of items equal to *count* at any cost. If there are not enough data (such as interactions or item properties), this may even lead to bestseller-based recommendations to be appended to reach the full *count*. This behavior may be suppressed by using "medium" or "high" values. In such case, the system only recommends items of at least the requested relevancy, and may return less than *count* items when there is not enough data to fulfill it.
118
+
# - +minRelevance+ -> **Expert option** Specifies the threshold of how much relevant must the recommended items be to the user. Possible values one of: "low", "medium", "high". The default value is "low", meaning that the system attempts to recommend number of items equal to *count* at any cost. If there are not enough data (such as interactions or item properties), this may even lead to bestseller-based recommendations to be appended to reach the full *count*. This behavior may be suppressed by using "medium" or "high" values. In such case, the system only recommends items of at least the requested relevance, and may return less than *count* items when there is not enough data to fulfill it.
112
119
#
113
120
# - +rotationRate+ -> **Expert option** If your users browse the system in real-time, it may easily happen that you wish to offer them recommendations multiple times. Here comes the question: how much should the recommendations change? Should they remain the same, or should they rotate? Recombee API allows you to control this per-request in backward fashion. You may penalize an item for being recommended in the near past. For the specific user, `rotationRate=1` means maximal rotation, `rotationRate=0` means absolutely no rotation. You may also use, for example `rotationRate=0.2` for only slight rotation of recommended items. Default: `0.1`.
#Returns items that shall be shown to a user as next recommendations when the user e.g. scrolls the page down (*infinite scroll*) or goes to a next page.
11
+
#
12
+
#It accepts `recommId` of a base recommendation request (e.g. request from the first page) and number of items that shall be returned (`count`).
13
+
#The base request can be one of:
14
+
# - [Recommend items to item](https://docs.recombee.com/api.html#recommend-items-to-item)
15
+
# - [Recommend items to user](https://docs.recombee.com/api.html#recommend-items-to-user)
Copy file name to clipboardExpand all lines: lib/recombee_api_client/api/recommend_users_to_user.rb
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -53,8 +53,9 @@ class RecommendUsersToUser < ApiRequest
53
53
# "sex": "M"
54
54
# }
55
55
# }
56
-
# ]
57
-
# }
56
+
# ],
57
+
# "numberNextRecommsCalls": 0
58
+
# }
58
59
#```
59
60
#
60
61
# - +includedProperties+ -> Allows to specify, which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list.
@@ -77,7 +78,8 @@ class RecommendUsersToUser < ApiRequest
Copy file name to clipboardExpand all lines: lib/recombee_api_client/api/search_items.rb
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -13,9 +13,14 @@ module RecombeeApiClient
13
13
#
14
14
#This endpoint should be used in a search box at your website/app. It can be called multiple times as the user is typing the query in order to get the most viable suggestions based on current state of the query, or once after submitting the whole query.
15
15
#
16
-
#It is also possible to use POST HTTP method (for example in case of very long ReQL filter) - query parameters then become body parameters.
16
+
#The returned items are sorted by relevance (first item being the most relevant).
17
+
#
18
+
#Besides the recommended items, also a unique `recommId` is returned in the response. It can be used to:
17
19
#
18
-
#The returned items are sorted by relevancy (first item being the most relevant).
20
+
#- Let Recombee know that this search was successful (e.g. user clicked one of the recommended items). See [Reported metrics](https://docs.recombee.com/admin_ui.html#reported-metrics).
21
+
#- Get subsequent search results when the user scrolls down or goes to the next page. See [Recommend Next Items](https://docs.recombee.com/api.html#recommend-next-items).
22
+
#
23
+
#It is also possible to use POST HTTP method (for example in case of very long ReQL filter) - query parameters then become body parameters.
0 commit comments