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/composite_recommendation.rb
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ module RecombeeApiClient
7
7
require_relative'../errors'
8
8
9
9
##
10
-
# Composite Recommendation returns both a *source entity* (e.g., an Item or [Item Segment](https://docs.recombee.com/segmentations.html)) and a list of related recommendations in a single response.
10
+
# Composite Recommendation returns both a *source entity* (e.g., an Item or [Item Segment](https://docs.recombee.com/segmentations)) and a list of related recommendations in a single response.
11
11
#
12
12
# It is ideal for use cases such as personalized homepage sections (*Articles from <category>*), *Because You Watched <movie>*, or *Artists Related to Your Favorite Artist <artist>*.
13
13
#
@@ -37,8 +37,8 @@ module RecombeeApiClient
37
37
# See [this example](https://docs.recombee.com/api#composite-recommendation-example-setting-parameters-for-individual-stages) for more details.
@@ -66,6 +66,8 @@ class CompositeRecommendation < ApiRequest
66
66
#
67
67
# - +segmentId+ -> ID of the segment from `contextSegmentationId` for which the recommendations are to be generated.
68
68
#
69
+
# - +searchQuery+ -> Search query provided by the user. It is used for the full-text search. Only applicable if the *scenario* corresponds to a search scenario.
70
+
#
69
71
# - +cascadeCreate+ -> If the entity for the source recommendation does not exist in the database, returns a list of non-personalized recommendations and creates the user in the database. This allows, for example, rotations in the following recommendations for that entity, as the entity will be already known to the system.
70
72
#
71
73
# - +sourceSettings+ -> Parameters applied for recommending the *Source* stage. The accepted parameters correspond with the recommendation sub-endpoint used to recommend the *Source*.
# Returns Item segments that shall be shown to a user as next recommendations when the user e.g. scrolls the page down (*infinite scroll*) or goes to the next page.
11
+
#
12
+
# It accepts `recommId` of a base recommendation request (e.g., request from the first page) and the number of segments that shall be returned (`count`).
13
+
# The base request can be one of:
14
+
# - [Recommend Item Segments to Item](https://docs.recombee.com/api#recommend-item-segments-to-item)
15
+
# - [Recommend Item Segments to User](https://docs.recombee.com/api#recommend-item-segments-to-user)
16
+
# - [Recommend Item Segments to Item Segment](https://docs.recombee.com/api#recommend-item-segments-to-item-segment)
# All the other parameters are inherited from the base request.
20
+
#
21
+
# *Recommend next Item segments* can be called many times for a single `recommId` and each call returns different (previously not recommended) segments.
22
+
# The number of *Recommend next Item segments* calls performed so far is returned in the `numberNextRecommsCalls` field.
23
+
#
24
+
# *Recommend next Item segments* can be requested up to 30 minutes after the base request or a previous *Recommend next Item segments* call.
25
+
#
26
+
# For billing purposes, each call to *Recommend next Item segments* is counted as a separate recommendation request.
27
+
#
28
+
classRecommendNextItemSegments < ApiRequest
29
+
attr_reader:recomm_id,:count
30
+
attr_accessor:timeout,:ensure_https
31
+
32
+
##
33
+
# * *Required arguments*
34
+
# - +recomm_id+ -> ID of the base recommendation request for which next recommendations should be returned
35
+
# - +count+ -> Number of item segments to be recommended
0 commit comments