<?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: Ãbhishek</title>
    <description>The latest articles on DEV Community by Ãbhishek (@mr_abhi_930).</description>
    <link>https://dev.to/mr_abhi_930</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%2F1652538%2F7b8c7c6a-4bcc-4f8a-bb10-da4dc7479a09.png</url>
      <title>DEV Community: Ãbhishek</title>
      <link>https://dev.to/mr_abhi_930</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mr_abhi_930"/>
    <language>en</language>
    <item>
      <title>Saarthi: A Local AI Companion That Remembers What Matters</title>
      <dc:creator>Ãbhishek</dc:creator>
      <pubDate>Sun, 04 Oct 2026 20:49:32 +0000</pubDate>
      <link>https://dev.to/mr_abhi_930/saarthi-a-local-ai-companion-that-remembers-what-matters-4657</link>
      <guid>https://dev.to/mr_abhi_930/saarthi-a-local-ai-companion-that-remembers-what-matters-4657</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a 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;Saarthi&lt;/strong&gt;, a local AI companion that remembers what matters to you and uses that context to help you decide what to do next.&lt;/p&gt;

&lt;p&gt;I built it for a close friend who often has a lot going on at the same time: exams, projects, personal goals, things they want to learn, and deadlines they don't want to forget.&lt;/p&gt;

&lt;p&gt;The problem wasn't that they needed another chatbot.&lt;/p&gt;

&lt;p&gt;They needed something that actually &lt;strong&gt;understood their context&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;With Saarthi, they can naturally tell it things like:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"I have my DBMS exam on Friday and normalization is really confusing me."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Instead of simply replying to that message, Saarthi can understand that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;There is an upcoming DBMS exam.&lt;/li&gt;
&lt;li&gt;Normalization is a weak area.&lt;/li&gt;
&lt;li&gt;The exam should probably become a high-priority task.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The user gets to decide whether Saarthi should remember that information.&lt;/p&gt;

&lt;p&gt;Once remembered, MongoDB becomes Saarthi's long-term memory.&lt;/p&gt;

&lt;p&gt;Later, asking:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"What should I focus on today?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;can produce a personalized answer based on those memories.&lt;/p&gt;

&lt;p&gt;Saarthi can also:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Identify useful information from natural conversations&lt;/li&gt;
&lt;li&gt;Ask before permanently remembering inferred information&lt;/li&gt;
&lt;li&gt;Track goals, weaknesses, preferences and upcoming events&lt;/li&gt;
&lt;li&gt;Detect when something changes&lt;/li&gt;
&lt;li&gt;Update existing memories instead of creating duplicates&lt;/li&gt;
&lt;li&gt;Show why a particular recommendation was made&lt;/li&gt;
&lt;li&gt;Generate a personalized plan for the day&lt;/li&gt;
&lt;li&gt;Show the context that influenced an AI response&lt;/li&gt;
&lt;li&gt;Visualize the user's context through a timeline and context graph&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;&lt;strong&gt;Saarthi doesn't just remember what you said. It uses what it remembers to understand what matters next.&lt;/strong&gt;&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;Live Demo:&lt;/strong&gt; &lt;a href="https://saarthi-gb4r.onrender.com/" rel="noopener noreferrer"&gt;https://saarthi-gb4r.onrender.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;One of the main things I demonstrate in the video is Saarthi running with the internet disconnected.&lt;/p&gt;

&lt;p&gt;The flow is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Tell Saarthi something
        ↓
Gemma understands it
        ↓
User approves the memory
        ↓
MongoDB stores it
        ↓
Saarthi uses that context later
        ↓
Gemma provides a personalized recommendation
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;p&gt;&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/Abhishek-IITP/Saarthi" rel="noopener noreferrer"&gt;https://github.com/Abhishek-IITP/Saarthi&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The project is built around a deliberately simple architecture:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Next.js
   │
   ├── MongoDB
   │      └── Personal Context / Memories
   │
   └── Ollama
          └── Gemma
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There is no complicated microservice architecture behind the prototype.&lt;/p&gt;

&lt;p&gt;The goal was to keep the product small while making the AI behavior meaningful.&lt;/p&gt;

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

