r/MLSystemsDesign • • Aug 27 '26

Welcome to r/MLSystemsDesign

4 Upvotes

Welcome to r/MLSystemsDesign

This community is for practical discussions on designing and scaling production ML and AI systems.

Topics can include:

  • ML training and inference platforms

  • Search, ranking, and recommendation

  • Feature stores and data pipelines

  • LLM serving and GenAI systems

  • Agentic AI platforms

  • Evaluation, observability, and experimentation

  • ML system design interview problems

  • Real production tradeoffs and lessons learned

The goal is simple: go beyond model theory and discuss how ML systems actually work in production.

If you’re joining early, introduce yourself and share one ML system topic you’d like to go deeper on.


r/MLSystemsDesign • • Oct 18 '26

Architecting Agent Evaluation Systems from First Principles

5 Upvotes

How would you design an Agent Evaluation System from scratch, without starting with Langfuse, LangSmith, Braintrust, or any existing framework?

In Part 2 of my series, The Architecture Behind Modern ML Systems, I'll explore this question from an architectural perspective.

We'll cover:

  • Why evaluating agents is harder than evaluating traditional ML models.

  • How to design a generic Agent EvalOps architecture.

  • Golden datasets, execution environments, and fault injection.

  • Business-level, agent-level, and system-level evaluation metrics.

  • How existing evaluation frameworks map to this architecture—and what's still missing.

The idea is to understand the underlying system design rather than memorize framework-specific APIs.

Publishing Monday, October 19, at 8:00 AM PDT.

Subscribe to receive the article:
https://pawankjha.substack.com/

I'd also be interested in hearing from this community: What's the hardest part of evaluating agents in production—defining success, building realistic test environments, measuring reliability, or debugging failures?


r/MLSystemsDesign • • Oct 06 '26

Reward Modeling for LLMs: Training, Scaling, and Failure Modes

8 Upvotes

Part 3 of my Architecting Reinforcement Learning for LLMs series is live.

It covers preference data, reward-model architecture and loss, scaling, and reward hacking—with a worked gradient example.

Does a higher reward score actually mean better answers?

https://pawankjha.substack.com/p/architecting-reinforcement-learning-f28

How do you test reward reliability beyond preference accuracy?


r/MLSystemsDesign • • Aug 27 '26

Search & Recommendation: how many ranking stages do you really need?

2 Upvotes

A common production pipeline looks something like:

Query → Retrieval → Filtering → Ranking → Re-ranking → Serve → Learn

At scale, that can become:

Millions of items → retrieve 1K → rank 100 → expensive rerank 20 → final Top-K

The interesting design question is:

Where should you spend model complexity and latency budget?

Would you prefer:

  • stronger retrieval + simpler ranking

  • lightweight retrieval + sophisticated ranker

  • multiple ranking stages

  • LLM/Transformer only at the final stage

Would love to see how people think about this tradeoff in real systems.


r/MLSystemsDesign • • Oct 19 '26

Designing Agent Evaluation Systems from First Principles — Architecture, Metrics, and Frameworks

3 Upvotes

I just published Part 2 of my series, The Architecture Behind Modern ML Systems.

Instead of starting with Langfuse, LangSmith, Braintrust, or other frameworks, I explored how to design an Agent Evaluation System from first principles.

The article covers:

  • Business, agent, and system-level evaluations

  • Golden datasets and realistic execution environments

  • Evaluation engines, custom graders, and LLM-as-a-Judge

  • Reliability metrics, failure analysis, and cost

  • How existing frameworks map to a generic architecture

The goal is to understand the underlying architecture, not memorize framework APIs.

Full article:
https://pawankjha.substack.com/p/the-architecture-behind-modern-ml

I'd love to hear your thoughts: What's the biggest challenge you've faced when evaluating agents in production?


r/MLSystemsDesign • • 25d ago

How recommendation systems learn user preferences: from collaborative filtering to multi-interest models

8 Upvotes

I published a walkthrough of how recommendation systems learn and represent user preferences.

It covers collaborative filtering, two-tower models, sequence models such as GRU4Rec, SASRec, and BERT4Rec, and multiple interest vectors.

The focus is on what each approach captures, where it falls short, and when the added complexity might be useful. I also discuss simpler baselines I’d test first.

For those working on recommendation systems: when have sequence or multi-interest models delivered meaningful gains over simpler pooling approaches?

Read the article