nrofcontextualhits

Type: boolean
Default: false
Context: prediction

About this parameter

rek.ai strives to create a balanced recommendation that takes into account both the contextual and the parametric. But if you want to focus on the contextual (or not), you can specify how many of the recommendations use that technology.

So if you make five recommendations and set nrofcontextualhits to 5, all recommendations will focus on the context.

The "-2" case

If you set nrofcontextualhits to -2, the system will try to use the page the user visited before the current page as a contextual sourse. This is useful when doing recommendations on a "collection" page where we want the article the user previously visited to influnce the recommendations

Usage examples

<div class="rek-prediction" data-nrofcontextualhits="5"></div>