<?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: Avinash Kumar</title>
    <description>The latest articles on DEV Community by Avinash Kumar (@avinash_kumar_9cd2bf0c903).</description>
    <link>https://dev.to/avinash_kumar_9cd2bf0c903</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%2F3650511%2Fc69c3cb7-13f3-4539-ae39-d726dd5c77bd.png</url>
      <title>DEV Community: Avinash Kumar</title>
      <link>https://dev.to/avinash_kumar_9cd2bf0c903</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/avinash_kumar_9cd2bf0c903"/>
    <language>en</language>
    <item>
      <title>🦥 LazySummarizer Pro: Turn Group Chat Noise into Actionable Notes with Gemma</title>
      <dc:creator>Avinash Kumar</dc:creator>
      <pubDate>Fri, 23 Oct 2026 11:05:55 +0000</pubDate>
      <link>https://dev.to/avinash_kumar_9cd2bf0c903/lazysummarizer-pro-turn-group-chat-noise-into-actionable-notes-with-gemma-59ik</link>
      <guid>https://dev.to/avinash_kumar_9cd2bf0c903/lazysummarizer-pro-turn-group-chat-noise-into-actionable-notes-with-gemma-59ik</guid>
      <description>&lt;p&gt;Group chats are useful—until important information gets buried under dozens of messages. A deadline, a tentative plan, or one unanswered question can be surprisingly easy to miss.&lt;/p&gt;

&lt;p&gt;For Hacktoberfest 2026 Week 3 — “Slow and Steady,” I built LazySummarizer Pro, a small AI-powered tool that turns a pasted group-chat transcript into a structured summary, so you spend less time scrolling and more time acting on what matters.&lt;/p&gt;

&lt;p&gt;🔗 Source code: Avinash-sdbegin/lazy-summarizer-pro&lt;/p&gt;

&lt;p&gt;💡 The idea: less scrolling, more clarity&lt;/p&gt;

&lt;p&gt;Imagine opening a busy college group chat and needing to figure out:&lt;/p&gt;

&lt;p&gt;What was actually decided?&lt;/p&gt;

&lt;p&gt;Which tasks need to be completed?&lt;/p&gt;

&lt;p&gt;Who owns each task, and was a deadline specified?&lt;/p&gt;

&lt;p&gt;Which plans are still tentative?&lt;/p&gt;

&lt;p&gt;What questions remain unanswered?&lt;/p&gt;

&lt;p&gt;Instead of manually scanning the entire conversation, LazySummarizer Pro organizes the information into sections that are easier to review.&lt;/p&gt;

&lt;p&gt;The goal isn't to replace reading or judgment. It's to make the first pass through a long conversation less tedious.&lt;/p&gt;

&lt;p&gt;⚙️ How it works&lt;/p&gt;

&lt;p&gt;The current prototype follows a simple workflow:&lt;/p&gt;

&lt;p&gt;Provide a transcript: Paste chat text into the Gradio interface or use the sample conversation.&lt;/p&gt;

&lt;p&gt;Process the text: Python sends the transcript to Google's Gen AI SDK.&lt;/p&gt;

&lt;p&gt;Generate a summary: The app calls the hosted Gemma model gemma-4-26b-a4b-it.&lt;/p&gt;

&lt;p&gt;Review structured results: The interface presents the generated summary and extracted information.&lt;/p&gt;

&lt;p&gt;The output is organized around five useful categories:&lt;/p&gt;

&lt;p&gt;📝 Quick Summary — the main points in a few bullets.&lt;/p&gt;

&lt;p&gt;✅ Confirmed Decisions — decisions distinguished from proposals where possible.&lt;/p&gt;

&lt;p&gt;📌 Action Items — tasks, owners, and deadlines, with missing information marked as Not specified.&lt;/p&gt;

&lt;p&gt;❓ Open Questions — issues that still need an answer.&lt;/p&gt;

&lt;p&gt;📅 Dates and Deadlines — dates and times mentioned in the conversation.&lt;/p&gt;

&lt;p&gt;🧪 Example: keeping uncertainty intact&lt;/p&gt;

&lt;p&gt;Consider this sample conversation:&lt;/p&gt;

&lt;p&gt;Riya: I may send the report tomorrow.&lt;br&gt;
Aman: We can meet next week if everyone is free.&lt;/p&gt;

&lt;p&gt;A useful summary should preserve two important details:&lt;/p&gt;

&lt;p&gt;Riya's report is a possibility, not a confirmed commitment.&lt;/p&gt;

&lt;p&gt;The meeting is conditional on everyone's availability, and no exact meeting date has been agreed upon.&lt;/p&gt;

&lt;p&gt;The model should not turn these messages into definite commitments or invent calendar dates. This is an important behavior to check when using AI for summarization.&lt;/p&gt;

&lt;p&gt;📸 Screenshots&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Dashboard&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Summary Results&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;🌱 Why open-weight AI matters&lt;/p&gt;

&lt;p&gt;For this project, I chose Gemma, Google's open-weight model family.&lt;/p&gt;

&lt;p&gt;Open-weight models give developers more flexibility to explore model behavior and build on the model rather than relying only on a closed model offering. Depending on the model, its license, hardware, and deployment setup, developers can also investigate self-hosting, fine-tuning, or alternative inference arrangements.&lt;/p&gt;

&lt;p&gt;There is an important distinction in my current implementation: LazySummarizer Pro uses Gemma through a hosted API. It does not run the model locally or operate offline. The transcript is sent to the API for processing.&lt;/p&gt;

&lt;p&gt;This makes the project a practical starting point for experimenting with open-weight AI, while leaving room to explore local inference in a future version.&lt;/p&gt;

&lt;p&gt;🛠️ Tech stack&lt;/p&gt;

&lt;p&gt;Python — application logic&lt;/p&gt;

&lt;p&gt;Google Gen AI SDK (google-genai) — model API integration&lt;/p&gt;

&lt;p&gt;Gemma gemma-4-26b-a4b-it — text summarization&lt;/p&gt;

&lt;p&gt;Gradio — user interface&lt;/p&gt;

&lt;p&gt;Google Colab — development and testing environment&lt;/p&gt;

&lt;p&gt;🚀 Try it or explore the code&lt;/p&gt;

