Skip to content

Merch Rules for Recommendations

Merchandising rules for recommendations apply margin/stock constraints, brand exclusions, and diversity controls to recommendation modules.

Overview

Merchandising rules for recommendations ensure recommendations align with business objectives while maintaining relevance and user experience.

Rule Types

Margin Constraints

{
  "rule_type": "margin_constraint",
  "min_margin": 0.15,
  "apply_to": ["all_recommendations"]
}

Stock Constraints

{
  "rule_type": "stock_constraint",
  "min_inventory": 5,
  "apply_to": ["all_recommendations"]
}

Brand Exclusions

{
  "rule_type": "brand_exclusion",
  "excluded_brands": ["brand_x"],
  "apply_to": ["similar_items"]
}

Diversity Controls

{
  "rule_type": "diversity",
  "max_per_brand": 2,
  "max_per_category": 3,
  "apply_to": ["all_recommendations"]
}

Best Practices

  1. Balance constraints: Don't over-constrain recommendations
  2. Test impact: Measure how rules affect performance
  3. Maintain relevance: Ensure rules don't hurt relevance
  4. Update regularly: Adjust rules based on performance