<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Arun Mahajan</title>
    <description>The latest articles on DEV Community by Arun Mahajan (@arun2232).</description>
    <link>https://dev.to/arun2232</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4158829%2F0751e5f7-ed96-4061-a1e6-341e979adef3.jpg</url>
      <title>DEV Community: Arun Mahajan</title>
      <link>https://dev.to/arun2232</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/arun2232"/>
    <language>en</language>
    <item>
      <title>Udhaar: a private voice khata for a kirana shopkeeper</title>
      <dc:creator>Arun Mahajan</dc:creator>
      <pubDate>Sat, 03 Oct 2026 12:55:47 +0000</pubDate>
      <link>https://dev.to/arun2232/udhaar-a-private-voice-khata-for-a-kirana-shopkeeper-5431</link>
      <guid>https://dev.to/arun2232/udhaar-a-private-voice-khata-for-a-kirana-shopkeeper-5431</guid>
      <description>&lt;h1&gt;
  
  
  Udhaar: a private voice khata for a kirana shopkeeper
&lt;/h1&gt;

&lt;p&gt;&lt;em&gt;Submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-weekend-2026-10-01"&gt;Hacktoberfest Weekend Challenge: Build for a Friend&lt;/a&gt;.&lt;/em&gt; &lt;/p&gt;

&lt;h2&gt;
  
  
  What I built
&lt;/h2&gt;

&lt;p&gt;I built &lt;strong&gt;Udhaar&lt;/strong&gt; for my friend &lt;strong&gt;Purushottam&lt;/strong&gt;, who runs a neighbourhood kirana shop in &lt;strong&gt;Pune&lt;/strong&gt;. His recurring problem was recording small customer debts quickly while serving the next person. Paper notes get lost, and a cloud app is a poor fit for sensitive customer names and balances.&lt;/p&gt;

&lt;p&gt;Udhaar lets the shopkeeper speak or type a Hindi, Marathi, or Hinglish entry such as “Ramesh ji ko 340 ka samaan udhaar”. It proposes a structured entry, asks the shopkeeper to confirm it, and then updates a simple khata.&lt;/p&gt;

&lt;p&gt;It also shows balances, a monthly summary, and polite WhatsApp reminder links. The links are always manually opened and sent; the app never messages a customer automatically.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Demo video: &lt;a href="https://youtu.be/8X4TxyVbnI8" rel="noopener noreferrer"&gt;https://youtu.be/8X4TxyVbnI8&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Repository: &lt;a href="https://github.com/aun009/udhaar" rel="noopener noreferrer"&gt;https://github.com/aun009/udhaar&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Local demo: &lt;code&gt;UDHAAR_MOCK=1 uvicorn app.main:app --host 0.0.0.0 --port 8000&lt;/code&gt;, then open &lt;code&gt;http://127.0.0.1:8000&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The mock mode runs without a GPU, microphone, or network model service. The production path uses local Whisper and Ollama instead.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I built it
&lt;/h2&gt;

&lt;p&gt;The system is a small FastAPI application with SQLite storage and a single mobile-friendly HTML page:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Audio is transcribed locally with &lt;code&gt;faster-whisper&lt;/code&gt; when voice mode is enabled.&lt;/li&gt;
&lt;li&gt;An open-weight Qwen instruct model served by Ollama converts the transcript into a strict JSON label.&lt;/li&gt;
&lt;li&gt;The UI displays the proposed customer, amount, type, and note for confirmation.&lt;/li&gt;
&lt;li&gt;Confirmed entries are stored locally in SQLite and used for balances and summaries.&lt;/li&gt;
&lt;li&gt;A deterministic Hindi/Marathi reminder template produces a WhatsApp link for manual sending.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The repository also includes a synthetic Hindi/Marathi/Hinglish dataset generator, an evaluation runner, and a heuristic fallback so the core demo remains usable when Ollama is unavailable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why open innovation mattered
&lt;/h2&gt;

&lt;p&gt;Open models made the important parts adaptable instead of hiding them behind a remote API. Customer names and dues can remain on the shop laptop, amount-word examples can be added to the training set, and the parser model can be swapped or fine-tuned. Once the local runtime is installed, there is no per-entry API bill and the workflow can continue when the internet is unreliable.&lt;/p&gt;

&lt;p&gt;That control has a cost: local model setup is more involved, and zero-shot parsing is less robust than a strong hosted model on messy speech. For this friend and this data, keeping the ledger private and editable was the better trade.&lt;/p&gt;

&lt;h2&gt;
  
  
  Results and limitations
&lt;/h2&gt;

&lt;p&gt;The reproducible heuristic baseline currently scores:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Split&lt;/th&gt;
&lt;th&gt;Examples&lt;/th&gt;
&lt;th&gt;Exact JSON&lt;/th&gt;
&lt;th&gt;Customer&lt;/th&gt;
&lt;th&gt;Amount&lt;/th&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Valid JSON&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Synthetic test&lt;/td&gt;
&lt;td&gt;400&lt;/td&gt;
&lt;td&gt;16.00%&lt;/td&gt;
&lt;td&gt;47.50%&lt;/td&gt;
&lt;td&gt;48.00%&lt;/td&gt;
&lt;td&gt;94.00%&lt;/td&gt;
&lt;td&gt;100.00%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unseen templates&lt;/td&gt;
&lt;td&gt;120&lt;/td&gt;
&lt;td&gt;10.00%&lt;/td&gt;
&lt;td&gt;25.83%&lt;/td&gt;
&lt;td&gt;53.33%&lt;/td&gt;
&lt;td&gt;93.33%&lt;/td&gt;
&lt;td&gt;100.00%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The second row should be read as 120 examples, 10.00% exact JSON, 25.83% customer, 53.33% amount, 93.33% type, and 100.00% valid JSON. These are baseline numbers, not a claim that the parser is solved. Ollama, fine-tuning, and real-audio rows are intentionally omitted until they are run locally.&lt;/p&gt;

&lt;h2&gt;
  
  
  Open source and code
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Source: &lt;a href="https://github.com/aun009/udhaar" rel="noopener noreferrer"&gt;https://github.com/aun009/udhaar&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Evaluation details: &lt;code&gt;eval/RESULTS.md&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Training notes: &lt;code&gt;train/README.md&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  My agent session
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;[Optional: add the DevRelay agent-session link or remove this section.]&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Partner categories
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;[List only categories that actually apply, or remove this section.]&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>weekendchallenge</category>
      <category>hf26challenge</category>
    </item>
  </channel>
</rss>
