5.3.5 · HinglishMLOps & Deployment

Feature stores

1,840 words8 min readRead in English

5.3.5 · AI-ML › MLOps & Deployment


Feature stores KYUN exist karte hain?

KYA deta hai ek feature store:

  • Har feature ki single definition (ek baar likho, sab jagah reuse karo).
  • Offline store (sasta, high-throughput) training sets banane ke liye.
  • Online store (low-latency key-value) inference ke waqt serving ke liye.
  • Data leakage rokne ke liye Point-in-time correctness.
  • Discoverability (features ka ek searchable catalog).

Do stores — KYA aur KYUN

Figure — Feature stores

Point-in-time correctness (deep wala part)


Consistency guarantee (KYUN skew disappear hoti hai)


Anatomy / vocabulary


Common mistakes (Unhe Steel-man karo)


Recall Feynman: ek 12-saal ke bache ko explain karo

Socho tum cookies bake kar rahe ho. Recipe card kehti hai "jitni cheeni tumne aaj subah measure ki thi, utni daalo." Ek feature store puri kitchen ke liye ek shared recipe box jaisa hai: sab log bilkul same recipe cards use karte hain, toh cookies ek jaise taste karti hain chahe tum ek badi batch bako (training) ya abhi ek customer ke liye sirf ek cookie bako (serving). Aur ek rule hai: jab tum check karo "hamare paas kitni cheeni thi?", toh sirf woh note dekho jo shuru karne se pehle tha, kabhi baad mein likhe note ki taraf mat jhankna — warna tum aise information se cheating kar rahe hote jo tumhare paas actually thi hi nahi.


Flashcards

Feature store kaunsi core problem solve karta hai?
Training–serving skew aur feature duplication, ek consistent definition dekar jo training aur inference dono ko serve hoti hai.
Training–serving skew define karo.
Training mein use ki gayi feature values aur inference par compute ki gayi values ke beech mismatch, usually alag code paths ya timing se.
Offline vs online store — dono ka purpose?
Offline = training sets banane ke liye high-throughput historical store; Online = real-time serving ke liye latest values ka low-latency key-value store.
Point-in-time join rule batao.
time par label ke liye, woh feature observation lo jiska sabse bada ho aur (kabhi future se nahi).
Training set banate waqt latest feature value kyun nahi leni chahiye?
Yeh future information ko past label mein leak karta hai → inflated offline metrics, production mein failure.
Feature store mein materialization kya hai?
Woh job jo computed feature values ko offline store se online store mein copy karta hai fast serving ke liye.
TTL ek feature ke saath kya karta hai?
Use expire karta hai: agar freshest observation event se se zyada purani hai, toh feature null/default treat hoti hai.
Feature-store terms mein "entity" kya hota hai?
Woh object jise ek feature describe karta hai (jaise user, product), jo ek join key se identify hota hai.
Zero skew ke liye condition (formula)?
; ek single registered feature definition se enforce hota hai.
Kya feature store sirf ek database hai?
Nahi — yeh offline+online stores ke upar ek abstraction hai plus ek registry, materialization engine aur serving API.

Connections

  • Data leakage — point-in-time joins iska defence hain.
  • Training-serving skew — core failure mode.
  • Model deployment — serving path online store use karta hai.
  • Batch vs streaming pipelines — features kaise materialize hote hain.
  • Redis / DynamoDB — typical online stores.
  • Data versioning — features ko bhi reproducibility chahiye.
  • Feature engineering — definitions yahan se aati hain.

Concept Map

solves

solves

degrades

provides

syncs to

syncs to

high throughput builds

low latency serves

joined via

prevents

picks value where

adds

Feature Store

Duplication of features

Training-serving skew

Deployed model

Single feature definition

Offline store

Online store

Training datasets

Inference prediction

Point-in-time join

Data leakage

t_i <= t_e

Searchable catalog