&lt;p&gt;The repository contains the runnable notebook, dependencies, screenshots, and setup instructions.&lt;/p&gt;

&lt;p&gt;📂 GitHub repository&lt;/p&gt;

&lt;p&gt;📓 Open the notebook file&lt;/p&gt;

&lt;p&gt;📋 Read the setup instructions&lt;/p&gt;

&lt;p&gt;To run the prototype, open the notebook in Google Colab, configure GEMMA_API_KEY using Colab Secrets, and execute the cells in order. The Gradio share URL is temporary and may expire when the runtime stops.&lt;/p&gt;

&lt;p&gt;Never commit an API key or place private chat transcripts in a public repository.&lt;/p&gt;

&lt;p&gt;🔭 What's next?&lt;/p&gt;

&lt;p&gt;There are several areas I want to improve:&lt;/p&gt;

&lt;p&gt;Add regression tests for missed deadlines, tentative plans, and conflicting messages.&lt;/p&gt;

&lt;p&gt;Validate the generated output before displaying it.&lt;/p&gt;

&lt;p&gt;Handle longer transcripts with chunking and cross-chunk context.&lt;/p&gt;

&lt;p&gt;Evaluate summary quality on a documented collection of synthetic conversations.&lt;/p&gt;

&lt;p&gt;Explore local inference and text or Markdown export.&lt;/p&gt;

&lt;p&gt;⚠️ Limitations&lt;/p&gt;

&lt;p&gt;LazySummarizer Pro is an educational prototype, not a guaranteed fact-checking system. It does not currently connect directly to WhatsApp or automatically read group chats; users provide the transcript themselves.&lt;/p&gt;

&lt;p&gt;AI can omit details, misunderstand context, or present a tentative statement as a confirmed one. Relative dates such as “tomorrow” also need suitable date context to be interpreted correctly. Always review names, decisions, deadlines, and action items before relying on the result.&lt;/p&gt;

&lt;p&gt;Because the current version uses a hosted API, avoid submitting sensitive or private messages unless you have permission and have reviewed the provider's applicable data-handling terms.&lt;/p&gt;

&lt;p&gt;🦥 Final thoughts&lt;/p&gt;

&lt;p&gt;LazySummarizer Pro is my take on the “Slow and Steady” theme: use AI to reduce repetitive work without pretending that human review is unnecessary.&lt;/p&gt;

&lt;p&gt;This project gave me an opportunity to build a practical interface around Gemma, experiment with structured summarization, and identify the reliability and privacy trade-offs that come with hosted AI.&lt;/p&gt;

&lt;p&gt;The next step is to make its summaries more consistent and evaluate them more systematically.&lt;/p&gt;

&lt;p&gt;Thanks for reading! 🚀&lt;/p&gt;

&lt;h1&gt;
  
  
  Hacktoberfest #Gemma #Python #AI
&lt;/h1&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
      <category>gemma</category>
      <category>python</category>
    </item>
    <item>
      <title>🏪 Ranchi Dukaan Pro — Predicting Stock Demand with TabPFN-TS</title>
      <dc:creator>Avinash Kumar</dc:creator>
      <pubDate>Fri, 23 Oct 2026 11:03:23 +0000</pubDate>
      <link>https://dev.to/avinash_kumar_9cd2bf0c903/ranchi-dukaan-pro-predicting-stock-demand-with-tabpfn-ts-4d5m</link>
      <guid>https://dev.to/avinash_kumar_9cd2bf0c903/ranchi-dukaan-pro-predicting-stock-demand-with-tabpfn-ts-4d5m</guid>
      <description>&lt;h3&gt;
  
  
  Smart Stock &amp;amp; Demand Predictor
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Can an AI forecast help a small shopkeeper make better stocking decisions?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Small retailers have to decide what to reorder, how much stock to keep, and when to place the next order. Too little stock can mean missed sales, while too much inventory can tie up money or increase the risk of expiry and waste.&lt;/p&gt;

&lt;p&gt;For the Hacktoberfest 2026 Open-Source AI Challenge: Week 2 — &lt;strong&gt;Side Hustle&lt;/strong&gt;, I built &lt;strong&gt;Ranchi Dukaan Pro&lt;/strong&gt;, a prototype that uses TabPFN-TS to estimate the next seven days of product demand and turn those estimates into simple inventory recommendations.&lt;/p&gt;

&lt;p&gt;The goal is to explore whether a small, practical AI tool could be useful to a local kirana shop.&lt;/p&gt;

&lt;h2&gt;
  
  
  🛒 What I Built
&lt;/h2&gt;

&lt;p&gt;Ranchi Dukaan Pro is a Python and Gradio dashboard where users can provide daily sales history and review their current inventory.&lt;/p&gt;

&lt;p&gt;The prototype includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Seven-day demand forecasting&lt;/strong&gt; for individual products using TabPFN-TS.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Editable inventory information&lt;/strong&gt;, including current stock, incoming stock, supplier lead time, safety stock, and unit cost.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Restock recommendations&lt;/strong&gt; that combine forecast demand with inventory rules.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Estimated order cost&lt;/strong&gt; to help users review the financial impact of a suggested order.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Forecast evaluation&lt;/strong&gt; comparing TabPFN-TS with a simple historical baseline.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The initial use case is deliberately narrow: helping a small kirana shop make more informed stock-planning decisions.&lt;/p&gt;

&lt;h2&gt;
  
  
  🧠 How It Works
&lt;/h2&gt;

&lt;p&gt;The workflow is straightforward:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Enter daily sales history for each product.&lt;/li&gt;
&lt;li&gt;Use TabPFN-TS to generate a seven-day demand forecast.&lt;/li&gt;
&lt;li&gt;Check expected demand during the supplier's lead time.&lt;/li&gt;
&lt;li&gt;Combine that estimate with current stock, incoming stock, and safety stock.&lt;/li&gt;
&lt;li&gt;Display a suggested reorder quantity and its estimated cost.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The prototype uses this basic rule:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Reorder quantity = max(0, lead-time demand + safety stock - current stock - incoming stock)&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The forecasting model estimates demand; the inventory formula makes the reorder recommendation. Keeping these parts separate makes the results easier to inspect and improve.&lt;/p&gt;

