<?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: Sanoj Ahamed</title>
    <description>The latest articles on DEV Community by Sanoj Ahamed (@sanojahamed).</description>
    <link>https://dev.to/sanojahamed</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%2F1119840%2F636362be-89e3-4e16-850e-67eaafa437bf.jpeg</url>
      <title>DEV Community: Sanoj Ahamed</title>
      <link>https://dev.to/sanojahamed</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sanojahamed"/>
    <language>en</language>
    <item>
      <title>A Personalized AI Learning Companion Powered by Gemma</title>
      <dc:creator>Sanoj Ahamed</dc:creator>
      <pubDate>Sun, 04 Oct 2026 16:57:42 +0000</pubDate>
      <link>https://dev.to/sanojahamed/a-personalized-ai-learning-companion-powered-by-gemma-1k2j</link>
      <guid>https://dev.to/sanojahamed/a-personalized-ai-learning-companion-powered-by-gemma-1k2j</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;Study Buddy&lt;/strong&gt;, a personalized AI learning companion for a friend who is learning programming.&lt;/p&gt;

&lt;p&gt;The idea was to create something more useful than simply asking an AI chatbot questions. Study Buddy combines &lt;strong&gt;human-written learning material with an open-weight AI model&lt;/strong&gt; to provide a structured learning experience.&lt;/p&gt;

&lt;p&gt;The current study room covers beginner topics in:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;(Vue)JavaScript&lt;/li&gt;
&lt;li&gt;HTML&lt;/li&gt;
&lt;li&gt;CSS&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For each topic, the learner gets simple explanations, practical analogies, code examples, and a five-question multiple-choice quiz.&lt;/p&gt;

&lt;p&gt;Gemma then uses the selected lesson as context to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Explain concepts in a personalized way&lt;/li&gt;
&lt;li&gt;Give feedback on quiz answers&lt;/li&gt;
&lt;li&gt;Create small practice exercises&lt;/li&gt;
&lt;li&gt;Adapt responses to the learner's selected name&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Learning progress is saved locally in the browser, so the learner can continue from the same device.&lt;/p&gt;

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

&lt;p&gt;&lt;a href="https://youtu.be/FHwp-yRFcgU" rel="noopener noreferrer"&gt;Watch the demo on YouTube&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;&lt;a href="https://github.com/SanojAhamed/Study-room" rel="noopener noreferrer"&gt;View the GitHub repository&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;The frontend is built with &lt;strong&gt;Vue 3&lt;/strong&gt;, while the backend uses &lt;strong&gt;Node.js and Express&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The AI layer uses Google's &lt;strong&gt;Gemma 3 4B IT&lt;/strong&gt;, an open-weight model, through &lt;strong&gt;Hugging Face Inference Providers&lt;/strong&gt;.&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;Learner → Vue Study Room → Express API → Hugging Face → Gemma → Personalized Response&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The lesson content is written and maintained in the application. When the learner selects a topic and learning mode, the Express server sends the relevant lesson context to Gemma along with the learner's request.&lt;/p&gt;

&lt;p&gt;I also kept the Hugging Face API token on the server instead of exposing it to the browser. The frontend communicates only with my Express API.&lt;/p&gt;

&lt;p&gt;The project also includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Vite for the frontend development and build process&lt;/li&gt;
&lt;li&gt;Browser local storage for learner progress&lt;/li&gt;
&lt;li&gt;Environment variables for AI configuration&lt;/li&gt;
&lt;li&gt;API rate limiting to help protect the tutor endpoint&lt;/li&gt;
&lt;li&gt;A production setup where Express can serve the built Vue application&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The model can also be changed through the &lt;code&gt;HF_MODEL&lt;/code&gt; environment variable, making the AI component replaceable rather than tightly coupled to a single model.&lt;/p&gt;

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

&lt;p&gt;Open innovation makes it possible to experiment with this project at a much deeper level.&lt;/p&gt;

&lt;p&gt;Instead of building the application around a closed AI API that is difficult to replace, Study Buddy uses an &lt;strong&gt;open-weight model through an inference provider&lt;/strong&gt;. This gives the project flexibility to experiment with different models and inference setups as the application grows.&lt;/p&gt;

&lt;p&gt;It also makes the AI layer a replaceable part of the architecture. The learning experience, lesson content, and frontend do not have to be completely redesigned if the underlying model changes.&lt;/p&gt;

&lt;p&gt;For a learning project like this, that flexibility is important because it allows me to learn not only how to use AI, but also how AI models fit into a real software application.&lt;/p&gt;

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