SwiggyHarshit JunejaProblem & solution
Building Production-Scale Visual AI for Claims and Returns at Swiggy Instamart
Summary
Swiggy Instamart built two vision-language-model systems to handle more than 40,000 daily claims involving wrong, expired, poor-quality, damaged, and packaging-related items, while reducing reliance on human verification. The Image Validation Model (IVM) compares customer uploads with catalog images, routes each category through a specialised LangGraph StateGraph handler, and combines its structured verdict with fraud, confidence, and business-rule signals. Reverse Quality Check (RQC) compares delivery executives’ pickup photos with the original claim images, allowing matching returns to proceed and prompting retries when they do not. The architecture keeps visual assessment probabilistic but makes routing, aggregation, escalation, and financial decisions deterministic, with traces for category, outputs, confidence, cost, and latency. After more than six months in production, the systems are associated with a 6% customer-satisfaction increase, 20,000 fewer weekly Image Validation tickets, 98.5% RQC accuracy, and over 5,000 daily RQC tickets resolved without human intervention.
Context
More than 40,000 claims arrived daily, while rule-based checks could not resolve many image-based cases without human review. This created growing agent costs, slower resolution during peaks, inconsistent decisions, and return-related inventory leakage because delivery executives often accepted returned items without meaningful verification.
Approach / What changed
IVM uses category-specific LangGraph StateGraph handlers to compare customer and catalog images, producing valid, invalid, or ambiguous verdicts for a business rules engine. RQC compares pickup photos with original claim images and prompts delivery executives to correct mismatches. Visual assessment remains model-driven, while routing, aggregation, escalation, and financial decisions remain deterministic.
Takeaways
IVM treats the customer’s uploaded image as primary evidence; comments, product names, and categories provide context but cannot establish claims that images cannot verify.
IVM decomposes claim handling by category because wrong-item identity checks and expiry-date extraction require different visual criteria, failure modes, and output structures.
RQC reduced its False Not Match rate from 60% to 17% through iterative prompt work and automated optimisation, while the production system reports 98.5% accuracy.
Source and freshness
- Source
- medium.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.