&lt;h2&gt;
  
  
  📊 What I Tested
&lt;/h2&gt;

&lt;p&gt;I generated synthetic daily sales data for three example products: Milk 500 ml, Bread, and Rice 1 kg.&lt;/p&gt;

&lt;p&gt;I then held out seven days of historical data and compared TabPFN-TS with a simple baseline that uses sales from the same weekday one week earlier.&lt;/p&gt;

&lt;p&gt;The results from this single test window were:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;TabPFN-TS&lt;/th&gt;
&lt;th&gt;Simple baseline&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Mean Absolute Error (MAE)&lt;/td&gt;
&lt;td&gt;1.29 units&lt;/td&gt;
&lt;td&gt;1.62 units&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Weighted Absolute Percentage Error (WAPE)&lt;/td&gt;
&lt;td&gt;9.18%&lt;/td&gt;
&lt;td&gt;11.56%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The overall results favoured TabPFN-TS in this particular test window. However, the model did not outperform the baseline for every product: the baseline performed better for Bread.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Important limitation:&lt;/strong&gt; these results come from synthetic data and one seven-day holdout. They do not establish real-world accuracy for Ranchi shops. More backtesting and evaluation on real sales records—with the business owner's permission—would be needed before relying on these forecasts for purchasing decisions.&lt;/p&gt;

&lt;h2&gt;
  
  
  🖥️ Try the Demo
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://d16fadb268787acd5d.gradio.live/" rel="noopener noreferrer"&gt;Open Ranchi Dukaan Pro — Gradio Demo&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The prototype lets you review sample sales, edit inventory quantities, generate forecasts, and inspect suggested orders.&lt;/p&gt;

&lt;p&gt;The Gradio share link is temporary and may stop working when its session ends.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Source code:&lt;/strong&gt; &lt;a href="https://github.com/Avinash-sdbegin/ranchi-dukaan-pro" rel="noopener noreferrer"&gt;GitHub — ranchi-dukaan-pro&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The repository includes the main application, setup information, and a downloadable project bundle.&lt;/p&gt;

&lt;h2&gt;
  
  
  🌱 Why Open-Source AI?
&lt;/h2&gt;

&lt;p&gt;This project uses TabPFN-TS for its forecasting component. I wanted to explore a tabular/time-series model that can be inspected and adapted rather than building the entire application around a closed forecasting service.&lt;/p&gt;

&lt;p&gt;The current prototype uses client/cloud inference; it does not claim to run entirely offline. This distinction matters because shop sales can be commercially sensitive. Before using real business data, it is important to review the provider's data-handling terms and get appropriate permission.&lt;/p&gt;

&lt;p&gt;The wider opportunity with open-source AI is flexibility: developers can study the implementation, experiment with different approaches, and adapt a tool for a specific problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  💼 Who Might Pay for It?
&lt;/h2&gt;

&lt;p&gt;The intended users are small retailers who struggle to track demand and decide what to reorder.&lt;/p&gt;

&lt;p&gt;A future version could offer an affordable subscription for features such as recurring forecasts, inventory reports, expiry-aware suggestions, and easier sales imports.&lt;/p&gt;

&lt;p&gt;This is currently a &lt;strong&gt;business hypothesis, not validated demand&lt;/strong&gt;. I have not yet established that a real shopkeeper would pay for this prototype. The next step is to show it to a local retailer, understand their current workflow, and learn whether the forecasts and recommendations would actually help.&lt;/p&gt;

&lt;h2&gt;
  
  
  🔧 What I Learned
&lt;/h2&gt;

&lt;p&gt;Building this prototype reinforced three lessons:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A forecast is only useful when it supports a real decision.&lt;/li&gt;
&lt;li&gt;A simple baseline is essential for evaluating whether a more sophisticated model adds value.&lt;/li&gt;
&lt;li&gt;A successful demo on synthetic data is a starting point, not proof of business impact.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Next, I would like to test multiple historical windows, handle missing records and stock-outs more carefully, account for expiry and supplier constraints, and collect feedback from a real shopkeeper.&lt;/p&gt;

&lt;h2&gt;
  
  
  🌿 Final Thoughts
&lt;/h2&gt;

&lt;p&gt;Ranchi Dukaan Pro is an early experiment in making demand forecasting more accessible to small retailers.&lt;/p&gt;

&lt;p&gt;It is not yet a production inventory system, and its predictions should not be treated as guaranteed demand. But it provides a working starting point for exploring how open-source AI can support everyday business decisions.&lt;/p&gt;

&lt;p&gt;Built for the &lt;strong&gt;Hacktoberfest Open-Source AI Challenge: Week 2 — Side Hustle&lt;/strong&gt;.&lt;/p&gt;

&lt;h1&gt;
  
  
  devchallenge #hf26challenge #tabpfn #opensource
&lt;/h1&gt;

</description>
      <category>ai</category>
      <category>hacktoberfest</category>
      <category>machinelearning</category>
      <category>opensource</category>
    </item>
    <item>
      <title>🏪 Ranchi Dukaan Pro — Predicting Stock Demand with TabPFN-TS</title>
      <dc:creator>Avinash Kumar</dc:creator>
      <pubDate>Fri, 16 Oct 2026 03:21:32 +0000</pubDate>
      <link>https://dev.to/avinash_kumar_9cd2bf0c903/ranchi-dukaan-pro-predicting-stock-demand-with-tabpfn-ts-6cn</link>
      <guid>https://dev.to/avinash_kumar_9cd2bf0c903/ranchi-dukaan-pro-predicting-stock-demand-with-tabpfn-ts-6cn</guid>
      <description>&lt;h3&gt;
  
  
  Smart Stock &amp;amp; Demand Predictor
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Can an AI forecast help a small shopkeeper make better stocking decisions?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Small retailers need to decide what to reorder, how much inventory to keep, and when to place orders. Too little stock can mean missed sales, while excess inventory can tie up cash and increase the risk of expiry or waste.&lt;/p&gt;

&lt;p&gt;For the &lt;strong&gt;Hacktoberfest 2026 Open-Source AI Challenge: Week 2 — Side Hustle&lt;/strong&gt;, I built &lt;strong&gt;Ranchi Dukaan Pro&lt;/strong&gt;, a prototype that uses TabPFN-TS to estimate product demand over the next seven days and combine those estimates with simple inventory rules.&lt;/p&gt;

