Composite Recommendation
Changed onComposite Recommendation returns both a source entity (e.g., an Item or Item Segment) and a list of related recommendations in a single response.
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>.
See detailed examples and configuration guidance in the Composite Scenarios documentation.
Structure
The endpoint operates in two stages:
- Recommends the source (e.g., an Item Segment or item) to the user.
- Recommends results (items or Item Segments) related to that source.
For example, Articles from <category> can be decomposed into:
- Recommend Item Segments To User to find the category.
- Recommend Items To Item Segment to recommend articles from that category.
Since the first step uses Recommend Item Segments To User, you must include the userId parameter in the Composite Recommendation request.
Each Composite Recommendation counts as a single recommendation API request for billing.
Stage-specific Parameters
Additional parameters can be supplied via sourceSettings and resultSettings. In the example above:
- sourceSettings may include any parameter valid for Recommend Item Segments To User (e.g., filter, booster).
- resultSettings may include any parameter valid for Recommend Items To Item Segment.
See this example for more details.
Request
- Base URLhttp://Based on the region of your database (see https://docs.recombee.com/regions).
- URLhttp://Based on the region of your database (see https://docs.recombee.com/regions)./{databaseId}/recomms/composite/
- Authnone declared
Path parameters
ID of your database.
Request body
Response
Successful operation.
Changes
- info
added the new optional request property
- info