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: recombee_api_client/api_requests/composite_recommendation.py
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@
13
13
14
14
classCompositeRecommendation(Request):
15
15
"""
16
-
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.
16
+
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.
17
17
18
18
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>*.
19
19
@@ -79,6 +79,9 @@ class CompositeRecommendation(Request):
79
79
:param segment_id: ID of the segment from `contextSegmentationId` for which the recommendations are to be generated.
80
80
81
81
82
+
:param search_query: Search query provided by the user. It is used for the full-text search. Only applicable if the *scenario* corresponds to a search scenario.
83
+
84
+
82
85
:param cascade_create: 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.
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.
13
+
14
+
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`).
15
+
The base request can be one of:
16
+
- [Recommend Item Segments to Item](https://docs.recombee.com/api#recommend-item-segments-to-item)
17
+
- [Recommend Item Segments to User](https://docs.recombee.com/api#recommend-item-segments-to-user)
18
+
- [Recommend Item Segments to Item Segment](https://docs.recombee.com/api#recommend-item-segments-to-item-segment)
0 commit comments