&lt;p&gt;The core of Saarthi is &lt;strong&gt;Gemma running locally through Ollama&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;When a user sends a message, Saarthi can pass it to Gemma to identify useful information that could become part of the user's long-term context.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;"I have my DBMS exam on Friday and
normalization is really confusing me."
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;can become structured context 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;DBMS exam → Friday
Normalization → Weakness
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The user can then approve or reject what should be remembered.&lt;/p&gt;

&lt;p&gt;MongoDB stores that context along with information 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;category
importance
confidence
source
status
createdAt
updatedAt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This lets Saarthi distinguish between something the user explicitly said and something the AI inferred.&lt;/p&gt;

&lt;p&gt;When the user asks a question, relevant context is retrieved from MongoDB and provided to Gemma.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;User:
"What should I focus on today?"

        ↓

MongoDB

DBMS exam → Friday
Normalization → Weakness
Placement preparation → Goal
Night study → Preference

        ↓

Gemma

        ↓

Personalized recommendation
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I also added a &lt;strong&gt;"Why this?"&lt;/strong&gt; interaction so Saarthi can show which memories influenced its recommendation.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Why this?

• Your DBMS exam is Friday
• You identified normalization as difficult
• You prefer studying at night
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This makes the connection between memory and AI reasoning visible instead of hiding it behind a black box.&lt;/p&gt;

&lt;p&gt;Another part I wanted to explore was &lt;strong&gt;changing context&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;If a user initially says:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"My project submission is tomorrow."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;and later says:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"My project submission is finally done."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Saarthi shouldn't create two unrelated memories.&lt;/p&gt;

&lt;p&gt;It should understand that the existing event has changed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Project submission

Upcoming
    ↓
Completed
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That allows the assistant's priorities to change as the user's situation changes.&lt;/p&gt;

&lt;p&gt;The main technologies are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Next.js&lt;/strong&gt; for the application&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TypeScript&lt;/strong&gt; for the implementation&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MongoDB&lt;/strong&gt; for persistent personal context&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gemma&lt;/strong&gt; for local AI reasoning and memory extraction&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ollama&lt;/strong&gt; for running Gemma locally&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tailwind CSS&lt;/strong&gt; for the interface&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Framer Motion&lt;/strong&gt; for subtle interactions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I intentionally avoided adding a large agent framework or complicated infrastructure.&lt;/p&gt;

&lt;p&gt;The interesting part of the project is the interaction between &lt;strong&gt;memory, context and local AI&lt;/strong&gt;, not the number of technologies used.&lt;/p&gt;

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

&lt;p&gt;Personal context is exactly the kind of information I don't want to blindly send to a third-party AI provider.&lt;/p&gt;

&lt;p&gt;Saarthi uses Gemma locally through Ollama, which means the AI inference can happen directly on the user's machine.&lt;/p&gt;

&lt;p&gt;That gives the user more control.&lt;/p&gt;

&lt;p&gt;They can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Run the model locally&lt;/li&gt;
&lt;li&gt;Use Saarthi without an internet connection&lt;/li&gt;
&lt;li&gt;Change the model&lt;/li&gt;
&lt;li&gt;Modify the prompts&lt;/li&gt;
&lt;li&gt;Change how memories are extracted&lt;/li&gt;
&lt;li&gt;Change how the assistant prioritizes information&lt;/li&gt;
&lt;li&gt;Experiment with the AI behavior without depending on a proprietary API&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The open approach also changed what I could build.&lt;/p&gt;

&lt;p&gt;With a closed API, I could have made:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Question → API → Answer
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Instead, I could build the AI into the actual product behavior:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Conversation
     ↓
Memory extraction
     ↓
User approval
     ↓
Persistent context
     ↓
Context updates
     ↓
Prioritization
     ↓
Planning
     ↓
Personalized answer
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Gemma isn't just being used to generate text.&lt;/p&gt;

&lt;p&gt;It is part of the application's memory and reasoning system.&lt;/p&gt;

&lt;p&gt;That's what made open innovation particularly useful for Saarthi.&lt;/p&gt;

&lt;p&gt;And the most satisfying part is being able to turn off the internet and still have the core AI experience work.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Build for a Friend&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Open-source AI / Open-weight AI&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Saarthi was built specifically around a real person's needs rather than as a generic AI demo.&lt;/p&gt;

&lt;p&gt;The project also relies on locally running open-weight AI through Gemma and Ollama as a core part of its functionality.&lt;/p&gt;

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