&lt;p&gt;The goal is to explore whether a focused, affordable AI tool could help a local kirana shop make more informed stock-planning decisions.&lt;/p&gt;

&lt;h2&gt;
  
  
  🛒 What I Built
&lt;/h2&gt;

&lt;p&gt;Ranchi Dukaan Pro is a Python and Gradio dashboard with the following features:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Seven-day demand forecasting&lt;/strong&gt; for individual products using TabPFN-TS.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Editable inventory information&lt;/strong&gt;, including current stock, incoming stock, supplier lead time, safety stock, and unit cost.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Restock recommendations&lt;/strong&gt; that combine estimated demand with available inventory.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Estimated order costs&lt;/strong&gt; to help users evaluate suggested purchase quantities.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Forecast evaluation&lt;/strong&gt; comparing TabPFN-TS with a simple historical baseline.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The current prototype uses example products—Milk 500 ml, Bread, and Rice 1 kg—to demonstrate the complete workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  🧠 How It Works
&lt;/h2&gt;

&lt;p&gt;The workflow is straightforward:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Load daily sales history for each product.&lt;/li&gt;
&lt;li&gt;Use TabPFN-TS to generate a seven-day demand forecast.&lt;/li&gt;
&lt;li&gt;Estimate demand during the supplier's lead time.&lt;/li&gt;
&lt;li&gt;Combine that estimate with current stock, incoming stock, and safety stock.&lt;/li&gt;
&lt;li&gt;Display a suggested reorder quantity and its estimated cost.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The stock recommendation uses this rule:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Reorder quantity = max(0, lead-time demand + safety stock - current stock - incoming stock)&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The forecasting model estimates demand; a separate inventory calculation produces the reorder recommendation. The recommendation is a decision-support estimate, not an automatic purchase instruction.&lt;/p&gt;

&lt;h2&gt;
  
  
  📊 Sample Results
&lt;/h2&gt;

&lt;p&gt;The sample forecast generated these estimated total sales over seven days:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Product&lt;/th&gt;
&lt;th&gt;Estimated 7-day demand&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Milk 500 ml&lt;/td&gt;
&lt;td&gt;134 units&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bread&lt;/td&gt;
&lt;td&gt;96 units&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rice 1 kg&lt;/td&gt;
&lt;td&gt;49 units&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Using the example inventory values, the application initially suggested:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Product&lt;/th&gt;
&lt;th&gt;Suggested order&lt;/th&gt;
&lt;th&gt;Estimated order cost&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Milk 500 ml&lt;/td&gt;
&lt;td&gt;13 units&lt;/td&gt;
&lt;td&gt;₹312&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bread&lt;/td&gt;
&lt;td&gt;9 units&lt;/td&gt;
&lt;td&gt;₹252&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rice 1 kg&lt;/td&gt;
&lt;td&gt;1 unit&lt;/td&gt;
&lt;td&gt;₹52&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;23 units&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;₹616&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;I also tested the editable inventory input: increasing the example milk stock from 10 to 30 units changed the recommended milk order from 13 units to zero and reduced the total estimated order cost from ₹616 to ₹304.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;These are illustrative results using synthetic sales and example inventory values, not actual data from a Ranchi shop.&lt;/strong&gt; The estimated order cost is not a demonstrated saving.&lt;/p&gt;

&lt;h2&gt;
  
  
  🧪 Forecast Evaluation
&lt;/h2&gt;

&lt;p&gt;I generated synthetic daily sales data for three example products and held out the final seven days for testing. I compared TabPFN-TS with a simple baseline that uses sales from the same weekday one week earlier.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Evaluation&lt;/th&gt;
&lt;th&gt;TabPFN-TS MAE&lt;/th&gt;
&lt;th&gt;Baseline MAE&lt;/th&gt;
&lt;th&gt;TabPFN-TS WAPE&lt;/th&gt;
&lt;th&gt;Baseline WAPE&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;All products&lt;/td&gt;
&lt;td&gt;1.29&lt;/td&gt;
&lt;td&gt;1.62&lt;/td&gt;
&lt;td&gt;9.18%&lt;/td&gt;
&lt;td&gt;11.56%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Milk 500 ml&lt;/td&gt;
&lt;td&gt;1.14&lt;/td&gt;
&lt;td&gt;2.14&lt;/td&gt;
&lt;td&gt;5.71%&lt;/td&gt;
&lt;td&gt;10.71%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bread&lt;/td&gt;
&lt;td&gt;1.43&lt;/td&gt;
&lt;td&gt;1.29&lt;/td&gt;
&lt;td&gt;10.00%&lt;/td&gt;
&lt;td&gt;9.00%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rice 1 kg&lt;/td&gt;
&lt;td&gt;1.29&lt;/td&gt;
&lt;td&gt;1.43&lt;/td&gt;
&lt;td&gt;16.67%&lt;/td&gt;
&lt;td&gt;18.52%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Lower MAE and WAPE indicate lower prediction error. In this particular test window, the overall metrics favoured TabPFN-TS, but the simple baseline performed better for Bread.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Important limitation:&lt;/strong&gt; this was one seven-day holdout on synthetic data. It does not establish real-world forecasting accuracy for local shops. Multiple backtesting windows and evaluation on real sales records, with the shop owner's permission, would be needed before relying on forecasts for purchasing decisions.&lt;/p&gt;

&lt;h2&gt;
  
  
  📸 Dashboard Screenshots
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Main Dashboard
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3ui9pldtnp32mcivga06.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3ui9pldtnp32mcivga06.png" alt="Ranchi Dukaan Pro Dashboard" width="800" height="398"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Inventory Editing Test
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg8q3g1uxuer3ktezrjju.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg8q3g1uxuer3ktezrjju.png" alt="Inventory editing test" width="799" height="404"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Forecast Results
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fazhru4yp2yqnjy7ams2w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fazhru4yp2yqnjy7ams2w.png" alt="Seven-day demand forecast results" width="800" height="401"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  🖥️ Try the Demo
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://d16fadb268787acd5d.gradio.live/" rel="noopener noreferrer"&gt;Open Ranchi Dukaan Pro — Gradio Demo&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The prototype lets users review the sample data, edit inventory values, generate forecasts, and inspect restock suggestions.&lt;/p&gt;

