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
- Support new Recommend Items to Item Segment endpoint
- Series API improvements:
- Add Series endpoint creates associated Item for the Series automatically (based on the cascadeCreate parameter)
- Breaking change: Remove From Series no longer requires the time parameter
- Removed deprecated Groups endpoints
/** Indicates that any non-existing entity specified within the request should be created (as if corresponding PUT requests were invoked). This concerns both the `seriesId` and the `itemId`. If `cascadeCreate` is set to true, the behavior also depends on the `itemType`. Either item or series may be created if not present in the database. */
775
+
/** Indicates that any non-existing entity specified within the request should be created (as if corresponding PUT requests were invoked). This concerns both the `seriesId` and the `itemId`. If `cascadeCreate` is set to true, the behavior also depends on the `itemType`. In case of `item`, an item is created, in case of `series` a series + corresponding item with the same ID is created. */
* Recommends the top Segments from a Segmentation for a particular user, based on the user's past interactions.
2192
+
* Recommends the top Segments from a [Segmentation](https://docs.recombee.com/segmentations.html) for a particular user, based on the user's past interactions.
2183
2193
* Based on the used Segmentation, this endpoint can be used for example for:
2184
2194
* - Recommending the top categories for the user
2185
2195
* - Recommending the top genres for the user
2186
2196
* - Recommending the top brands for the user
2187
2197
* - Recommending the top artists for the user
2188
-
* You need to set the used Segmentation the Admin UI in the Scenario settings prior to using this endpoint.
2198
+
* You need to set the used Segmentation the Admin UI in the [Scenario settings](https://docs.recombee.com/scenarios) prior to using this endpoint.
2189
2199
* The returned segments are sorted by relevance (first segment being the most relevant).
2190
2200
* It is also possible to use POST HTTP method (for example in case of very long ReQL filter) - query parameters then become body parameters.
* Recommends Segments from a result Segmentation that are the most relevant to a particular Segment from a context Segmentation.
2336
+
* Recommends Segments from a result [Segmentation](https://docs.recombee.com/segmentations.html) that are the most relevant to a particular Segment from a context Segmentation.
2327
2337
* Based on the used Segmentations, this endpoint can be used for example for:
2328
2338
* - Recommending the related brands to particular brand
2329
2339
* - Recommending the related brands to particular category
2330
2340
* - Recommending the related artists to a particular genre (assuming songs are the Items)
2331
-
* You need to set the used context and result Segmentation the Admin UI in the Scenario settings prior to using this endpoint.
2341
+
* You need to set the used context and result Segmentation the Admin UI in the [Scenario settings](https://docs.recombee.com/scenarios) prior to using this endpoint.
2332
2342
* The returned segments are sorted by relevance (first segment being the most relevant).
2333
2343
* It is also possible to use POST HTTP method (for example in case of very long ReQL filter) - query parameters then become body parameters.
* Recommends Items that are the most relevant to a particular Segment from a context [Segmentation](https://docs.recombee.com/segmentations.html).
2417
+
* Based on the used Segmentation, this endpoint can be used for example for:
2418
+
* - Recommending articles related to a particular topic
2419
+
* - Recommending songs belonging to a particular genre
2420
+
* - Recommending products produced by a particular brand
2421
+
* You need to set the used context Segmentation in the Admin UI in the [Scenario settings](https://docs.recombee.com/scenarios) prior to using this endpoint.
2422
+
* The returned items are sorted by relevance (the first item being the most relevant).
2423
+
* It is also possible to use the POST HTTP method (for example, in the case of a very long ReQL filter) — query parameters then become body parameters.
* @param contextSegmentId - ID of the segment from `contextSegmentationId` for which the recommendations are to be generated.
2428
+
* @param targetUserId - ID of the user who will see the recommendations.
2429
+
* Specifying the *targetUserId* is beneficial because:
2430
+
* * It makes the recommendations personalized
2431
+
* * Allows the calculation of Actions and Conversions
2432
+
* in the graphical user interface,
2433
+
* as Recombee can pair the user who got recommendations
2434
+
* and who afterward viewed/purchased an item.
2435
+
* If you insist on not specifying the user, pass `null`
2436
+
* (`None`, `nil`, `NULL` etc., depending on the language) to *targetUserId*.
2437
+
* Do not create some special dummy user for getting recommendations,
2438
+
* as it could mislead the recommendation models,
2439
+
* and result in wrong recommendations.
2440
+
* For anonymous/unregistered users, it is possible to use, for example, their session ID.
2441
+
* @param count - Number of items to be recommended (N for the top-N recommendation).
2442
+
* @param optional - Optional parameters given as an object.
2443
+
*/
2444
+
constructor(
2445
+
contextSegmentId: string,
2446
+
targetUserId: string,
2447
+
count: number,
2448
+
optional?: {
2449
+
/** Scenario defines a particular application of recommendations. It can be, for example, "homepage", "cart", or "emailing". */
2450
+
scenario?: string;
2451
+
/** If an item of the given *itemId* or user of the given *targetUserId* doesn't exist in the database, it creates the missing entity/entities and returns some (non-personalized) recommendations. This allows, for example, rotations in the following recommendations for the user of the given *targetUserId*, as the user will be already known to the system. */
2452
+
cascadeCreate?: boolean;
2453
+
/** 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 to easily display the recommended items to the user. */
2454
+
returnProperties?: boolean;
2455
+
/** Allows specifying which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list. */
2456
+
includedProperties?: string[];
2457
+
/** Boolean-returning [ReQL](https://docs.recombee.com/reql.html) expression, which allows you to filter recommended items based on the values of their attributes. */
2458
+
filter?: string;
2459
+
/** Number-returning [ReQL](https://docs.recombee.com/reql.html) expression, which allows you to boost the recommendation rate of some items based on the values of their attributes. */
2460
+
booster?: string;
2461
+
/** Logic specifies the particular behavior of the recommendation models. You can pick tailored logic for your domain and use case. */
2462
+
logic?: string|object;
2463
+
/** **Expert option** If the *targetUserId* is provided: Specifies the threshold of how 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 a number of items equal to *count* at any cost. If there is not enough data (such as interactions or item properties), this may even lead to bestseller-based recommendations being 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. */
2464
+
minRelevance?: string;
2465
+
/** **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 a 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. */
2466
+
rotationRate?: number;
2467
+
/** **Expert option** If the *targetUserId* is provided: Taking *rotationRate* into account, specifies how long it takes for an item to recover from the penalization. For example, `rotationTime=7200.0` means that items recommended less than 2 hours ago are penalized. */
2468
+
rotationTime?: number;
2469
+
/** Dictionary of custom options. */
2470
+
expertSettings?: {[key: string]: unknown};
2471
+
/** If there is a custom AB-testing running, return the name of the group to which the request belongs. */
2472
+
returnAbGroup?: boolean;
2473
+
}
2474
+
);
2475
+
2476
+
contextSegmentId: string;
2477
+
targetUserId: string;
2478
+
count: number;
2479
+
scenario?: string;
2480
+
cascadeCreate?: boolean;
2481
+
returnProperties?: boolean;
2482
+
includedProperties?: string[];
2483
+
filter?: string;
2484
+
booster?: string;
2485
+
logic?: string|object;
2486
+
minRelevance?: string;
2487
+
rotationRate?: number;
2488
+
rotationTime?: number;
2489
+
expertSettings?: {[key: string]: unknown};
2490
+
returnAbGroup?: boolean;
2491
+
protected__response_type: RecommendationResponse;
2492
+
2493
+
bodyParameters(): {
2494
+
contextSegmentId: string;
2495
+
targetUserId: string;
2496
+
count: number;
2497
+
scenario?: string;
2498
+
cascadeCreate?: boolean;
2499
+
returnProperties?: boolean;
2500
+
includedProperties?: string[];
2501
+
filter?: string;
2502
+
booster?: string;
2503
+
logic?: string|object;
2504
+
minRelevance?: string;
2505
+
rotationRate?: number;
2506
+
rotationTime?: number;
2507
+
expertSettings?: {[key: string]: unknown};
2508
+
returnAbGroup?: boolean;
2509
+
};
2510
+
2511
+
queryParameters(): {
2512
+
};
2513
+
}
2514
+
2405
2515
/**
2406
2516
* Full-text personalized search. The results are based on the provided `searchQuery` and also on the user's past interactions (purchases, ratings, etc.) with the items (items more suitable for the user are preferred in the results).
2407
2517
* All the string and set item properties are indexed by the search engine.
Copy file name to clipboardExpand all lines: lib/requests/insert-to-series.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ class InsertToSeries extends rqs.Request {
20
20
* - Allowed parameters:
21
21
* - *cascadeCreate*
22
22
* - Type: boolean
23
-
* - Description: Indicates that any non-existing entity specified within the request should be created (as if corresponding PUT requests were invoked). This concerns both the `seriesId` and the `itemId`. If `cascadeCreate` is set to true, the behavior also depends on the `itemType`. Either item or series may be created if not present in the database.
23
+
* - Description: Indicates that any non-existing entity specified within the request should be created (as if corresponding PUT requests were invoked). This concerns both the `seriesId` and the `itemId`. If `cascadeCreate` is set to true, the behavior also depends on the `itemType`. In case of `item`, an item is created, in case of `series` a series + corresponding item with the same ID is created.
Copy file name to clipboardExpand all lines: lib/requests/recommend-item-segments-to-item-segment.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,12 @@
6
6
constrqs=require("./request");
7
7
8
8
/**
9
-
* Recommends Segments from a result Segmentation that are the most relevant to a particular Segment from a context Segmentation.
9
+
* Recommends Segments from a result [Segmentation](https://docs.recombee.com/segmentations.html) that are the most relevant to a particular Segment from a context Segmentation.
10
10
* Based on the used Segmentations, this endpoint can be used for example for:
11
11
* - Recommending the related brands to particular brand
12
12
* - Recommending the related brands to particular category
13
13
* - Recommending the related artists to a particular genre (assuming songs are the Items)
14
-
* You need to set the used context and result Segmentation the Admin UI in the Scenario settings prior to using this endpoint.
14
+
* You need to set the used context and result Segmentation the Admin UI in the [Scenario settings](https://docs.recombee.com/scenarios) prior to using this endpoint.
15
15
* The returned segments are sorted by relevance (first segment being the most relevant).
16
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.
0 commit comments