Skip to content

filter.yaml Configuration

This document aims to explain the parameters used in the conf/filter.yaml file and their effects.

Filters Configuration

The filters section is optional. You can define multiple filters or leave this section out if not needed. Each filter entry should include a name and an expression.

Filter Fields

filters:
  - name: "filter_by_genre"
    expression: "INCLUDE ItemID WHERE Items.GENRE IN ($GENRE)"

name

  • Description: The name of the filter.
  • Example: "filter_by_genre"
  • Constraints: Must be unique within the project.

expression

  • Description: The filter expression used to customize the recommendation results. This expression follows the AWS Personalize filter expression syntax.
  • Example: "INCLUDE ItemID WHERE Items.GENRE IN ($GENRE)"
  • Reference: Filter Expressions