&lt;p&gt;The Gradio share link is temporary and may stop working when its session ends.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Source code and evaluation files:&lt;/strong&gt; &lt;a href="https://github.com/Avinash-sdbegin/ranchi-dukaan-pro" rel="noopener noreferrer"&gt;GitHub — ranchi-dukaan-pro&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The repository contains the application, setup instructions, sample CSV files, screenshots, and synthetic-data evaluation outputs.&lt;/p&gt;

&lt;h2&gt;
  
  
  🌱 Why Open-Source AI?
&lt;/h2&gt;

&lt;p&gt;I used TabPFN-TS to explore time-series forecasting through an open-source implementation instead of building the entire application around a closed forecasting service.&lt;/p&gt;

&lt;p&gt;The current prototype uses client/cloud inference. It does &lt;strong&gt;not&lt;/strong&gt; claim to run entirely offline, and users should review the provider's data-handling terms before sending commercially sensitive sales records for inference.&lt;/p&gt;

&lt;p&gt;Open-source tools provide room to inspect the implementation, experiment with alternatives, and adapt the surrounding application to a particular use case. However, model selection alone does not guarantee accuracy or business value; evaluation remains essential.&lt;/p&gt;

&lt;h2&gt;
  
  
  💼 Who Might Pay for It?
&lt;/h2&gt;

&lt;p&gt;The intended users are small retailers who find it difficult to track demand and decide when to reorder inventory.&lt;/p&gt;

&lt;p&gt;A future version could explore an affordable subscription with recurring forecasts, inventory reports, expiry-aware suggestions, and easier sales imports.&lt;/p&gt;

&lt;p&gt;This is a &lt;strong&gt;business hypothesis, not validated customer demand&lt;/strong&gt;. I have not yet established that a real shopkeeper would pay for this prototype. The next step is to demonstrate it to a local retailer, understand their current workflow, and learn whether the forecasts and recommendations are genuinely useful.&lt;/p&gt;

&lt;h2&gt;
  
  
  🔧 What I Learned
&lt;/h2&gt;

&lt;p&gt;This project reinforced three lessons:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A forecast becomes more useful when it supports a concrete business decision.&lt;/li&gt;
&lt;li&gt;A simple baseline helps establish whether a more complex model adds value.&lt;/li&gt;
&lt;li&gt;A working demo on synthetic data is a starting point, not proof of real-world impact.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Future improvements include walk-forward evaluation across multiple time windows, better handling of missing records and stock-outs, expiry-aware ordering, supplier constraints, and usability testing with a local shopkeeper.&lt;/p&gt;

&lt;h2&gt;
  
  
  🌿 Final Thoughts
&lt;/h2&gt;

&lt;p&gt;Ranchi Dukaan Pro is an early experiment in making demand forecasting and stock planning more accessible to small retailers.&lt;/p&gt;

&lt;p&gt;It is an educational and hackathon prototype, not a production inventory system. Its predictions may be wrong, and its real-world usefulness remains to be validated.&lt;/p&gt;

&lt;p&gt;Built for the &lt;strong&gt;Hacktoberfest Open-Source AI Challenge: Week 2 — Side Hustle&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>tabpfn</category>
      <category>opensource</category>
      <category>hf26challenge</category>
    </item>
    <item>
      <title>🌿 Ranchi EcoRoute — An Outdoor Activity Planner Powered by Google Gemma</title>
      <dc:creator>Avinash Kumar</dc:creator>
      <pubDate>Wed, 07 Oct 2026 05:49:25 +0000</pubDate>
      <link>https://dev.to/avinash_kumar_9cd2bf0c903/ranchi-ecoroute-an-outdoor-activity-planner-powered-by-google-gemma-446a</link>
      <guid>https://dev.to/avinash_kumar_9cd2bf0c903/ranchi-ecoroute-an-outdoor-activity-planner-powered-by-google-gemma-446a</guid>
      <description>&lt;p&gt;&lt;strong&gt;Plan quickly. Go outside. Touch grass. 🌱&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Students often decide they want to go outside, but spend more time deciding what to do than actually doing it.&lt;/p&gt;

&lt;p&gt;For the Hacktoberfest 2026 Open-Source AI Challenge: Week 1, themed &lt;strong&gt;Touch Grass&lt;/strong&gt;, I built &lt;strong&gt;Ranchi EcoRoute&lt;/strong&gt; — a small AI-powered outdoor activity planner that turns a few seconds of planning into a practical activity plan.&lt;/p&gt;

&lt;p&gt;The idea is simple:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Use the screen briefly to make a plan, then put the phone away and go outside.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  🤔 What I Built
&lt;/h2&gt;

&lt;p&gt;Ranchi EcoRoute asks the user for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Outdoor activity&lt;/li&gt;
&lt;li&gt;Available time&lt;/li&gt;
&lt;li&gt;Energy level&lt;/li&gt;
&lt;li&gt;Optional custom activity&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It then uses &lt;strong&gt;Google's Gemma open-weight model&lt;/strong&gt; to generate:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A suggested outdoor activity&lt;/li&gt;
&lt;li&gt;A suitable type of place&lt;/li&gt;
&lt;li&gt;A time-based activity plan&lt;/li&gt;
&lt;li&gt;Things to carry&lt;/li&gt;
&lt;li&gt;Basic safety tips&lt;/li&gt;
&lt;li&gt;A screen-break goal&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The project is intentionally simple because the screen should be the shortest part of the experience.&lt;/p&gt;

&lt;h2&gt;
  
  
  🧠 How It Works
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;User Input
(Activity + Time + Energy)
        |
        v
   Google Gemma
        |
        v
Outdoor Activity Plan
        |
        v
Suggested Place Type
+ Time-based Plan
+ What to Carry
+ Safety Tips
+ Screen Break Goal
        |
        v
     Gradio UI
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Gemma handles the natural-language generation of the outdoor plan.&lt;/p&gt;

&lt;p&gt;Python validation and prompt constraints are used to keep the generated plan aligned with the user's available time and energy.&lt;/p&gt;

&lt;p&gt;The project does &lt;strong&gt;not&lt;/strong&gt; claim to provide live weather, traffic, opening hours, or real-time route information.&lt;/p&gt;

&lt;h2&gt;
  
  
  🌱 The Touch Grass Idea
&lt;/h2&gt;

&lt;p&gt;The core idea behind the project is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Less screen time
       ↓
Quick plan
       ↓
Go outside
       ↓
More real-world activity
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Instead of building another tool that keeps users inside an app, I wanted the app to make itself unnecessary as quickly as possible.&lt;/p&gt;

&lt;h2&gt;
  
  
  🖥️ Demo
&lt;/h2&gt;

&lt;p&gt;The prototype runs in Google Colab and launches a Gradio web interface.&lt;/p&gt;

&lt;h3&gt;
  
  
  Example
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Outdoor Activity:
Morning Walk

Time Available:
45 minutes

Energy Level:
Low
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Gemma generated a structured plan with a short walking schedule, suggested place type, things to carry, safety tips, and a screen-break goal.&lt;/p&gt;

&lt;h3&gt;
  
  
  Live Demo
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://ddf9596e4bad103783.gradio.live/" rel="noopener noreferrer"&gt;🌿 Open Ranchi EcoRoute&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;⚠️ The Gradio share link is temporary. The source code and screenshots are available in the GitHub repository.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  🧪 Testing
&lt;/h2&gt;

&lt;p&gt;I tested the prototype with multiple activity configurations.&lt;/p&gt;

&lt;h3&gt;
  
  
  Morning Walk
&lt;/h3&gt;

&lt;p&gt;Input:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;45 minutes
Low energy
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The model generated a short nature-oriented walking plan suitable for the available time and energy level.&lt;/p&gt;

&lt;h3&gt;
  
  
  Nature Photography
&lt;/h3&gt;

&lt;p&gt;Input:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;60 minutes
Medium energy
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The model generated a photography-focused outdoor plan with a time breakdown, things to carry, safety tips, and a screen-break goal.&lt;/p&gt;

&lt;p&gt;These tests helped verify that the generated plan changes according to the user's activity, available time, and energy level.&lt;/p&gt;

&lt;h2&gt;
  
  
  🌱 Why Open Innovation &amp;amp; Gemma Matter
&lt;/h2&gt;

&lt;p&gt;Ranchi EcoRoute uses &lt;strong&gt;Google's Gemma, an open-weight model&lt;/strong&gt;, as the core AI component.&lt;/p&gt;

&lt;p&gt;I wanted the model to handle the actual natural-language planning rather than simply placing an AI chatbot inside a conventional interface.&lt;/p&gt;

&lt;p&gt;An open-weight approach also leaves room for future experimentation such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Swapping models&lt;/li&gt;
&lt;li&gt;Adapting the model for local use cases&lt;/li&gt;
&lt;li&gt;Exploring local or offline inference&lt;/li&gt;
&lt;li&gt;Running the model in more constrained environments&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The interesting part is that the AI is used for planning, while the real goal happens away from the screen.&lt;/p&gt;

&lt;h2&gt;
  
  
  📸 Screenshots
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Morning Walk
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftbajvwcoqdmdi02jcy4k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftbajvwcoqdmdi02jcy4k.png" alt="Morning Walk Demo" width="799" height="309"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Nature Photography
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgc3wzbs28bhbycp4p8xs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgc3wzbs28bhbycp4p8xs.png" alt="Nature Photography Demo" width="800" height="403"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  📚 What I Learned
&lt;/h2&gt;

&lt;p&gt;The biggest lesson from this project was that a useful AI application does not need to be complicated.&lt;/p&gt;

&lt;p&gt;A small set of inputs, a focused prompt, and a simple interface can turn a general-purpose model into a useful tool for a specific real-world goal.&lt;/p&gt;

&lt;p&gt;I also learned that an AI product can be more meaningful when its purpose is to reduce screen time rather than increase it.&lt;/p&gt;

&lt;h2&gt;
  
  
  🔮 Future Improvements
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Real-time weather integration&lt;/li&gt;
&lt;li&gt;Verified local place information&lt;/li&gt;
&lt;li&gt;Map-based route suggestions&lt;/li&gt;
&lt;li&gt;Offline/local Gemma inference&lt;/li&gt;
&lt;li&gt;Personalized activity history&lt;/li&gt;
&lt;li&gt;Better accessibility support&lt;/li&gt;
&lt;li&gt;Group activity planning&lt;/li&gt;
&lt;li&gt;More detailed outdoor difficulty levels&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  📁 Source Code
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;GitHub:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
&lt;a href="https://github.com/Avinash-sdbegin/ranchi-ecoroute" rel="noopener noreferrer"&gt;https://github.com/Avinash-sdbegin/ranchi-ecoroute&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The repository contains the Colab notebook, README, and screenshots.&lt;/p&gt;

&lt;h2&gt;
  
  
  ⚠️ Safety &amp;amp; Limitations
&lt;/h2&gt;

&lt;p&gt;This is an educational and hackathon prototype.&lt;/p&gt;

&lt;p&gt;It does &lt;strong&gt;not&lt;/strong&gt; provide live weather information, real-time traffic information, live route tracking, verified opening hours, or medical advice.&lt;/p&gt;

&lt;p&gt;Always verify weather, location access, local conditions, and personal safety before heading outdoors.&lt;/p&gt;




&lt;p&gt;Built for the &lt;strong&gt;Hacktoberfest Open-Source AI Challenge: Week 1 — Touch Grass&lt;/strong&gt; 🌿&lt;/p&gt;

&lt;h1&gt;
  
  
  devchallenge #hf26challenge #gemma
&lt;/h1&gt;

</description>
      <category>hf26challenge</category>
      <category>devchallenge</category>
      <category>gemma</category>
    </item>
    <item>
      <title>🍛 Khana Kya Hai? — Ranchi Hostel Mess &amp; Allergy Planner with Google Gemma</title>
      <dc:creator>Avinash Kumar</dc:creator>
      <pubDate>Sat, 03 Oct 2026 06:28:49 +0000</pubDate>
      <link>https://dev.to/avinash_kumar_9cd2bf0c903/khana-kya-hai-ranchi-hostel-mess-allergy-planner-with-google-gemma-4okd</link>
      <guid>https://dev.to/avinash_kumar_9cd2bf0c903/khana-kya-hai-ranchi-hostel-mess-allergy-planner-with-google-gemma-4okd</guid>
      <description>&lt;p&gt;&lt;strong&gt;"Aaj mess mein kya kha sakta hoon?"&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That is a simple question, but hostel mess menus become much harder to deal with when someone has a food allergy, intolerance, or dietary restriction.&lt;/p&gt;

