Prompt
What should I use for product recommendations with business rules?
Latest observation
Oct 13, 2026
OpenAI APIWeb search: off
If you need product recommendations with business rules, the best choice is usually a hybrid recommender system:
-
A recommender model to rank products by relevance
- collaborative filtering
- content-based recommendations
- learning-to-rank / retrieval + ranking
- vector search / embeddings for candidate generation
-
A rules layer to enforce business constraints
- hide out-of-stock items
- exclude restricted products
- boost high-margin products
- cap repetition / diversity
- respect category, price, or brand rules
- prioritize promotions
Common practical setup
- Candidate generation: ML model or vector search
- Filtering: hard business rules
- Ranking: ML model with business features
- Re-ranking: apply boosts, diversity, eligibility, and fairness rules
Good technologies/patterns
- OpenSearch / Elasticsearch: good for search + filtering + basic boosting
- Vector databases like Pinecone, Weaviate, Milvus, pgvector: good for similarity-based recommendations
- Feature store + ranking model: if you want more advanced personalization
- Rule engine such as Drools, or simple custom rules in code: for business logic
- Hybrid recommender frameworks: depending on your stack, use a pipeline where rules are separate from the model
Recommended approach
If you’re building this from scratch, a solid architecture is:
- ML model for relevance
- Rules engine for eligibility and overrides
- Re-ranker for business priorities
- A/B testing to tune tradeoffs
When to use what
- Simple catalog + rules: search engine with filters and boosts
- Personalized recommendations: ML + rules layer
- Highly dynamic business constraints: rules engine plus ranking model
- Large-scale semantic recommendations: embeddings/vector search + business re-ranking
If you tell me:
- your stack,
- catalog size,
- whether you need real-time personalization,
- and what kinds of business rules you have,
I can recommend a concrete architecture or toolset.