<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Aditi Jain on Medium]]></title>
        <description><![CDATA[Stories by Aditi Jain on Medium]]></description>
        <link>https://medium.com/@aditijain4151?source=rss-9cb527e4e850------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dLJK5KtE5NUtONNDZQ5mkQ.png</url>
            <title>Stories by Aditi Jain on Medium</title>
            <link>https://medium.com/@aditijain4151?source=rss-9cb527e4e850------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 20:06:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aditijain4151/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The GPU didn’t just make inference faster.]]></title>
            <link>https://medium.com/from-prd-pr-product-release/the-gpu-didnt-just-make-inference-faster-c54616bf9692?source=rss-9cb527e4e850------2</link>
            <guid isPermaLink="false">https://medium.com/p/c54616bf9692</guid>
            <category><![CDATA[agentic-workflow]]></category>
            <category><![CDATA[llm-evaluation]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Aditi Jain]]></dc:creator>
            <pubDate>Fri, 28 Aug 2026 07:46:30 GMT</pubDate>
            <atom:updated>2026-09-05T19:15:29.496Z</atom:updated>
            <content:encoded><![CDATA[<h3>The GPU didn’t just make inference faster. It made it cheaper — even though the hourly rate is higher.</h3><p><em>From PRD → Product Release | A Technical PM’s lessons building AI in production.</em></p><p><a href="https://github.com/SmartWrapperOSS/SmartWrapperOSS">SmartWrapperOSS</a> is an open-source evaluation framework: run the same task through multiple orchestration frameworks (AutoGen-style, LangGraph-style) and multiple models, and compare quality, latency, and cost side by side, in one command.</p><p>I ran the same three open-weight models — gemma2:9b, mistral:7b, qwen2.5:7b — through the same two workflows (summarization, tool-use), on two pieces of hardware: a CPU-only VM, then the same setup with an NVIDIA T4 GPU attached. Same models, same tasks, same eval harness. The only variable was the hardware underneath.</p><h3><strong>What I tested</strong></h3><p><strong>1. Two machines, one variable.</strong> c2-standard-8 (8 vCPUs, no accelerator) vs. n1-standard-4 + 1x NVIDIA T4. Same three models on both, served locally — $0 in API token cost either way.</p><p><strong>2. Twelve combinations, five runs each.</strong> Two workflows × two orchestration frameworks × three models, each repeated 5 times, mean latency and score reported per combination.</p><p><strong>3. Real dollar cost, not just latency.</strong> I priced both VMs at their on-demand hourly rate and converted every run’s latency into an actual cost per call — not a hypothetical, the number you’d actually pay.</p><h3><strong>What the numbers showed</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pwJlt4n4-xqXiGX4bAeCzQ.png" /></figure><p>Press enter or click to view image in full size</p><p><em>CPU vs. GPU, twelve combinations, real cost per call.</em></p><ul><li>gemma2:9b sped up <strong>7.0–7.5x</strong> on the GPU across all three of its runs — the largest model in the test saw the largest, most consistent gains.</li><li>Total cost across all twelve combinations dropped <strong>47%</strong> on GPU, even though the GPU-attached VM bills at a higher hourly rate than the plain CPU box. It just finishes so much faster that the total bill comes out lower.</li><li>One combination didn’t follow the pattern: qwen2.5:7b on summarization via AutoGen was <strong>slower</strong> on GPU (399.9s vs. 282.8s on CPU) and cost more as a result ($0.0600 vs. $0.0328). I don’t have a confirmed root cause — possibly a framework-specific batching quirk — and I’m reporting it as-is rather than smoothing it out.</li><li>Quality didn’t move with the hardware. gemma2:9b scored 82.8–85.7 on summarization on both machines; mistral:7b scored ~20 on tool-use on <em>both</em> CPU and GPU, failing that task consistently regardless of hardware. The GPU changes speed and cost, not what the model is capable of.</li></ul><h3>Why this matters for anyone running open models</h3><p>GPU acceleration for local inference isn’t just an interactive-latency nicety — it’s a total-cost lever. A VM billed by the hour that finishes a task in a tenth of the time bills for a tenth of the hours, even at a higher sticker rate per hour. The math gets <em>more</em> favorable for GPU as the model gets heavier, not less — the biggest model in this test had the biggest win.</p><p>The one outlier matters just as much as the six wins: don’t assume GPU acceleration is universal across every model and framework combination. Measure your own workload before committing budget to it.</p><p>As of this writing (August 28, 2026), the evaluation code is in the repo. Cost-per-call was calculated based on on-demand VM pricing as of this writing — see the caveats above.</p><p>DISCLAIMER</p><p>Opinions expressed are solely my own in a personal capacity and do not represent the views, policies, or positions of any current or former employer, or their affiliates.</p><p>I have no affiliations with NVIDIA, Google Cloud, or the model providers referenced. Cost figures are estimated from on-demand hourly VM pricing × measured latency, not a billed invoice — verify current pricing against your provider’s documentation. Scores shown are from a fixed benchmark task at n=5 and are directional signals, not ground truth — see the project README for full methodology and limitations.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c54616bf9692" width="1" height="1" alt=""><hr><p><a href="https://medium.com/from-prd-pr-product-release/the-gpu-didnt-just-make-inference-faster-c54616bf9692">The GPU didn’t just make inference faster.</a> was originally published in <a href="https://medium.com/from-prd-pr-product-release">From PRD →PR (Product Release)</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[One Run Is an Anecdote. Five Runs Are Evidence.]]></title>
            <link>https://medium.com/from-prd-pr-product-release/one-run-is-an-anecdote-five-runs-are-evidence-a4bf681a78fb?source=rss-9cb527e4e850------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4bf681a78fb</guid>
            <category><![CDATA[llm-evaluation]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[large-language-models]]></category>
            <dc:creator><![CDATA[Aditi Jain]]></dc:creator>
            <pubDate>Sun, 05 Jul 2026 07:18:17 GMT</pubDate>
            <atom:updated>2026-07-05T07:35:18.351Z</atom:updated>
            <content:encoded><![CDATA[<ul><li><em>SmartWrapperOSS now reports mean ± std dev with 95% confidence intervals. What shipped, and what the error bars found on day one.</em></li><li><em>From PRD → Product Release | A Technical PM’s lessons building AI in production.</em></li></ul><p>[SmartWrapperOSS](https://github.com/SmartWrapperOSS/SmartWrapperOSS) is an open-source eval framework: run the same task through multiple orchestration frameworks (AutoGen-style, LangGraph-style) and multiple models (GPT-4o, Claude, Gemini), and compare quality, latency, and cost side by side, in one command.</p><p>This release adds multi-run statistics. With one flag — ` — runs 5` — every (framework, model) combination repeats N times, and the comparison table reports <strong>**mean ± std dev with 95% confidence intervals**</strong> instead of a single number.</p><p><strong>What shipped</strong></p><p><strong>**1. Repeated runs with proper statistics.**</strong> Confidence intervals use the Student’s t-distribution, which matters at realistic run counts (n=3–10, given API costs). Latency is reported as median/p95 rather than mean, because one slow API call shouldn’t skew a cell.</p><p><strong>**2. Raw runs, persisted and published.**</strong> Every run is written to disk as JSON the moment it’s scored — full output, token counts, latency, cost, scores. This makes benchmarks resumable (a crash at run 4 of 5 never re-pays for runs 1–3), incremental (` — runs 3` today, ` — runs 10` next week just adds seven), and auditable: the raw records are committed in the repo, so anyone can re-derive every published number.</p><p><strong>**3. Cost controls.**</strong> Multi-run multiplies API spend, so ` — max-cost` halts new runs at a dollar threshold. Completed runs are kept; rerun to resume.</p><p><strong>**4. Honest verdicts.**</strong> When the top two combinations have overlapping confidence intervals, the tool prints: <em>*”this ranking is NOT statistically distinguishable at n=5.”*</em> It refuses to declare a winner the data doesn’t support.</p><p><strong>What the error bars showed</strong></p><p>Running the benchmarks at n=5:</p><p>- One combination scored <strong>**85.0 ±22.4**</strong> on argument correctness — perfect in four runs, badly wrong in one. Any single observation would show 100, or 40, depending on which run you caught.</p><p>- Another showed <strong>**86.7 ±29.8**</strong> on tool selection — four clean runs, one outright failure. Intermittent behavior only becomes a measurement once you repeat.</p><p>- In the summarization benchmark, the composite leader was <strong>**not**</strong> the best at everything: claude-sonnet-4–6 ranked near the bottom on composite (driven by latency and cost) yet won conciseness by 20+ points with near-zero variance. Which row is “best” depends on what your task actually needs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aC70Sz5xpBnY8t5B2QnGyQ.png" /><figcaption>Benchmarks, now with error bars.</figcaption></figure><p><strong>Why this matters for product managers</strong></p><p>Picking a model and framework is usually treated as a purely technical decision — but its consequences (quality, latency, cost) are product consequences, and this gives PMs the evidence to weigh in credibly.</p><p>Variance is a risk metric means alone hide: 85.0 ±22.4 is a feature that shines in the demo and fails intermittently in production — visible before launch, not after. The composite winner isn’t automatically <em>*your*</em> winner: which dimension matters — conciseness, latency, cost — is a requirements question, and weighting it is the PRD. And mean cost per run × projected volume is your margin conversation, while p95 latency is the UX your users actually remember.</p><p>The interactive error-bar dashboards, raw run records, and code are in the [repo](https://github.com/SmartWrapperOSS/SmartWrapperOSS). Run it against your own tasks — that’s what it’s for.</p><p>DISCLAIMER</p><p><em>*Opinions expressed are solely my own in a personal capacity and do not represent the views, policies, or positions of any current or former employer, or their affiliates.*</em></p><p><em>*I have no affiliations with OpenAI, Anthropic, or Google. Scores shown are from a fixed benchmark task at n=5 and are directional signals, not ground truth — see the project README for the full methodology and limitations. Verify current model pricing against your provider’s documentation.*</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4bf681a78fb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/from-prd-pr-product-release/one-run-is-an-anecdote-five-runs-are-evidence-a4bf681a78fb">One Run Is an Anecdote. Five Runs Are Evidence.</a> was originally published in <a href="https://medium.com/from-prd-pr-product-release">From PRD →PR (Product Release)</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Picking the right model and agent — at the right cost and latency — shouldn’t be a guess]]></title>
            <link>https://medium.com/from-prd-pr-product-release/picking-the-right-model-and-agent-at-the-right-cost-and-latency-shouldnt-be-a-guess-f1f534663e0c?source=rss-9cb527e4e850------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1f534663e0c</guid>
            <category><![CDATA[ai-cost]]></category>
            <category><![CDATA[llm-agent]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Aditi Jain]]></dc:creator>
            <pubDate>Mon, 22 Jun 2026 00:39:28 GMT</pubDate>
            <atom:updated>2026-06-22T00:39:28.870Z</atom:updated>
            <content:encoded><![CDATA[<p><em>From PRD → Product Release | A Technical PM’s lessons building AI in production.</em></p><p>Every PM shipping an AI feature hits the same wall: a stakeholder asks “should we use GPT-4o or Claude or Gemini for this?” Everyone wants the top model. Few ask if the task needs it — until the bill or the complaint shows up.</p><p>Actually <em>trying</em> the alternatives is its own project — different API keys, different pricing pages, different prompt formats per provider, no easy way to run the same task across all of them and compare quality against cost against speed at once. By the time you’ve wired up a second model just to test it, you’ve spent more time on the comparison than the feature itself. So the original choice calcifies, and the real tradeoffs — is this fast enough, is this cheap enough, for what we’re actually getting — stay unanswered.</p><p>I built <a href="https://github.com/SmartWrapperOSS/SmartWrapperOSS">SmartWrapperOSS</a>, a small open-source tool, to make that answerable in one command.</p><h3>Two kinds of decisions, one tool</h3><p><strong>Agentic / tool-calling tasks.</strong> This is the part most comparison tools skip, and it’s often the harder decision: when your product needs to call APIs, check calendars, or chain multi-step actions, which orchestration approach actually completes the task correctly — and how does that hold up on speed and cost at scale? SmartWrapperOSS runs the same tool-calling benchmark through two agent frameworks (AutoGen-style and LangGraph-style), scoring whether they picked the right tool, passed correct arguments, and completed the task — mechanically checked against a known-correct answer, alongside latency and cost:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P8DBlY417gHksOF99RBMtw.png" /></figure><p>If your roadmap has an “agent” on it, this is the comparison that matters before you commit to a framework — not just “does it work,” but “does it work fast and cheap enough at the volume we’ll actually run it.”</p><p><strong>Summarization tasks.</strong> Point it at a document, and it runs the same summarization task through multiple models, scoring quality alongside latency and cost:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m6ExhFYBESe5bcYysvEDMA.png" /></figure><p>Same quality, 2.5x cost spread. That’s a real product decision, not a technical footnote.</p><h3>Why this is a PM problem, not just an engineering one</h3><p>A lower score doesn’t mean a worse model — it might mean a cheaper, faster model is <em>more than sufficient</em> for your task. That’s a roadmap conversation, not a technical detail. Cost-per-call and latency only sound abstract until you multiply them by expected usage — seeing $0.0058 vs $0.0099, or 5 seconds vs 10, for the same task completion is the difference between a guess and a defensible number in a budget or SLA conversation.</p><p>I’ve also tried to be upfront about what this tool <em>doesn’t</em> prove: the summarization scores partly come from an LLM judging another LLM’s output (with a rule against a model grading its own homework — though that’s not a perfect safeguard), and every result here is from a small, fixed benchmark, not a statistically validated study. I’d rather you trust this tool’s honesty about its limits than oversell a number that doesn’t hold up in your roadmap deck.</p><h3>Try it</h3><p>Free, open source (Apache 2.0), runs locally — your data goes to your own cloud storage and whichever model APIs you configure, nothing routes through me.</p><p><a href="https://github.com/SmartWrapperOSS/SmartWrapperOSS">github.com/SmartWrapperOSS/SmartWrapperOSS</a></p><p>If you’ve had the “which model should we use” conversation and wished you had real numbers instead of vibes — or you spot a gap in how this scores things — I’d love to hear it.</p><p>DISCLAIMER</p><p><em>*Cost figures shown above are estimates based on provider pricing at the time of the benchmark run, not guarantees — see the [disclaimer in the README](</em>https://github.com/SmartWrapperOSS/SmartWrapperOSS#disclaimer<em>) for details. Not affiliated with, endorsed by, or sponsored by OpenAI, Anthropic, Google, or Mistral AI.*</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1f534663e0c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/from-prd-pr-product-release/picking-the-right-model-and-agent-at-the-right-cost-and-latency-shouldnt-be-a-guess-f1f534663e0c">Picking the right model and agent — at the right cost and latency — shouldn’t be a guess</a> was originally published in <a href="https://medium.com/from-prd-pr-product-release">From PRD →PR (Product Release)</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Re-imagine an Agent Harness — You’ve Built This Before]]></title>
            <link>https://medium.com/from-prd-pr-product-release/re-imagine-an-agent-harness-youve-built-this-before-73a74a3a79e3?source=rss-9cb527e4e850------2</link>
            <guid isPermaLink="false">https://medium.com/p/73a74a3a79e3</guid>
            <category><![CDATA[aiops]]></category>
            <category><![CDATA[agent-harness]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[llm-agent]]></category>
            <dc:creator><![CDATA[Aditi Jain]]></dc:creator>
            <pubDate>Thu, 11 Jun 2026 07:17:39 GMT</pubDate>
            <atom:updated>2026-06-11T07:17:39.527Z</atom:updated>
            <content:encoded><![CDATA[<p>From PRD → Product Release | A Technical PM’s lessons building AI in production.</p><p>As a product manager building AI Platforms, I always like to weave stories around something everyone already knows. Familiar narratives have a unique ability to bridge perspectives, helping customers and engineers see the same future through a shared lens. Here is one such story.</p><p><em>When I was building the workflow for our multi-agent orchestration, it hit me halfway through: the patterns, the failure modes, the design decisions — </em><strong><em>it was all just a state machine.</em></strong></p><p>Follow the same old rules, and we can ship reliable AI platforms and define service level agreements with our customers with confidence.</p><p><strong>Agent harness as a state machine. </strong>Once you see it this way, the product questions change. Instead of asking “how smart is our agent?” you start asking “how reliable is our workflow?” — a question you can put a number on, and put in a contract.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VzC158jFBXWz7bhNJUczyQ.png" /></figure><p>When we start handing AI problems as a workflow orchestration problems, the design decisions get dramatically easier. Here are the four things worth getting right.</p><h3>1. Idempotency: your customers should never see the same action twice</h3><p>If a step runs more than once, the result should be identical. Stamp every write tool call with a unique ID. If the same call arrives twice, return the cached result — not a duplicate action.</p><p><strong>[SLA Impact Managed: duplicate actions]</strong></p><h3>2. Error handling and retry: not every failure is the same problem</h3><p>Not every failure deserves a retry. Classify first: network blip → retry with jitter. Malformed input → don’t retry. Missing tool → escalate.</p><p>Retrying everything uniformly turns a small outage into a big one. If your LLM hits a rate limit and every concurrent task retries at the same instant, all fail again, all retry again — load doubles. Uniform retries turn a rate-limit spike into a thundering herd.</p><p>Match the response to the failure type. This is the difference between “2-minute degradation” and “2-hour outage caused by our own retry logic.” It’s also what makes recovery time commitments credible.</p><p><strong>[SLA Impact Managed: recovery time]</strong></p><h3>3. Waiting on tasks: pause gracefully, never wait forever</h3><p>Document analysis, human approvals, third-party calls — some tasks take minutes. A system that blocks on all of these will time out, burn cost, and fail invisibly. Two rules: save progress before handing off to any long-running process so tasks resume rather than restart, and give every wait an explicit deadline. If the callback never arrives, that is a failure — handle it, don’t wait forever.</p><p>If you can’t bound how long a task waits, you can’t bound your response time commitments. Deadlines are not just an engineering detail — they are what makes a time-based SLA possible.</p><p><strong>[SLA impact Managed: response time]</strong></p><h3>4. Queue overflows and memory: know your ceiling, design to it</h3><p>Processing all tasks in parallel floods your APIs and triggers retries that double load. Cap concurrent tasks to what your infrastructure supports — if your LLM allows 100 requests/min and each task makes 8 calls, ~12 concurrent tasks is your ceiling. Beyond that, tasks wait in a queue. They don’t get dropped, and they don’t cascade into failures.</p><p>The same discipline applies to data. AWS Step Functions caps workflow state at 256 KB, Google Cloud Workflows at 512 KB — both saying the same thing: pass references, not payloads. A task ID, a storage key. Let each step load what it needs. This is capacity planning with teeth — it’s what lets you tell a customer “we process X tasks per hour” and mean it.</p><p><strong>[SLA impact Managed: throughput]</strong></p><h3>And Finally Observability: you can only SLA what you can measure</h3><p>When something goes wrong, you need to reconstruct exactly what happened. Without this, every incident is a mystery and every SLA conversation is a guess.</p><ul><li>Structured logs on every step with consistent task IDs</li><li>Metrics on completion rate, failure type, retry rate, and time-to-completion.</li><li>Per-task traces — one timeline per task from start to finish.</li></ul><p>Observability is not an engineering afterthought — it is the product management tool that makes commitments real.</p><p>Generative AI is new. The nondeterminism, the latency, the token costs — those require genuine judgment. But the harness around it is a state machine, and state machines have known, proven rules. Follow them, and you’re not just building an AI Platform — you’re building one you can stand behind, define SLAs for, and ship with confidence.</p><p>DISCLAIMER</p><p><em>Opinions expressed are solely my own in a personal capacity and do not represent the views, policies, or positions of any current or former employer, or their affiliates.</em></p><p>I have no affiliations with Google or Amazon/ AWS. <em>Figures and thresholds are illustrative estimates based on my production experience. Verify current pricing and memory limits against your provider’s documentation before making architecture decisions.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=73a74a3a79e3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/from-prd-pr-product-release/re-imagine-an-agent-harness-youve-built-this-before-73a74a3a79e3">Re-imagine an Agent Harness — You’ve Built This Before</a> was originally published in <a href="https://medium.com/from-prd-pr-product-release">From PRD →PR (Product Release)</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A PM’s Decision Framework for AI Agents.]]></title>
            <link>https://medium.com/from-prd-pr-product-release/economics-of-ai-agents-a-pms-go-no-go-guide-e57dfc8e94cd?source=rss-9cb527e4e850------2</link>
            <guid isPermaLink="false">https://medium.com/p/e57dfc8e94cd</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[ai-cost-optimization]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[microservices]]></category>
            <dc:creator><![CDATA[Aditi Jain]]></dc:creator>
            <pubDate>Tue, 02 Jun 2026 06:07:14 GMT</pubDate>
            <atom:updated>2026-06-03T07:22:28.555Z</atom:updated>
            <content:encoded><![CDATA[<p>From PRD → Product Release | A Technical PM’s lessons building AI in production.</p><p>Agents and microservices are both powerful tools — they just shine in different contexts. The key question to ask: <strong>does this workflow require judgment, or just execution?</strong></p><p>When every step is predictable, branching is finite, and inputs are structured, microservices are your best friend. They’re faster and cheaper for deterministic problems. Order fulfillment, payment processing, ETL pipelines — these workflows are fully map able before deployment, and microservices handle them beautifully.</p><p>Agents unlock their full potential when workflows involve ambiguity, unstructured input, or decisions that can’t be pre-enumerated. Contract review, intelligent workflow routing, research synthesis — these are the moments where reading and reasoning beat rigid pattern matching. When the right next step depends on <em>understanding context</em>, not just matching a rule, <strong>agents don’t just help — they make the whole thing possible</strong>.</p><p>The good news? You don’t have to choose one philosophy for everything. The most effective AI systems pair deterministic microservices with well-scoped agents — letting each do what it does best.</p><h3>The Agent Decision Rubric</h3><p>Score your workflow across five dimensions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f6ucr-8tazgPgKDwQVGdoA.png" /><figcaption>The Agent Decision Rubric: Five Factors That Lead You to the Right Call</figcaption></figure><p><em>Score 0–3: Your microservice is the right tool. Trust it.</em> <em>Score 4–5: Hybrid wins here — precision where you need it, intelligence where you don’t.</em> <em>Score 6–8: Full agent, fully justified. Do the cost math and build.</em></p><h3>What Agents Cost — and What They Unlock</h3><p>A 10-step agent running ~5k tokens per step costs roughly $0.0X–$0.X per run at current API rates. At 10,000 runs/day, that’s a real number — but it’s a number that reflects something remarkable: reasoning, judgment, and decision-making running at machine scale.</p><p>That’s the <strong>paradigm shift</strong>. Agents don’t just execute faster — they do work that simply couldn’t be automated before. The value is transformational in three ways:</p><ul><li><strong>Throughput on knowledge work</strong></li><li><strong>Resilience on edge cases. </strong>Microservices break on inputs they weren’t designed for. Agents don’t.</li><li><strong>Compounding intelligence.</strong> The more context an agent builds across a workflow, the sharper its downstream decisions become. Every step informs the next. No deterministic pipeline comes close to that.</li></ul><p>The teams who win with agents are the ones who run the cost math early and design workflows where the value per run is obvious. With this alignment co genuine competitive advantage that compounds over time.</p><h3><strong>The PM’s Agent Greenlight Checklist</strong></h3><p><em>Eight questions that set your agent up for success. Confident on 6 or more? You’re ready to build.</em></p><ul><li>✅ I can name the specific step where judgment is required — and why only an agent can handle it</li><li>✅ I know the cost-per-run and the task value clearly justifies it</li><li>✅ Failures are reversible, or human-reviewed before any action is taken</li><li>✅ I have an eval framework in place to measure and improve output quality over time</li><li>✅ The team has budgeted for guardrails — not just the model call, but the full system</li><li>✅ Retry behavior and failure costs are modeled and accounted for</li><li>✅ Context and history growth is planned for at scale <em>(see: token economics)</em></li><li>✅ A microservice fallback exists if the agent needs more time to reach production quality</li></ul><p>Agents mark a new chapter in applied AI — where software doesn’t just execute, it reasons. Get the numbers right upfront: model the cost, estimate the effort, plan for retraining, know your ROI. <strong>Build what wasn’t possible before</strong>.</p><p>DISCLAIMER: Cost figures are illustrative estimates based on publicly available API pricing at time of writing. Actual costs depend on model choice, token counts, failure rates, and infrastructure configuration. Always model your specific use case before committing to an architecture.</p><p>Opinions expressed are solely my own in a personal capacity and do not represent the views, policies, or positions of any current or former employer, or their affiliates.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e57dfc8e94cd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/from-prd-pr-product-release/economics-of-ai-agents-a-pms-go-no-go-guide-e57dfc8e94cd">A PM’s Decision Framework for AI Agents.</a> was originally published in <a href="https://medium.com/from-prd-pr-product-release">From PRD →PR (Product Release)</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Token economics: building AI products that scale without surprise bills]]></title>
            <link>https://medium.com/from-prd-pr-product-release/token-economics-building-ai-products-that-scale-without-surprise-bills-24ed21d9d164?source=rss-9cb527e4e850------2</link>
            <guid isPermaLink="false">https://medium.com/p/24ed21d9d164</guid>
            <category><![CDATA[ai-product-management]]></category>
            <category><![CDATA[token-economics]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Aditi Jain]]></dc:creator>
            <pubDate>Sat, 30 May 2026 07:10:25 GMT</pubDate>
            <atom:updated>2026-06-02T06:48:13.444Z</atom:updated>
            <content:encoded><![CDATA[<p><em>From PRD → Product Release | A Technical PM’s hands-on lessons</em></p><h3>The real cost formula</h3><p>Token price is the easy part. The bill that surprises teams comes from three multipliers on top of it: your system prompt repeating on every call, retry failures charging twice, and conversation history growing with every turn.</p><h3>Decision 1: should you cache?</h3><p>Prompt caching cuts repeated system prompt costs by up to 90%. But cache writes cost more than standard input tokens — so it only pays off if your call volume is consistent and your system prompt is stable.</p><p><strong>Quick rule:</strong> If you’re making more than ~100 calls per cache window with the same system prompt, caching saves money. If your prompt changes per user, look at prompt compression instead.</p><h3>Decision 2: what’s your retry tax?</h3><p>A failed call isn’t free — you pay for input tokens plus whatever output was generated before failure, then pay full price again on retry. Before you set max_retries, model the cost explicitly.</p><p>Streaming helps here more than most teams realize. It lets you detect failures earlier — when less output has been generated — which cuts retry waste significantly. If you’re not streaming, the cost argument alone is worth reconsidering it.</p><h3>Decision 3: are you managing chat history?</h3><p>Every multi-turn conversation carries its full history as input tokens on each call. By turn 10, you’re sending 9 prior turns of context — most of which the model doesn’t need to answer the current question.</p><p>This is the cost lever most teams ignore until it shows up on the bill. Three strategies work well in practice: summarize older turns; cap history to the last N turns that are actually relevant; or store context externally and retrieve only what’s needed per call. The right choice depends on your use case — but doing nothing is always the most expensive option.</p><p>The gap between a prototype and a production-ready AI product often comes down to cost predictability. Model these three decisions before deployment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*otf9PIqoAB8rFzfcWe9CaQ.png" /><figcaption>Three cost decisions for AI PMs to model upfront</figcaption></figure><p>DISCLAIMER</p><p><em>Pricing figures are indicative and based on publicly available API rates at time of writing. Always verify against current documentation.</em></p><p><em>Retry cost estimates are illustrative. Actual costs depend on your failure mode, streaming configuration, and infrastructure.</em></p><p><em>Figures and thresholds are illustrative estimates based on my production experience. Verify current pricing and caching behavior against your provider’s documentation before making architecture decisions.</em></p><p><em>At the time of authoring, the configurations, API behaviors, and costs referenced in this post reflect my personal experience. Always verify against the latest documentation.</em></p><p><em>Opinions expressed are solely my own in a personal capacity and do not represent the views, policies, or positions of any current or former employer, or their affiliates.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24ed21d9d164" width="1" height="1" alt=""><hr><p><a href="https://medium.com/from-prd-pr-product-release/token-economics-building-ai-products-that-scale-without-surprise-bills-24ed21d9d164">Token economics: building AI products that scale without surprise bills</a> was originally published in <a href="https://medium.com/from-prd-pr-product-release">From PRD →PR (Product Release)</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DistilBERT + LoRA for Document Classification: The Numbers That Matter]]></title>
            <link>https://medium.com/from-prd-pr-product-release/distilbert-lora-for-document-classification-the-numbers-that-matter-97f5180b3a85?source=rss-9cb527e4e850------2</link>
            <guid isPermaLink="false">https://medium.com/p/97f5180b3a85</guid>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[lora]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[mlops]]></category>
            <dc:creator><![CDATA[Aditi Jain]]></dc:creator>
            <pubDate>Fri, 29 May 2026 07:45:15 GMT</pubDate>
            <atom:updated>2026-06-02T15:11:23.309Z</atom:updated>
            <content:encoded><![CDATA[<p><em>From PRD → PR | Cloud ML Engineering Series</em></p><p><strong>The Feature Context</strong></p><p>2,000 documents for training, 2,000 for inference. One label each. Batch ingestion, not real-time. This is a light job — and the model choice reflects that.</p><p>I used DistilBERT-base-uncased (66M parameters) fine-tuned with LoRA. LoRA freezes the base model and trains only tiny adapter layers — <strong>**0.45% of parameters**</strong>. That number determines your GPU requirement.</p><pre>LoraConfig(r=8, lora_alpha=16, target_modules=[&quot;q_lin&quot;, &quot;v_lin&quot;], lora_dropout=0.1)</pre><p><strong>Why DistilBERT — and Not an API or a Bigger Model?</strong></p><p>The obvious shortcut is to call Claude or GPT-4 with a prompt like “<em>classify this document as X, Y, or Z.”</em> It works in a demo. It gets expensive in production. That’s the wrong tool for the job, and the cost reflects it.</p><p><strong>Why not a larger open-source model — Mistral, LLaMA, Falcon?</strong></p><p>Bigger models are built for tasks where language generation or deep reasoning matters.</p><p>DistilBERT encoder-only model — suffices for document classification. No token generation, no autoregressive loop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y532LidrVO5-NuijEXM09A.png" /><figcaption>Classification doesn’t need generation. The right model type cuts cost and complexity from day one.</figcaption></figure><p>DistilBERT-base-uncased is 66M parameters, ~250 MB on disk, and was built specifically to be a faster, lighter BERT with minimal accuracy loss. For a fixed-label classification task, it’s the right size for the job.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Q2WXwYMmw8ILjZ67D-lWw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x0zT6S7Qn5pCAsoycab1tA.png" /><figcaption>Both GPUs cost the same for this job. The T4’s 16× headroom means you can run parallel experiments without ever watching the VRAM.</figcaption></figure><h3>Saving the Model: What Actually Gets Stored</h3><p>With LoRA, you don’t checkpoint a 250 MB fine-tuned model. You save only the adapter — ~5 MB — while the base model stays untouched.</p><pre># Save only the LoRA adapter (~5 MB)<br>model.save_pretrained(&quot;./classifier-adapter-v2&quot;)</pre><h3>The Shipping Angle</h3><p>LoRA also changes the deploy story. Only the adapter gets versioned — <strong>~5 MB instead of 250 MB</strong> per retrain cycle. Faster deploys, cheaper storage, multiple task-specific adapters sharing one base model in memory.</p><p>The best GPU isn’t the newest one — it’s the one matched to the job. Know the numbers before the sprint starts.</p><p>DISCLAIMER</p><p><em>This post compares model types and deployment approaches for a specific use case — fixed-label document classification on a small dataset. The cost and memory figures are illustrative estimates based on typical configurations and may vary depending on your cloud provider, region, instance type, and usage patterns. Claude API pricing is used as a reference point for generative LLM API costs generally — this is not a performance or quality benchmark between models. LoRA fine-tuning on a small encoder model is the right choice for this workload; different tasks, dataset sizes, or latency requirements may warrant a different architecture entirely.</em></p><p><em>At the time of authoring, the configurations, API behaviors, and costs referenced in this post reflect my personal experience. Always verify against the latest Google Cloud Run and Anthropic documentation. I have no affiliation with Google or Anthropic or Nvidia.</em></p><p><em>Opinions expressed are solely my own in a personal capacity or public knowledge and do not represent the views, policies, or positions of any current or former employer, or their affiliates.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97f5180b3a85" width="1" height="1" alt=""><hr><p><a href="https://medium.com/from-prd-pr-product-release/distilbert-lora-for-document-classification-the-numbers-that-matter-97f5180b3a85">DistilBERT + LoRA for Document Classification: The Numbers That Matter</a> was originally published in <a href="https://medium.com/from-prd-pr-product-release">From PRD →PR (Product Release)</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloud Run + LLM APIs: Understanding Cold Starts and Staying Production-Ready]]></title>
            <link>https://medium.com/from-prd-pr-product-release/cloud-run-llm-apis-understanding-cold-starts-and-staying-production-ready-16d5845e71e0?source=rss-9cb527e4e850------2</link>
            <guid isPermaLink="false">https://medium.com/p/16d5845e71e0</guid>
            <dc:creator><![CDATA[Aditi Jain]]></dc:creator>
            <pubDate>Thu, 28 May 2026 07:22:07 GMT</pubDate>
            <atom:updated>2026-06-02T06:49:36.799Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Part of the From PRD → PR series</em></p><p>After tackling rate limits in the last post, it’s time to address something subtler — cold starts. Unlike 429s, they don’t announce themselves in logs. Your first request after inactivity just quietly times out, or fails mid-LLM-response.</p><h3>What’s Actually Happening</h3><p>Cloud Run is designed to be efficient — it scales down to zero instances when your service isn’t being used. That’s a feature, and it works beautifully for cost optimization. But here’s the sequence that catches LLM services off guard:</p><pre>Service sits idle → Cloud Run scales to 0 instances<br>        ↓<br>First request arrives<br>        ↓<br>Cloud Run spins up a new instance (~2–5 seconds startup)<br>        ↓<br>Request is held waiting during container boot<br>        ↓<br>LLM call fires before service is fully warm<br>        ↓<br>Timeout or incomplete response</pre><p>For most web services, a cold start is a minor inconvenience — a slightly slow first load. For LLM services, the stakes are a bit higher:</p><ul><li>Your request timeout may expire during the cold start window <em>before</em> the API call even begins</li><li>Cloud Run may retry the request on the new instance, firing a second API call — burning tokens twice for one user request</li></ul><h3>The Fix: Keep One Instance Warm</h3><p>Cloud Run gives you a clean solution — minimum instances.</p><pre>gcloud run services update my-service --min-instances=1</pre><p>Cloud Run does something smart here though — it throttles the CPU to near-zero during idle time, so you’re not paying full compute rates just to keep a container alive. <strong>You only pay for memory while idle, not CPU.</strong></p><p>For a typical 512MB service sitting idle:</p><pre>0.5 GB × $0.0000025 × 3,600 seconds = $0.0045/hour<br>                                     = $0.11/day<br>                                     = ~$3.24/month</pre><p><strong>That’s roughly $3/month to keep one instance warm.</strong> For a service calling the Anthropic API, $3/month is a small and conscious trade for reliability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6BqmqCBJPRWoYj92UY6eGw.png" /><figcaption>Request lifecycle from idle → cold start → warm instance</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DYaDY73J0chIheEuUFC0Bg.png" /><figcaption>Trade Offs</figcaption></figure><h3>One Setting to Avoid (Unless You Need It)</h3><p>You may come across --no-cpu-throttling, which keeps CPU fully allocated even when idle. This is useful for latency-sensitive workloads that can&#39;t afford any spin-up delay between requests — but it comes with a significant cost jump since CPU runs continuously regardless of traffic.</p><p>Cold starts are one of those things Cloud Run handles gracefully once you know the right knob to turn. The platform is designed to give you control — minimum instances is just how you express that you’d like one container always ready to go.</p><p><strong>Disclaimer</strong></p><ul><li><em>Your request timeout may expire during the cold start window before the API call even begins. Cold start duration and retry behavior depend on your Cloud Run configuration, region, and traffic patterns. Always benchmark with your own service rather than relying on general estimates.</em></li><li><em>Cloud Run may retry the request on a new instance, firing a second API call — burning tokens twice for one user request.</em></li><li><em>Configurations, API behaviors and cost referenced in this post reflect my personal experience. Always verify against the latest Google Cloud Run and Anthropic documentation. I have no affiliation with Google or Anthropic.</em></li><li><em>Opinions expressed are solely my own in a personal capacity and do not represent the views, policies, or positions of any current or former employer, or their affiliates.</em></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16d5845e71e0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/from-prd-pr-product-release/cloud-run-llm-apis-understanding-cold-starts-and-staying-production-ready-16d5845e71e0">Cloud Run + LLM APIs: Understanding Cold Starts and Staying Production-Ready</a> was originally published in <a href="https://medium.com/from-prd-pr-product-release">From PRD →PR (Product Release)</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Load Testing Taught Me About Cloud Run and LLM Rate Limits]]></title>
            <link>https://medium.com/from-prd-pr-product-release/what-load-testing-taught-me-about-cloud-run-and-llm-rate-limits-a293733a3543?source=rss-9cb527e4e850------2</link>
            <guid isPermaLink="false">https://medium.com/p/a293733a3543</guid>
            <category><![CDATA[deploying-llms]]></category>
            <category><![CDATA[concurrency-for-inference]]></category>
            <category><![CDATA[llm-rate-limit]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[deploying-models-in-cloud]]></category>
            <dc:creator><![CDATA[Aditi Jain]]></dc:creator>
            <pubDate>Wed, 27 May 2026 06:32:23 GMT</pubDate>
            <atom:updated>2026-06-02T06:57:33.334Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A Technical PM’s hands-on lessons tuning Google Cloud Run for LLM applications</em></p><h3>Mastering Concurrency</h3><p>During load testing I noticed requests failing — not because my service was broken, but because I had unknowingly built a rate limit cannon.</p><pre>User traffic spike<br> ↓<br>Cloud Run spins up 10 instances ( - max-instances 10)<br> ↓<br>Each handles 5 concurrent requests ( - concurrency 5)<br> ↓<br>50 simultaneous LLM API calls<br> ↓<br>429 Rate Limit Error/ Too Many Requests for LLM</pre><p>Cloud Run autoscales fast and efficiently — but it has zero awareness of your LLMs rate limits.</p><h4>Four Fixes That Work Together</h4><p><strong>1. Do the math before setting instance limits</strong></p><p>Check your Anthropic tier limits first, then work backwards to set --max-instances and --concurrency. Most teams never have this conversation until they hit a 429.</p><p><strong>2. Reduce concurrency per instance</strong></p><p>For LLM workloads, drop concurrency to <strong>2</strong>. These are slow, token-heavy requests — not fast stateless API calls.</p><p><strong>3. Add a semaphore in code</strong></p><p><em>“If it works at the OS level, it works here. Semaphores are timeless for a reason.”</em></p><p>Infrastructure settings drift. A semaphore is a hard ceiling that holds regardless:</p><pre>import asyncio<br>claude_semaphore = asyncio.Semaphore(3)<br>async def call_claude(prompt: str):<br>    async with claude_semaphore:<br>        response = await anthropic_client.messages.create(…)<br>        return response</pre><p><strong>4. Exponential backoff with jitter on 429s</strong></p><p>When rate limits hit anyway, back off gracefully — don’t retry in a tight loop</p><pre>def call_claude_with_backoff(prompt: str, max_retries: int = 4):<br>    for attempt in range(max_retries):<br>        try:<br>            return anthropic_client.messages.create(...)<br>        except anthropic.RateLimitError:<br>            if attempt == max_retries - 1:<br>                raise<br>            wait = (2 ** attempt) + random.uniform(0, 1)<br>            time.sleep(wait)</pre><h4>The Mental Model</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VeWxCpjyLcVxb1-7hEJrhw.png" /></figure><p>Cloud Run thinks in <strong>requests per second</strong>. LLMs thinks in <strong>tokens per minute</strong>. You are the translation layer between them.</p><p>DISCLAIMER</p><p><em>Configurations and API behaviours in this post reflect my personal experience. Always verify against the latest Google Cloud Run and Anthropic documentation. </em>I have no affiliation with Google or Anthropic. Rate limit tiers vary by Anthropic plan.</p><p><em>Opinions expressed are solely my own in a personal capacity and do not represent the views, policies, or positions of any current or former employer, or their affiliates.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a293733a3543" width="1" height="1" alt=""><hr><p><a href="https://medium.com/from-prd-pr-product-release/what-load-testing-taught-me-about-cloud-run-and-llm-rate-limits-a293733a3543">What Load Testing Taught Me About Cloud Run and LLM Rate Limits</a> was originally published in <a href="https://medium.com/from-prd-pr-product-release">From PRD →PR (Product Release)</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>