मुख्य सामग्री पर जाएँ
Skillpedia
मशीन लर्निंग41k · #6739

recsys-pipeline-architect

यह क्या करती है

यह टूल ऐसे सिस्टम बनाने में मदद करता है जो किसी यूज़र के लिए सबसे अच्छे आइटम चुनते हैं, जैसे न्यूज़ फ़ीड या प्रोडक्ट सुझाव। यह इस प्रक्रिया को साफ़ स्टेप्स में बाँटता है।

कब इस्तेमाल करें

  • ✓पर्सनलाइज़्ड न्यूज़ फ़ीड बनाते समय।
  • ✓सर्च नतीजों को व्यवस्थित करते समय।
  • ✓यह तय करते समय कि कौन से नोटिफ़िकेशन भेजने हैं।

Skill का लिंक

https://github.com/wshobson/agents/blob/main/plugins/machine-learning-ops/skills/recsys-pipeline-architect/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/wshobson/agents/blob/main/plugins/machine-learning-ops/skills/recsys-pipeline-architect/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मैं एक ऐसा सिस्टम बनाना चाहता हूँ जो मेरे यूज़र्स को उनकी पहले देखी गई चीज़ों के आधार पर वीडियो सुझाए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

यह काम को छह हिस्सों में बाँटता है: आइटम लाना, जानकारी जोड़ना, अप्रासंगिक आइटम हटाना, उन्हें स्कोर करना, सबसे अच्छे चुनना, और फिर सेव करना जैसे अतिरिक्त काम करना।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Recsys Pipeline Architect

A spec-and-scaffold skill for building composable recommendation, ranking, and feed pipelines. Encodes the six-stage pattern popularized by xAI's open-sourced For You algorithm (Apache 2.0) and applies it to any "top K for (user, context)" problem.

Overview

Most "recommendation systems" in production aren't exotic ML — they're pipelines: fetch candidates from one or more sources, enrich them with metadata, drop the ineligible, score the rest, sort and pick the top K, then fire async side effects. The pattern is universal. The scoring function and the items change; the pipeline shape doesn't.

This skill is an independent reimplementation of the pattern (MIT) — no code copied from the original.

When to Use This Skill

  • Building any system that returns "the top K items for a user/context"
  • Designing or refactoring a personalized feed (content, search results, notifications)
  • Wrapping an LLM/ML scorer in proper pipeline plumbing (sources, hydration, filters, side effects)
  • Adding multi-action prediction with tunable weights (instead of a single relevance score)
  • Building a RAG retrieval reranker (cheap retrieval → expensive rerank)
  • Designing a task prioritizer or alert triage system

The Six-Stage Framework

# Stage Job Parallel?
1 Source Fetch candidates from one or more origins Yes — multiple sources run in parallel
2 Hydrator Enrich candidates with metadata needed for filtering and scoring Yes — independent hydrators run in parallel
3 Filter Drop ineligible candidates (blocked, expired, duplicate, ineligible) Sequential — each filter sees fewer items
4 Scorer Assign each surviving candidate one or more scores Sequential — later scorers see earlier scores
5 Selector Sort by final score, return top K Single op
6 SideEffect Cache, log, emit events, update served-history Async — must never block the response

Why this exact order

  • Sources before hydration: know what candidates exist before paying to enrich
  • Hydration before filtering: many filters need metadata the source didn't provide
  • Filtering before scoring: scoring is the expensive stage — drop the ineligible first
  • Scorer chain (not single scorer): real systems compose ML scoring + diversity reranking + business rules
  • Selector after scoring: keeps scoring deterministic and cacheable
  • SideEffects last and async: side effects must never block the user response

Workflow When Invoked

Walk the user through eight steps:

  1. Clarify the use case (one round, three questions only if missing): items being ranked, input context, language/runtime
  2. Identify the candidate sources (usually in-network + out-of-network, but single-source also valid)
  3. List required hydrations — for each filter and scorer, what data does it need that the source didn't provide?
  4. List the filters — cheap before expensive, universal before user-specific (duplicate, self, age, block/mute, previously-served, eligibility)
  5. Design the scorer chain — primary ML/heuristic → combiner (multi-action with weights) → diversity → business rules
  6. Selector — sort descending by final score, take top K (or stratified mix)
  7. SideEffects — cache served IDs, emit impression events, update counters, log analytics; all fire-and-forget
  8. Generate the scaffold in the user's stack

Key Trade-offs to Surface

Never default silently on these — they are product decisions disguised as technical ones.

1. Single score vs multi-action prediction

  • Single score: train one model to predict relevance. To change behavior → retrain.
  • Multi-action: predict P(action) for many actions (P(read), P(like), P(share), P(skip), P(report)), combine with weights at serving time. To change behavior → change weights. No retraining.

The X For You algorithm uses multi-action with both positive and negative weights. Recommend multi-action when the user expects to tune frequently.

2. Candidate isolation vs joint scoring

  • Isolated: each candidate scored independently. Deterministic, cacheable.
  • Joint: candidates attend to each other during scoring (e.g., transformer over the whole batch). More expressive but non-deterministic across batches.

Default to isolation. Joint only when there's a specific reason (e.g., explicit batch-aware diversity).

…

अक्सर पूछे जाने वाले सवाल

इन स्टेप्स का यही क्रम क्यों?

यह क्रम कुशलता के लिए बनाया गया है: पहले आइटम लाओ, जानकारी तभी जोड़ो जब ज़रूरत हो, स्कोरिंग में समय लगाने से पहले अनुपयुक्त आइटम हटा दो, और अतिरिक्त काम बिना जवाब में देरी किए करो।

'multi-action' का क्या मतलब है?

एक ही 'प्रासंगिकता' स्कोर के बजाय सिस्टम कई कार्यों का अनुमान लगा सकता है (जैसे 'देखना', 'लाइक', 'स्किप') और वेट से हर एक का महत्व बदल सकते हैं, बिना दोबारा ट्रेन किए।

क्या अलग-अलग तरह के सिस्टम मिला सकते हैं?

हाँ, इसका विचार यह है कि स्टेप्स बिल्डिंग ब्लॉक्स की तरह हैं जिन्हें आप जोड़ सकते हैं। जैसे उम्मीदवार चुनने के लिए एक सरल सर्च सिस्टम और फिर चयन को बेहतर करने के लिए एक ज़्यादा जटिल सिस्टम।

जानकारी

लेखक का मूल विवरण

Design composable recommendation, ranking, and feed pipelines using the six-stage Source→Hydrator→Filter→Scorer→Selector→SideEffect framework popularized by xAI's open-sourced X For You algorithm. Use when building any system that picks "the top K items for a (user, context)" — content feeds, search ranking, RAG rerankers, task prioritizers, notification triage, ad selection.

repo: wshobson/agents

लोकप्रियता

GitHub स्टार
41k
रैंकिंग में स्थान
#6739
लाइसेंस
MIT
अपडेट की गई
15/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills