Custom Filtering and Boosting Rules
With Filters and Boosters, you can highlight specific categories, brands, editor-picked content, local deals, and more—delivering diverse recommendation boxes and email campaigns.
While our predefined rules cover a wide range of scenarios, you might find a unique requirement that calls for a custom filtering or boosting rule. No need to worry—Recombee is fully equipped to handle it all with our innovative ReQL language.
ReQL
ReQL is a powerful query language specifically designed for expressing Filters and Boosters based on the attributes of both items (content or products) and users. Its flexibility allows you to craft intricate rules tailored to your needs.
Example Queries
Consider this straightforward filter:
"thriller" in 'genres'
This filter ensures that only thriller movies are recommended.
The following example uses user-specific content suitability:
if context_user["is_kid_profile"] then
'is_kids_friendly'
else
true
This filter restricts recommendations to kid-friendly content for users identified as minors.
ReQL Features
ReQL is feature-rich, boasting functions for geo-filtering, processing user interactions, and more. Comprehensive documentation on ReQL is available to help you harness its full potential. Additionally, our AI Assistant is on hand to support you in crafting these queries.
Within the Admin UI, you’ll find a user-friendly ReQL editor and validator that allows you to preview the outcomes of your Filters and Boosters. The AI Assistant can even translate your requirements from natural language into ReQL.
For example, if you type: “Allow only movies starring Emma Stone that were released from 2020 onward,” the AI Assistant will generate the following ReQL filter:
"Emma Stone" in 'actors' and 'year' >= 2020
The assistant is also equipped to explain any existing rules, ensuring you understand and can modify them as needed.
Applying the Rules
Once you create a rule, it is seamlessly added to your Filters and Boosters library, making it easy to apply to any Scenario.
This means that after setting up your rules, modifying their application and adjusting parameters—like the maximum age of articles or distance from the user—can be done without requiring technical expertise.