Skip to main content

Combination / Stack Rule
Combination / Stack Rule

This article explains the difference between the stack rule and the combination rule—and when to use each. These rules are particularly helpful if your knowledge map has multiple simple triangle rules. The article also gives you an example knowledge map so you can explore stack and combination rules inside the Rainbird Studio.

If you are building a map comprised of multiple simple triangle rules, there are different approaches to utilising them all effectively in one rule. All the conditions taken into account can either be stacked in one relationship’s rule, or they can be combined from sub-relationships’ rules into an overall relationship’s rule.

Stacked rules are best used when the number of conditions for a rule is low, as fewer relationships will need to be created. If the number of conditions significantly grows, it is recommended to use combination rules as it improves the readability and makes it easier to maintain the map.

To demonstrate how to use and build combination/stack rules, this article will show you how to build a film recommendation tool that uses both types of rules.

Click on a sub-topic below for more information:

  1. Stack Rule
  2. Combination Rule
  3. Combination / Stack Rule - Downloadable Model
0 questions
0 posts

You will need to register to be able to post or comment on a topic.  

Combination / Stack Rule - Downloadable Model

Query & Results

The stack rule is built on the ‘gets recommended a movie based on content’ relationship.

The combined rule is built on the ‘get recommendation combined’ relationship

Combination Rule - Build Example

To improve the build (see first build section) the validity of the film recommendation, logistical information (cinema location, projection time), as well as meta-information about the movie (rating, length, and language) will be taken into consideration when returning... (More)

Stack Rule - Building Example

First, build the basic triangle structure of the map, as shown in Figure 1:

The model will make a film recommendation to a user, by checking whether a film is in the genre the user wants to watch and contains... (More)

.menu.bell.icon {color: #1c083b;}