<?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: Vaidehi</title>
    <description>The latest articles on DEV Community by Vaidehi (@vaidehi_177ae03410f3d9c19).</description>
    <link>https://dev.to/vaidehi_177ae03410f3d9c19</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%2F4170457%2F320583f1-ad52-458e-a508-2dd833db370a.png</url>
      <title>DEV Community: Vaidehi</title>
      <link>https://dev.to/vaidehi_177ae03410f3d9c19</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vaidehi_177ae03410f3d9c19"/>
    <language>en</language>
    <item>
      <title>Trail Journal: an offline nature walk companion built on Gemma</title>
      <dc:creator>Vaidehi</dc:creator>
      <pubDate>Thu, 08 Oct 2026 18:19:36 +0000</pubDate>
      <link>https://dev.to/vaidehi_177ae03410f3d9c19/trail-journal-an-offline-nature-walk-companion-built-on-gemma-8cl</link>
      <guid>https://dev.to/vaidehi_177ae03410f3d9c19/trail-journal-an-offline-nature-walk-companion-built-on-gemma-8cl</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week1-2026-10-05"&gt;Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;Trail Journal is a small two-script tool that puts the screen at the start and end of a walk instead of the middle.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Before the walk,&lt;/strong&gt; &lt;code&gt;hunt.py&lt;/code&gt; asks a local Gemma model for a short scavenger hunt that fits my place, weather and walk length.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;During the walk,&lt;/strong&gt; the laptop stays at home. I carry only my phone, take photos of what I find, and otherwise keep it in my pocket.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;After the walk,&lt;/strong&gt; &lt;code&gt;journal.py&lt;/code&gt; sends the photos to a vision-capable Gemma model, which describes each one and writes a short nature journal entry as a Markdown file.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It's for anyone who wants a reason to step outside and a small keepsake afterwards. You don't need to be a nature expert, and you don't need an internet connection once it's set up.&lt;/p&gt;

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

&lt;p&gt;I generated a hunt for a street in Pune, India, then went for a 30-minute evening walk with a short list of things to photograph: a flower, a tree, a leaf and something blue. I heard crows and horns and saw lots of pink flowers. Back at my desk, I ran the journal on the four photos.&lt;/p&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%2Fzgipmnj73ybohzmejvep.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%2Fzgipmnj73ybohzmejvep.png" alt="PowerShell window showing the scavenger hunt generated by Gemma for a street in Pune" width="800" height="203"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The hunt Gemma generated locally for a street in Pune.&lt;/em&gt;&lt;/p&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%2Fcyt4iktaqyjqeopmpkwj.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%2Fcyt4iktaqyjqeopmpkwj.png" alt="Journal output next to my photo of a pink flower held in my hand" width="799" height="463"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The journal entry next to my flower photo. The model guessed chrysanthemum, which looks right.&lt;/em&gt;&lt;/p&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%2Fdfih86s7gyv4c0bujaiv.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%2Fdfih86s7gyv4c0bujaiv.png" alt="Journal output next to my photo of a tall tree with long narrow leaves" width="800" height="469"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The model called this tree a neem, but it looks closer to eucalyptus to me.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The walk left me relaxed, peaceful and calm, which is exactly what I hoped a "touch grass" project would do. The tool did its work before and after, and the walk itself was just me, my phone in my pocket, and the street.&lt;/p&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/VaidehiThaware/trail-journal" rel="noopener noreferrer"&gt;https://github.com/VaidehiThaware/trail-journal&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Model:&lt;/strong&gt; Gemma 3 (4B), an open-weight model with vision support, run locally through Ollama.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Glue:&lt;/strong&gt; two small Python scripts using the &lt;code&gt;ollama&lt;/code&gt; client library. &lt;code&gt;hunt.py&lt;/code&gt; builds a prompt from the place, weather and duration. &lt;code&gt;journal.py&lt;/code&gt; works in two stages: first it asks the model to describe each photo with a confidence level, then it writes a short entry from those descriptions and my own notes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tools:&lt;/strong&gt; I used an AI assistant (Claude) to help write the scripts and draft this post. I ran, tested and debugged everything myself on my own laptop.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;My first runs had problems, and I fixed each one by tightening the prompts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The hunt&lt;/strong&gt; assumed autumn leaves in India, left a &lt;code&gt;[Name of Park]&lt;/code&gt; placeholder, and asked me to record a sound for a photo-based journal. I rewrote the rules and the output improved.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The journal&lt;/strong&gt; invented a date, made up species names, and added smells I never mentioned. I banned new species names, added rules against inventing details, and lowered the temperature to 0.2 and 0.3.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A safety slip:&lt;/strong&gt; one hunt told me to "close your eyes" and listen next to traffic. I ignored it and listened with my eyes open, away from the road edge. A tool like this shouldn't be trusted blindly.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How well did it work?
&lt;/h2&gt;

&lt;p&gt;I checked each description against my own photos:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Photo&lt;/th&gt;
&lt;th&gt;What the model said&lt;/th&gt;
&lt;th&gt;Verdict&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Pink flower&lt;/td&gt;
&lt;td&gt;Chrysanthemum with layered petals&lt;/td&gt;
&lt;td&gt;Looks right&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tree&lt;/td&gt;
&lt;td&gt;Neem&lt;/td&gt;
&lt;td&gt;Probably wrong (long narrow leaves, looks closer to eucalyptus)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Blue car&lt;/td&gt;
&lt;td&gt;Blue hatchback, white SUV behind it&lt;/td&gt;
&lt;td&gt;Right&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Leaf&lt;/td&gt;
&lt;td&gt;Guava with serrated edges&lt;/td&gt;
&lt;td&gt;Wrong (the edges are smooth, species doubtful)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;It got 2 of 4 right. It was reliable on colors, objects and the overall scene, and weak on precise plant species. It also ignored part of my notes: it wrote that it saw no other plants or animals, even though I'd mentioned crows and lots of flowers.&lt;/p&gt;

&lt;p&gt;So a 4B model is a companion that describes and suggests, not an expert. The README warns never to eat or touch anything based on its output.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;My photos and location stay on my laptop.&lt;/strong&gt; Nothing is uploaded, and there's no account or API key. For a tool that looks at the streets near my home, that matters to me.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It costs nothing to run.&lt;/strong&gt; That let me rerun and rewrite the prompts as many times as I liked while fixing the problems above. Doing that against a paid API would have made me hesitate.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;I can change the model.&lt;/strong&gt; Both scripts take a &lt;code&gt;--model&lt;/code&gt; flag, so a bigger or more accurate open model is a one-word change as better ones come out.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It works without signal once set up.&lt;/strong&gt; After the one-time model download nothing needs the internet, which suits walks where coverage is poor.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'm not claiming open beats closed on accuracy. A larger closed model might well name the tree correctly. What the open route gave me was privacy, control and zero cost, and for a hobby tool I think that's the better trade.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd Do Next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Mark every species guess as "unverified" by default.&lt;/li&gt;
&lt;li&gt;Pair Gemma with a small local plant-ID model for species, and let Gemma only write the journal.&lt;/li&gt;
&lt;li&gt;Add a voice-note option, so I can say what I heard instead of typing it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Prize Categories
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Best Use of Gemma:&lt;/strong&gt; Gemma 3 4B runs locally through Ollama for both the text and the vision parts of the project.&lt;/li&gt;
&lt;/ul&gt;

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