Skip to content

Commit 7f63091

Browse files
committed
Add logic parameter to recommendation endpoints. Use HTTPS as default.
1 parent 904c986 commit 7f63091

15 files changed

+190
-50
lines changed

doc/RecommendItemsToItem.html

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ <h1 class="page-title">Class: RecommendItemsToItem</h1>
3131
<h2><span class="attribs"><span class="type-signature"></span></span>RecommendItemsToItem<span class="signature">(itemId, targetUserId, count, optional)</span><span class="type-signature"></span></h2>
3232

3333
<div class="class-description">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.
34-
It is also possible to use POST HTTP method (for example in case of very long ReQL filter) - query parameters then become body parameters.</div>
34+
It is also possible to use POST HTTP method (for example in case of very long ReQL filter) - query parameters then become body parameters.
35+
The returned items are sorted by relevancy (first item being the most relevant).</div>
3536

3637

3738
</header>
@@ -189,9 +190,6 @@ <h5>Parameters:</h5>
189190

190191
<td class="description last">Optional parameters given as an object with structure name of the parameter: value
191192
- Allowed parameters:
192-
- *userImpact*
193-
- Type: number
194-
- Description: If *targetUserId* parameter is present, the recommendations are biased towards the user given. Using *userImpact*, you may control this bias. For an extreme case of `userImpact=0.0`, the interactions made by the user are not taken into account at all (with the exception of history-based blacklisting), for `userImpact=1.0`, you'll get user-based recommendation. The default value is `0`.
195193
- *filter*
196194
- Type: string
197195
- Description: Boolean-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to filter recommended items based on the values of their attributes.
@@ -204,6 +202,11 @@ <h5>Parameters:</h5>
204202
- *scenario*
205203
- Type: string
206204
- Description: Scenario defines a particular application of recommendations. It can be for example "homepage", "cart" or "emailing". You can see each scenario in the UI separately, so you can check how well each application performs. The AI which optimizes models in order to get the best results may optimize different scenarios separately, or even use different models in each of the scenarios.
205+
- *logic*
206+
- Type: string|
207+
- Description: Logic specifies particular behavior of the recommendation models. You can pick tailored logic for your domain (e-commerce, multimedia, fashion ...) and use case.
208+
See [this section](https://docs.recombee.com/recommendation_logic.html) for list of available logics and other details.
209+
The difference between `logic` and `scenario` is that `logic` specifies mainly behavior, while `scenario` specifies the place where recommendations are shown to the users.
207210
- *returnProperties*
208211
- Type: boolean
209212
- Description: With `returnProperties=true`, property values of the recommended items are returned along with their IDs in a JSON dictionary. The acquired property values can be used for easy displaying of the recommended items to the user.
@@ -260,6 +263,9 @@ <h5>Parameters:</h5>
260263
]
261264
}
262265
```
266+
- *userImpact*
267+
- Type: number
268+
- Description: **Expert option** If *targetUserId* parameter is present, the recommendations are biased towards the given user. Using *userImpact*, you may control this bias. For an extreme case of `userImpact=0.0`, the interactions made by the user are not taken into account at all (with the exception of history-based blacklisting), for `userImpact=1.0`, you'll get user-based recommendation. The default value is `0`.
263269
- *diversity*
264270
- Type: number
265271
- Description: **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.
@@ -274,7 +280,10 @@ <h5>Parameters:</h5>
274280
- Description: **Expert option** If the *targetUserId* is provided: Taking *rotationRate* into account, specifies how long time it takes to an item to recover from the penalization. For example, `rotationTime=7200.0` means that items recommended less than 2 hours ago are penalized.
275281
- *expertSettings*
276282
- Type:
277-
- Description: Dictionary of custom options.</td>
283+
- Description: Dictionary of custom options.
284+
- *returnAbGroup*
285+
- Type: boolean
286+
- Description: If there is a custom AB-testing running, return name of group to which the request belongs.</td>
278287
</tr>
279288

280289

@@ -315,7 +324,7 @@ <h5>Parameters:</h5>
315324

316325
<dt class="tag-source">Source:</dt>
317326
<dd class="tag-source"><ul class="dummy"><li>
318-
<a href="requests_recommend-items-to-item.js.html">requests/recommend-items-to-item.js</a>, <a href="requests_recommend-items-to-item.js.html#line12">line 12</a>
327+
<a href="requests_recommend-items-to-item.js.html">requests/recommend-items-to-item.js</a>, <a href="requests_recommend-items-to-item.js.html#line13">line 13</a>
319328
</li></ul></dd>
320329

321330

@@ -421,7 +430,7 @@ <h4 class="name" id="bodyParameters"><span class="type-signature"></span>bodyPar
421430

422431
<dt class="tag-source">Source:</dt>
423432
<dd class="tag-source"><ul class="dummy"><li>
424-
<a href="requests_recommend-items-to-item.js.html">requests/recommend-items-to-item.js</a>, <a href="requests_recommend-items-to-item.js.html#line144">line 144</a>
433+
<a href="requests_recommend-items-to-item.js.html">requests/recommend-items-to-item.js</a>, <a href="requests_recommend-items-to-item.js.html#line155">line 155</a>
425434
</li></ul></dd>
426435

427436

@@ -529,7 +538,7 @@ <h4 class="name" id="queryParameters"><span class="type-signature"></span>queryP
529538

530539
<dt class="tag-source">Source:</dt>
531540
<dd class="tag-source"><ul class="dummy"><li>
532-
<a href="requests_recommend-items-to-item.js.html">requests/recommend-items-to-item.js</a>, <a href="requests_recommend-items-to-item.js.html#line192">line 192</a>
541+
<a href="requests_recommend-items-to-item.js.html">requests/recommend-items-to-item.js</a>, <a href="requests_recommend-items-to-item.js.html#line209">line 209</a>
533542
</li></ul></dd>
534543

535544

@@ -601,7 +610,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AddBookma
601610
<br class="clear">
602611

603612
<footer>
604-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Feb 19 2018 17:28:04 GMT+0100 (CET)
613+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Mar 11 2019 13:37:20 GMT+0100 (CET)
605614
</footer>
606615

607616
<script> prettyPrint(); </script>

doc/RecommendItemsToUser.html

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ <h1 class="page-title">Class: RecommendItemsToUser</h1>
3131
<h2><span class="attribs"><span class="type-signature"></span></span>RecommendItemsToUser<span class="signature">(userId, count, optional)</span><span class="type-signature"></span></h2>
3232

3333
<div class="class-description">Based on user's past interactions (purchases, ratings, etc.) with the items, recommends top-N items that are most likely to be of high value for a given user.
34-
It is also possible to use POST HTTP method (for example in case of very long ReQL filter) - query parameters then become body parameters.</div>
34+
It is also possible to use POST HTTP method (for example in case of very long ReQL filter) - query parameters then become body parameters.
35+
The returned items are sorted by relevancy (first item being the most relevant).</div>
3536

3637

3738
</header>
@@ -166,6 +167,11 @@ <h5>Parameters:</h5>
166167
- *scenario*
167168
- Type: string
168169
- Description: Scenario defines a particular application of recommendations. It can be for example "homepage", "cart" or "emailing". You can see each scenario in the UI separately, so you can check how well each application performs. The AI which optimizes models in order to get the best results may optimize different scenarios separately, or even use different models in each of the scenarios.
170+
- *logic*
171+
- Type: string|
172+
- Description: Logic specifies particular behavior of the recommendation models. You can pick tailored logic for your domain (e-commerce, multimedia, fashion ...) and use case.
173+
See [this section](https://docs.recombee.com/recommendation_logic.html) for list of available logics and other details.
174+
The difference between `logic` and `scenario` is that `logic` specifies mainly behavior, while `scenario` specifies the place where recommendations are shown to the users.
169175
- *returnProperties*
170176
- Type: boolean
171177
- Description: With `returnProperties=true`, property values of the recommended items are returned along with their IDs in a JSON dictionary. The acquired property values can be used for easy displaying of the recommended items to the user.
@@ -236,7 +242,10 @@ <h5>Parameters:</h5>
236242
- Description: **Expert option** Taking *rotationRate* into account, specifies how long time it takes to an item to recover from the penalization. For example, `rotationTime=7200.0` means that items recommended less than 2 hours ago are penalized. Default: `7200.0`.
237243
- *expertSettings*
238244
- Type:
239-
- Description: Dictionary of custom options.</td>
245+
- Description: Dictionary of custom options.
246+
- *returnAbGroup*
247+
- Type: boolean
248+
- Description: If there is a custom AB-testing running, return name of group to which the request belongs.</td>
240249
</tr>
241250

242251

@@ -277,7 +286,7 @@ <h5>Parameters:</h5>
277286

278287
<dt class="tag-source">Source:</dt>
279288
<dd class="tag-source"><ul class="dummy"><li>
280-
<a href="requests_recommend-items-to-user.js.html">requests/recommend-items-to-user.js</a>, <a href="requests_recommend-items-to-user.js.html#line12">line 12</a>
289+
<a href="requests_recommend-items-to-user.js.html">requests/recommend-items-to-user.js</a>, <a href="requests_recommend-items-to-user.js.html#line13">line 13</a>
281290
</li></ul></dd>
282291

283292

@@ -383,7 +392,7 @@ <h4 class="name" id="bodyParameters"><span class="type-signature"></span>bodyPar
383392

384393
<dt class="tag-source">Source:</dt>
385394
<dd class="tag-source"><ul class="dummy"><li>
386-
<a href="requests_recommend-items-to-user.js.html">requests/recommend-items-to-user.js</a>, <a href="requests_recommend-items-to-user.js.html#line126">line 126</a>
395+
<a href="requests_recommend-items-to-user.js.html">requests/recommend-items-to-user.js</a>, <a href="requests_recommend-items-to-user.js.html#line137">line 137</a>
387396
</li></ul></dd>
388397

389398

@@ -491,7 +500,7 @@ <h4 class="name" id="queryParameters"><span class="type-signature"></span>queryP
491500

492501
<dt class="tag-source">Source:</dt>
493502
<dd class="tag-source"><ul class="dummy"><li>
494-
<a href="requests_recommend-items-to-user.js.html">requests/recommend-items-to-user.js</a>, <a href="requests_recommend-items-to-user.js.html#line170">line 170</a>
503+
<a href="requests_recommend-items-to-user.js.html">requests/recommend-items-to-user.js</a>, <a href="requests_recommend-items-to-user.js.html#line187">line 187</a>
495504
</li></ul></dd>
496505

497506

@@ -563,7 +572,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AddBookma
563572
<br class="clear">
564573

565574
<footer>
566-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Sep 10 2018 17:31:14 GMT+0200 (CEST)
575+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Mar 11 2019 13:37:20 GMT+0100 (CET)
567576
</footer>
568577

569578
<script> prettyPrint(); </script>

doc/RecommendUsersToItem.html

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ <h1 class="page-title">Class: RecommendUsersToItem</h1>
3131
<h2><span class="attribs"><span class="type-signature"></span></span>RecommendUsersToItem<span class="signature">(itemId, count, optional)</span><span class="type-signature"></span></h2>
3232

3333
<div class="class-description">Recommend users that are likely to be interested in a given item.
34-
It is also possible to use POST HTTP method (for example in case of very long ReQL filter) - query parameters then become body parameters.</div>
34+
It is also possible to use POST HTTP method (for example in case of very long ReQL filter) - query parameters then become body parameters.
35+
The returned users are sorted by predicted interest in the item (first user being the most interested).</div>
3536

3637

3738
</header>
@@ -166,6 +167,11 @@ <h5>Parameters:</h5>
166167
- *scenario*
167168
- Type: string
168169
- Description: Scenario defines a particular application of recommendations. It can be for example "homepage", "cart" or "emailing". You can see each scenario in the UI separately, so you can check how well each application performs. The AI which optimizes models in order to get the best results may optimize different scenarios separately, or even use different models in each of the scenarios.
170+
- *logic*
171+
- Type: string|
172+
- Description: Logic specifies particular behavior of the recommendation models. You can pick tailored logic for your domain (e-commerce, multimedia, fashion ...) and use case.
173+
See [this section](https://docs.recombee.com/recommendation_logic.html) for list of available logics and other details.
174+
The difference between `logic` and `scenario` is that `logic` specifies mainly behavior, while `scenario` specifies the place where recommendations are shown to the users.
169175
- *returnProperties*
170176
- Type: boolean
171177
- Description: With `returnProperties=true`, property values of the recommended users are returned along with their IDs in a JSON dictionary. The acquired property values can be used for easy displaying the recommended users.
@@ -221,7 +227,10 @@ <h5>Parameters:</h5>
221227
- Description: **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.
222228
- *expertSettings*
223229
- Type:
224-
- Description: Dictionary of custom options.</td>
230+
- Description: Dictionary of custom options.
231+
- *returnAbGroup*
232+
- Type: boolean
233+
- Description: If there is a custom AB-testing running, return name of group to which the request belongs.</td>
225234
</tr>
226235

227236

@@ -262,7 +271,7 @@ <h5>Parameters:</h5>
262271

263272
<dt class="tag-source">Source:</dt>
264273
<dd class="tag-source"><ul class="dummy"><li>
265-
<a href="requests_recommend-users-to-item.js.html">requests/recommend-users-to-item.js</a>, <a href="requests_recommend-users-to-item.js.html#line12">line 12</a>
274+
<a href="requests_recommend-users-to-item.js.html">requests/recommend-users-to-item.js</a>, <a href="requests_recommend-users-to-item.js.html#line13">line 13</a>
266275
</li></ul></dd>
267276

268277

@@ -368,7 +377,7 @@ <h4 class="name" id="bodyParameters"><span class="type-signature"></span>bodyPar
368377

369378
<dt class="tag-source">Source:</dt>
370379
<dd class="tag-source"><ul class="dummy"><li>
371-
<a href="requests_recommend-users-to-item.js.html">requests/recommend-users-to-item.js</a>, <a href="requests_recommend-users-to-item.js.html#line108">line 108</a>
380+
<a href="requests_recommend-users-to-item.js.html">requests/recommend-users-to-item.js</a>, <a href="requests_recommend-users-to-item.js.html#line119">line 119</a>
372381
</li></ul></dd>
373382

374383

@@ -476,7 +485,7 @@ <h4 class="name" id="queryParameters"><span class="type-signature"></span>queryP
476485

477486
<dt class="tag-source">Source:</dt>
478487
<dd class="tag-source"><ul class="dummy"><li>
479-
<a href="requests_recommend-users-to-item.js.html">requests/recommend-users-to-item.js</a>, <a href="requests_recommend-users-to-item.js.html#line143">line 143</a>
488+
<a href="requests_recommend-users-to-item.js.html">requests/recommend-users-to-item.js</a>, <a href="requests_recommend-users-to-item.js.html#line160">line 160</a>
480489
</li></ul></dd>
481490

482491

@@ -548,7 +557,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AddBookma
548557
<br class="clear">
549558

550559
<footer>
551-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Feb 19 2018 17:28:04 GMT+0100 (CET)
560+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Mar 11 2019 13:37:20 GMT+0100 (CET)
552561
</footer>
553562

554563
<script> prettyPrint(); </script>

0 commit comments

Comments
 (0)