<?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 SAMSUL HADI on Medium]]></title>
        <description><![CDATA[Stories by SAMSUL HADI on Medium]]></description>
        <link>https://medium.com/@samlus?source=rss-7ba98bdd4426------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*bAxdDUQT9pIepRgrO7T-Gg.png</url>
            <title>Stories by SAMSUL HADI on Medium</title>
            <link>https://medium.com/@samlus?source=rss-7ba98bdd4426------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 16:32:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@samlus/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[Will This Photo Win the Dispute? Teaching Gemini to Check Packing Evidence for Indonesian Sellers]]></title>
            <link>https://samlus.medium.com/will-this-photo-win-the-dispute-teaching-gemini-to-check-packing-evidence-for-indonesian-sellers-06e2141687d1?source=rss-7ba98bdd4426------2</link>
            <guid isPermaLink="false">https://medium.com/p/06e2141687d1</guid>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[ai-builder-cup]]></category>
            <category><![CDATA[gemini]]></category>
            <category><![CDATA[vertex-ai]]></category>
            <category><![CDATA[ecommerce]]></category>
            <dc:creator><![CDATA[SAMSUL HADI]]></dc:creator>
            <pubDate>Wed, 07 Oct 2026 09:55:00 GMT</pubDate>
            <atom:updated>2026-10-20T07:01:50.435Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AjrZWrTXswOAM5vpQhzwrQ.png" /></figure><p><em>A Meet the Builders story from Kediri, East Java, written for Google Cloud and Hack2skill’s campaign to document 1,000 builders across Asia Pacific who use Google AI to solve local problems.</em></p><p>If you sell on Shopee or TikTok Shop in Indonesia, you know this message. A buyer opens the parcel, films a half-empty box, and files a claim: <em>barang kurang</em>, <em>salah kirim</em>, <em>paket kosong</em>. The marketplace asks the seller for proof. Most small sellers have none, or have a photo that doesn’t help: too dark, the label cut off, the box already taped shut so nobody can see what went in.</p><p>This isn’t hypothetical for us. We also run a small online shop, AyamBebek, and it became Jeejak’s first client: the first shop to run JejakPaket on real orders. In March 2026, a buyer claimed that a three-bottle skincare set arrived with one bottle missing. We had packed it, but the only photo we had showed the taped box, not what went into it. The marketplace sided with the buyer, and we refunded Rp 185.000 and paid the return shipping.</p><h3>What we built first: JejakPaket</h3><p>JejakPaket is a Flutter app that records fulfilment as it happens. The packer scans the waybill (resi), photographs the item going into the box, photographs the sealed parcel, and films the handover to the courier. Every photo carries a timestamp and the resi number, and the seller can export a dispute-ready PDF for any order.</p><p>The resi scan already runs on Google technology: on Android, our scanner uses <strong>ML Kit’s on-device barcode scanning</strong>, so it works offline in a back-room warehouse with no signal.</p><p>JejakPaket is available on <a href="https://play.google.com/store/apps/details?id=id.jeejak.paket">Google Play</a> for Android and on the <a href="https://ios-paket.jeejak.id/">App Store </a>for iPhone. The free tier keeps every photo on the phone; paid plans add cloud sync and a web console for teams.</p><h3>The problem behind the problem</h3><p>Storing photos turned out to be the easy part. The hard part is that sellers find out their proof is useless only when a dispute arrives, days later, when the parcel is gone and nothing can be re-shot.</p><p>So the question we wanted to answer is: <strong>can we tell a seller, right after packing, whether their photos would hold up?</strong> Is the resi on the label readable? Does it match the order? Is the item visible before the box was closed? Is the box actually sealed?</p><p>Code can’t answer those questions from pixels. A multimodal model can.</p><h3>The rule we set: unstructured in, structured out</h3><p>Our first idea was to have Gemini write the dispute appeal text for the seller. We dropped it. Turning structured order data into a paragraph is a template’s job: a template costs nothing and never invents a tracking number.</p><p>That gave us a rule for every place we use Gemini: <strong>the model only gets inputs code can’t read (photos, free text), and it may only answer in a fixed shape the server can check.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YGFfwexufpXyXNqhMPzVJQ.jpeg" /><figcaption>Up to four packing photos in, six fixed fields out. The photos are synthetic staged images and the JSON is an illustrative response, not model output.</figcaption></figure><p>For the evidence check, that shape is six fields:</p><pre>{<br>  &quot;image_usable&quot;: &quot;ok | dark | blurry | obstructed&quot;,<br>  &quot;label_visible&quot;: &quot;yes | no | unsure&quot;,<br>  &quot;label_resi_read&quot;: &quot;string or null&quot;,<br>  &quot;package_sealed&quot;: &quot;yes | no | unsure&quot;,<br>  &quot;item_visible&quot;: &quot;yes | no | unsure&quot;,<br>  &quot;koli_seen&quot;: &quot;integer or null&quot;<br>}</pre><p>We send this as a responseSchema with the request, and the server parses the answer strictly. An unknown field, a missing field, or a value outside the enum is a schema failure, and that record stays unchecked. &quot;unsure&quot; is a real answer and never turns into a warning.</p><h3>The model observes, the server decides</h3><p>Gemini never decides whether evidence is weak. It reports what it sees, and a small pure Go function turns that into a verdict: <strong>kuat</strong> (strong), <strong>perlu dicek</strong> (worth a look), or <strong>lemah</strong> (weak), with reason codes.</p><pre>switch {<br>case read != &quot;&quot;:<br>    if read != NormaliseResi(in.Resi) {<br>        reasons = append(reasons, ReasonLabelMismatch)<br>    }<br>case o.LabelVisible == No:<br>    reasons = append(reasons, ReasonLabelNotVisible)<br>case o.LabelVisible == Yes:<br>    reasons = append(reasons, ReasonLabelUnreadable)<br>}</pre><p>One detail we care about: <strong>the model is never told which resi to expect.</strong> It transcribes whatever is printed on the label, and our server compares it to the order. If Gemini misreads a digit, the worst outcome is “label doesn’t match, please check”. A wrong tracking number can never end up in a document a seller sends to Shopee.</p><p>Sellers will never see model text either. They will see fixed Indonesian strings keyed on the reason codes.</p><h3>Small decisions that mattered</h3><ul><li><strong>Which photos to send.</strong> A packing record can have a dozen photos. We send at most four, downscaled to a 1024 px long edge: the first two (usually the item) and the last two (usually the sealed box with its label). Sending the first four, which is the obvious choice, would mark correctly packed parcels as “not sealed”.</li><li><strong>Judge the set, not each photo.</strong> “Item visible” and “box sealed” are always in different photos, so the model judges the record as a whole.</li><li><strong>Count thinking tokens as cost.</strong> Gemini 3.5 Flash reports reasoning tokens separately from its answer, but they are billed at the output rate. Our cost numbers include them. In this run, Flash-Lite used none: the report shows 0 reasoning tokens.</li></ul><h3>Measuring before trusting</h3><p>A badge that says “weak evidence” when the evidence is fine teaches sellers to ignore it. So before any seller sees a verdict, we measure the model against a labelled set, and we set the targets in advance:</p><ul><li>At least <strong>90%</strong> of “lemah” verdicts must agree with the expected label.</li><li>“unsure” answers plus schema failures must stay under <strong>15%</strong> of records.</li></ul><p>The eval set is staged, not real orders: <strong>64 parcels</strong>, covering good shots, dark and blurry ones, missing and mismatched labels, unsealed boxes, and wrong parcel counts. 37 of them are designed to be weak. These are not photos our team took. We made the images with an image generation tool from our shot list, and the expected answers are the shot list’s intended values, with two records (R47 and R60) corrected after a visual review. No real buyer’s name or address appears anywhere in frame. So the numbers below are a prototype measurement. The next step is the same eval on real photos shot by our team, and its numbers may differ.</p><p>The eval ran on <strong>Gemini 3.5 Flash-Lite through the Gemini Developer API</strong>, on the free tier on purpose. We used Flash-Lite because Gemini 3.5 Flash and Gemini 3.8 Flash returned “high demand” errors when we ran it. Free-tier inputs may be used by Google and read by human reviewers, which is fine for staged images of dummy labels and never fine for real ones. Production will run on <strong>Vertex AI</strong> under paid terms.</p><p><strong>Results</strong> from the run on 7 October 2026, prompt version 2026-10-06.1. Every number below is copied from the eval report:</p><ul><li>“lemah” precision (target at least 90%): 100.0% (32/32)</li><li>unsure + schema failures (target under 15%): 0.0% (0/64 answered)</li><li>Resi read correctly, where a person could read the label: 31/31</li><li>Tokens per parcel (in / out incl. thinking): 4337 / 72</li><li>Latency p50 / p95: 2.884s / 6.568s</li></ul><p>Both targets passed, so the next step is the same eval on real photos shot by our team.</p><p>The weakest field was image_usable, where the model agreed with the shot list on 58 of 64 parcels. It called five sets ok that we had staged with a hand or a bag covering the label or the top of the box, and one dim set ok as well. That is the mistake that lets weak evidence through: none of the 32 parcels it called lemah was wrong, but it missed 5 of the 37 weak ones, calling R29 and R30 kuat, and R18, R26 and R27 perlu dicek. There were no schema failures.</p><p>Photo pair, side by side. Left: R01, called <strong>kuat</strong>, no reason codes. Right: R37, called <strong>lemah</strong>, reason label_mismatch: the model read SPXID5691455256 on the label, and the order&#39;s resi is SPXID5691405256.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xzz9MAmHyquHDVKznW8lrA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b7vcLhAkzByGeyqTjPzWXw.jpeg" /><figcaption>Left: R01, kuat. Right: R37, lemah, label_mismatch. Both are synthetic staged images from the eval set.</figcaption></figure><h3>What we learned that wasn’t about code</h3><p>We wanted the photos processed in Jakarta. As of October 2026, Google’s own documentation shows no Gemini Flash model on pay-as-you-go in the Jakarta region (asia-southeast2). The options are a global endpoint with no residency commitment, or the US or EU multi-region. So seller photos will leave Indonesia whichever we pick, and our privacy policy has to say that plainly before this feature reaches a single real seller. That rewrite was already a launch requirement for us, and this finding made it a hard one.</p><h3>What’s next</h3><ol><li>Run the check silently in production for opted-in shops only, and compare its verdicts with what actually happens in disputes.</li><li>If it holds up, move the check onto the phone, so the packer hears “photo too dark, retake” while the parcel is still on the table.</li><li>Then use the same approach to read a buyer’s claim and point to the photo that answers it.</li></ol><p>If you sell online in Indonesia and want to try it, JejakPaket is on <a href="https://play.google.com/store/apps/details?id=id.jeejak.paket">Google Play</a> and the <a href="https://ios-paket.jeejak.id/">App Store.</a> More about the product is at <a href="https://jeejak.id/">jeejak.id</a>, and you can reach us at <a href="/service/mailto:halo@jeejak.id">halo@jeejak.id</a>.</p><p>This post is our entry for <strong>Meet the Builders</strong>, a Google Cloud and Hack2skill campaign under the Gen AI Academy APAC Edition. It is collecting 1,000 stories of builders across Asia Pacific who use Google AI to solve local problems. If you are building something like that, you can find the campaign and the stories published so far on the <a href="https://hack2skill.com/event/apac-genaiacademy?tab=meetBuilders">Meet the Builders page</a>.</p><p><em>JejakPaket is built by CV. Adisatya IT Consultant in Kediri (aitc.co.id). Built with Gemini 3.5 Flash-Lite (Gemini Developer API, for this evaluation), Vertex AI for production, and ML Kit. Written for Meet the Builders by Google Cloud and Hack2skill, Gen AI Academy APAC Edition.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=06e2141687d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>