| ▲ | snefedyev a day ago | |
1. Visual search at Microsoft What it did: I trained an image multi-labeling model and shipped it into production visual search. I built the training pipeline in Python (Pandas, scikit-learn, Keras, PyTorch), deployed the model behind a versioned REST API, and held inference at about 10 ms per request under production load by restructuring the serving path, adding request batching, and moving feature extraction into the C#/.NET service tier. My part: design, training, deployment and running it in production. I was the only one on call for it. What could go wrong: a wrong label means a wrong search result, so people miss an asset that exists or pick the wrong one. The weak spot was icons: visual recognition on icons was unreliable, so those were the outputs I trusted least and watched most. How I knew it was right in production: automated tests and validation before every release; comparing the model's offline test results with its behavior on live traffic, so a gap between the two showed up instead of hiding behind a good test score; and alerts and monitoring in production. 2. A customer-support agent that cannot be talked out of policy The goal: a tool-using support agent for a mobile carrier (synthetic data, Claude Haiku) that looks up accounts and makes changes, but enforces identity and step-up verification, caps credits, cites policy in its answers, and never leaks PII, even when the customer is an attacker. What failed: with the policy written into the prompt, the agent passed my held-out adversarial set, where LLM-simulated customers tried social engineering, prompt injection and PII fishing. That proved little, so I removed the policy rules from the prompt to see what was actually holding the line. Prompt-only, the agent broke policy in 3 of 52 held-out conversations. The judge also flagged made-up procedures in 27-31% of conversations and made-up tool outages in 12%. My first fix for the outages, a reworded prompt, made no significant difference: the agent just rephrased the invented outage as "the tool returned an error". What I changed: I moved the rules out of the prompt and into code. Guardrails check every tool call and every reply before it goes out: verification state, credit caps, policy citations, PII redaction. The model can propose anything; the code decides what runs. How I knew it worked: 26 held-out scenarios, 3 runs each, with code checks for hard violations and an LLM judge for the fuzzy ones. With the policy removed from the prompt, the code guardrails allowed 0 violations in 52 conversations, against 3 for prompt-only. The made-up outages are still open. A prompt doesn't fix them; the next step is to check the agent's claims against the real tool results in code. | ||