&lt;p&gt;For the Hacktoberfest 2026 Weekend Challenge: &lt;strong&gt;Build for a Friend&lt;/strong&gt;, I built &lt;strong&gt;Khana Kya Hai?&lt;/strong&gt;, a small AI-powered hostel mess planner that helps turn a daily mess menu into practical &lt;strong&gt;avoid&lt;/strong&gt;, &lt;strong&gt;verify&lt;/strong&gt;, and &lt;strong&gt;suitable-looking&lt;/strong&gt; options.&lt;/p&gt;

&lt;h2&gt;
  
  
  🤝 Building for a Friend
&lt;/h2&gt;

&lt;p&gt;I built this around a real hostel problem faced by a friend.&lt;/p&gt;

&lt;p&gt;In a hostel, students often do not get detailed ingredient information for every dish. Even when a dish looks safe, its ingredients or cooking method may be unclear.&lt;/p&gt;

&lt;p&gt;The goal of &lt;strong&gt;Khana Kya Hai?&lt;/strong&gt; is not to provide medical advice. Instead, it helps a student organize the available menu and identify which items should be avoided, which need verification, and which appear suitable based on the information provided.&lt;/p&gt;

&lt;p&gt;I also showed the prototype to my hostel roommate Rahul, who deals with dairy sensitivities. He found the practical backup suggestions useful because hostel mess staff may not always be able to change the cooking method for an individual request.&lt;/p&gt;

&lt;h2&gt;
  
  
  ✨ What I Built
&lt;/h2&gt;

&lt;p&gt;Khana Kya Hai? takes four inputs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Today's hostel mess menu&lt;/li&gt;
&lt;li&gt;Allergies or intolerances&lt;/li&gt;
&lt;li&gt;Dietary preference&lt;/li&gt;
&lt;li&gt;Daily food budget&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It then uses &lt;strong&gt;Google's Gemma open-weight model&lt;/strong&gt; to analyze the menu and generate a structured recommendation.&lt;/p&gt;

&lt;p&gt;The interface is built with &lt;strong&gt;Gradio&lt;/strong&gt; and runs from a Google Colab notebook.&lt;/p&gt;

&lt;h2&gt;
  
  
  🧠 How It Works
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;User Input
   |
   v
Mess Menu + Allergy + Diet + Budget
   |
   v
Google Gemma 4 31B
   |
   v
Menu Analysis
   |
   v
Python Safety / Consistency Layer
   |
   v
Final Recommendation
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Gemma handles the natural-language reasoning around the menu.&lt;/p&gt;

&lt;p&gt;A separate Python layer performs deterministic checks for known allergy-related keywords and cleans the model output.&lt;/p&gt;

&lt;p&gt;This extra layer also helps prevent contradictions, such as recommending a menu item after it has already been placed in the avoid list.&lt;/p&gt;

&lt;p&gt;The application separates results into:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;AVOID&lt;/strong&gt; — the item conflicts with the provided restriction&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;VERIFY&lt;/strong&gt; — ingredients or preparation are uncertain&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SUITABLE-LOOKING&lt;/strong&gt; — the item appears compatible based on the available information&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  🛡️ Why Add a Deterministic Layer?
&lt;/h2&gt;

&lt;p&gt;Generative AI is flexible, but food restrictions are a situation where blindly displaying generated text is not a good design.&lt;/p&gt;

&lt;p&gt;Khana Kya Hai? therefore keeps explicit keyword-based checks outside the model.&lt;/p&gt;

&lt;p&gt;For example, dairy-related inputs can expand into related terms such as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;milk
dairy
paneer
cheese
butter
cream
curd
yogurt
kheer
ghee
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The Python layer checks the generated categories against these terms and removes contradictory suitable/recommended results when an item is identified as conflicting with the provided restriction.&lt;/p&gt;

&lt;p&gt;This is not a medical safety guarantee. It is a deterministic consistency layer around a generative model.&lt;/p&gt;

&lt;h2&gt;
  
  
  🖥️ Demo
&lt;/h2&gt;

&lt;h5&gt;
  
  
  🔗 Live Demo
&lt;/h5&gt;

&lt;p&gt;&lt;a href="https://89e2f7646d24c04115.gradio.live/" rel="noopener noreferrer"&gt;Open Khana Kya Hai?&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Example Input
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Today's Mess Menu:
Aloo Paratha, Paneer Butter Masala, Rice, Dal, Kheer

Allergy:
Milk / Dairy

Diet:
Vegetarian

Budget:
₹100
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Example Output
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Avoid:
- Paneer Butter Masala
- Kheer

Verify:
- Aloo Paratha
- Dal

Suitable-looking:
- Rice

Recommended Meal:
- Rice
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The application can also provide a low-cost alternative when the available mess menu does not fit the user's restrictions.&lt;/p&gt;

&lt;h2&gt;
  
  
  🧪 Testing
&lt;/h2&gt;

&lt;p&gt;I tested the prototype with several hostel-style cases:&lt;/p&gt;

&lt;h3&gt;
  
  
  Dairy restriction
&lt;/h3&gt;

&lt;p&gt;The application identified clearly dairy-heavy items such as paneer-based dishes and kheer for avoidance, while uncertain preparation cases such as paratha or dal could be placed under verification.&lt;/p&gt;

&lt;h3&gt;
  
  
  Peanut restriction
&lt;/h3&gt;

&lt;p&gt;The application was tested with peanut as a restriction and checked that unrelated menu items were not automatically classified as peanut-containing.&lt;/p&gt;

&lt;h3&gt;
  
  
  Vegetarian preference
&lt;/h3&gt;

&lt;p&gt;When a menu included chicken curry and the selected diet was vegetarian, the application classified chicken as an item to avoid and did not recommend it as a meal.&lt;/p&gt;

&lt;h3&gt;
  
  
  Consistency testing
