algo-ecom-ranking

Solid

"Design multi-objective e-commerce product ranking combining relevance, conversion, and business metrics. Use this skill when the user needs to build a product ranking system beyond text relevance, balance relevance with commercial objectives, or implement learning-to-rank — even if they say 'product sorting', 'search result ranking', or 'how to rank products'.".

AI & Automation 22 stars 8 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 82/100

Stars 20%
45
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# E-Commerce Product Ranking ## Overview E-commerce ranking combines text relevance (BM25) with commercial signals (CTR, conversion rate, revenue, margin) into a unified ranking score. Uses learning-to-rank (LTR) models trained on click and conversion data to optimize for business-relevant outcomes. ## When to Use **Trigger conditions:** - Building a product search/browse ranking beyond pure text relevance - Incorporating business metrics (margin, inventory) into ranking - Implementing a learning-to-rank pipeline **When NOT to use:** - For pure text search relevance only (use BM25) - When no click/conversion data exists (start with rule-based ranking) ## Algorithm ``` IRON LAW: Relevance Is Necessary But NOT Sufficient for E-Commerce Ranking A result that is textually relevant but has zero sales history, no reviews, and is out of stock serves no one. E-commerce ranking must balance: relevance (does it match the query?), quality (is it a good product?), and commercial value (does it generate revenue?). ``` ### Phase 1: Input Validation Collect features per product-query pair: text relevance score (BM25), historical CTR, conversion rate, average rating, review count, price competitiveness, inventory level, margin. **Gate:** Minimum features available, click data from 30+ days. ### Phase 2: Core Algorithm **Rule-based baseline:** Score = w₁×relevance + w₂×popularity + w₃×rating + w₄×recency. Manually tune weights. **LTR approach:** 1. Generate training data from click ...

Details

Author
charlieviettq
Repository
charlieviettq/awesome-agent-skill
Created
2 months ago
Last Updated
1 weeks ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category