&lt;/h3&gt;

&lt;p&gt;I also tested cases where an item could potentially appear in both an unsafe category and a recommendation. The Python consistency layer was added to reduce that kind of contradiction.&lt;/p&gt;

&lt;h2&gt;
  
  
  💰 Practical Alternatives
&lt;/h2&gt;

&lt;p&gt;When the available mess menu does not fit the user's restrictions, the prototype can suggest a simple low-cost backup option.&lt;/p&gt;

&lt;p&gt;Current alternatives include:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Banana + Roasted Chana — ₹25
Aloo Sandwich — ₹40
Peanut + Banana — ₹25
Plain Rice + Ready-to-eat Dal — ₹45
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These are application-defined alternative estimates, not prices claimed for the hostel mess.&lt;/p&gt;

&lt;p&gt;The alternative logic also avoids the peanut option when peanut is provided as an allergy.&lt;/p&gt;

&lt;h2&gt;
  
  
  🌱 Why Open Innovation &amp;amp; Gemma Matter
&lt;/h2&gt;

&lt;p&gt;This project uses &lt;strong&gt;Google's Gemma, an open-weight model&lt;/strong&gt;, as the core AI component.&lt;/p&gt;

&lt;p&gt;What interested me was using the model for the actual natural-language reasoning around messy hostel menu descriptions rather than simply adding an AI chatbot to the interface.&lt;/p&gt;

&lt;p&gt;An open-weight approach also leaves room for future experimentation such as swapping models, adapting the model, or moving toward local inference.&lt;/p&gt;

&lt;p&gt;For a project involving personal food restrictions, that future possibility is particularly interesting because local inference could reduce the need to send such information to an external service.&lt;/p&gt;

&lt;h2&gt;
  
  
  👥 Feedback From My Hostel Friend
&lt;/h2&gt;

&lt;p&gt;After I showed the prototype to my hostel roommate Rahul, he liked the idea of having practical backup suggestions when the hostel mess cannot easily change its ingredients or cooking method.&lt;/p&gt;

&lt;p&gt;His feedback made me think beyond simply identifying foods and focus more on what a student can realistically do when the menu does not fit their restrictions.&lt;/p&gt;

&lt;h2&gt;
  
  
  🏆 Hacktoberfest 2026
&lt;/h2&gt;

&lt;p&gt;This project was built for the &lt;strong&gt;Hacktoberfest Weekend Challenge: Build for a Friend&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Submission Category
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best Use of Gemma&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The project uses Google's Gemma as its core AI model and explores how an open-weight model can be used to solve a small, practical hostel problem.&lt;/p&gt;

&lt;p&gt;The challenge asks participants to build a new project with open-source AI at its core, explain why open innovation matters, and show who the project was built for. :chatgpt-content-reference{index="4"}&lt;/p&gt;

&lt;h2&gt;
  
  
  📸 Screenshots
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Home Interface
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frc5x9j27w3lsty06dy3m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frc5x9j27w3lsty06dy3m.png" alt="Khana Kya Hai? Home" width="799" height="390"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Dairy Allergy Test
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi3l0x7akov7n0w5pfnus.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi3l0x7akov7n0w5pfnus.png" alt="Khana Kya Hai? Dairy Test" width="799" height="385"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  🔐 API Key Handling
&lt;/h2&gt;

&lt;p&gt;The API key is not stored in the GitHub repository.&lt;/p&gt;

&lt;p&gt;For the Colab version, the key is stored using Google Colab Secrets.&lt;/p&gt;

&lt;p&gt;Create:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;GEMMA_API_KEY
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and enable notebook access.&lt;/p&gt;

&lt;h2&gt;
  
  
  ▶️ How to Run
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Open &lt;code&gt;khana_kya_hai.ipynb&lt;/code&gt; in Google Colab.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Add your Google AI Studio API key to Colab Secrets using:&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;GEMMA_API_KEY
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Run the notebook cells in order.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Enter:&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Mess menu
Allergies / intolerances
Dietary preference
Daily food budget
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Click:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Analyze My Food
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The notebook launches the Gradio interface.&lt;/p&gt;

&lt;h2&gt;
  
  
  📁 Source Code
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;GitHub Repository:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
&lt;a href="https://github.com/Avinash-sdbegin/khana-kya-hai" rel="noopener noreferrer"&gt;https://github.com/Avinash-sdbegin/khana-kya-hai&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The repository contains the Colab notebook, README, and project screenshots.&lt;/p&gt;
&lt;h2&gt;
  
  
  📚 What I Learned
&lt;/h2&gt;

&lt;p&gt;The biggest lesson from this project was that adding a language model is only one part of building a useful application.&lt;/p&gt;

&lt;p&gt;The more interesting part was combining:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Generative AI
      +
Deterministic Python Rules
      +
Simple Human-Centered UI
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Gemma provides flexible natural-language reasoning, while the Python layer provides predictable checks for known allergy-related terms.&lt;/p&gt;

&lt;p&gt;Building this for an actual hostel use case also helped me think more about practical constraints instead of designing only for a technical demo.&lt;/p&gt;

&lt;h2&gt;
  
  
  🔮 Future Improvements
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Better ingredient and allergen detection&lt;/li&gt;
&lt;li&gt;Hostel-specific menu history&lt;/li&gt;
&lt;li&gt;More accurate price estimation&lt;/li&gt;
&lt;li&gt;Weekly meal planning&lt;/li&gt;
&lt;li&gt;Local/offline model support&lt;/li&gt;
&lt;li&gt;Personalized food preferences&lt;/li&gt;
&lt;li&gt;Better handling of regional Indian dishes&lt;/li&gt;
&lt;li&gt;More detailed cross-contact detection&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ⚠️ Safety Note
&lt;/h2&gt;

&lt;p&gt;Khana Kya Hai? is an educational and hackathon prototype.&lt;/p&gt;

&lt;p&gt;It is &lt;strong&gt;not a medical or allergy-diagnosis system&lt;/strong&gt; and should not be treated as one.&lt;/p&gt;

&lt;p&gt;Food ingredients, recipes, cooking methods, and cross-contact can vary between messes. Users should always verify ingredients, cooking medium, and possible cross-contact with the food provider before eating.&lt;/p&gt;

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