<?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: Solomon “Gin”</title>
    <description>The latest articles on DEV Community by Solomon “Gin” (@solomon_gin_galagala).</description>
    <link>https://dev.to/solomon_gin_galagala</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%2F3069344%2Feec667ee-9aed-4eae-be1b-c0c53f0775b0.jpg</url>
      <title>DEV Community: Solomon “Gin”</title>
      <link>https://dev.to/solomon_gin_galagala</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/solomon_gin_galagala"/>
    <language>en</language>
    <item>
      <title>Building StudyBuddy: An AI-Powered Chatbot That Understands Your Study Material</title>
      <dc:creator>Solomon “Gin”</dc:creator>
      <pubDate>Sun, 20 Apr 2025 21:16:46 +0000</pubDate>
      <link>https://dev.to/solomon_gin_galagala/building-studybuddy-an-ai-powered-chatbot-that-understands-your-study-material-1nga</link>
      <guid>https://dev.to/solomon_gin_galagala/building-studybuddy-an-ai-powered-chatbot-that-understands-your-study-material-1nga</guid>
      <description>&lt;p&gt;When you’re knee-deep in PDF notes, textbooks, or research papers, wouldn’t it be nice to just ask a question and get a clear answer from your documents? That’s exactly why I built StudyBuddy — an intelligent chatbot that turns static study material into an interactive conversation.&lt;/p&gt;

&lt;p&gt;And it's powered by some amazing tools:&lt;/p&gt;

&lt;p&gt;🧭 &lt;strong&gt;LangGraph&lt;/strong&gt; for managing multi-step, tool-aware reasoning.&lt;br&gt;
🤖 &lt;strong&gt;Gemini&lt;/strong&gt; for both LLM-powered answers and document embeddings.&lt;br&gt;
⚡ &lt;strong&gt;ChromaDB&lt;/strong&gt; as the vector database that enables fast, semantic search over your PDFs.&lt;/p&gt;

&lt;p&gt;💡 &lt;strong&gt;Why I Built This&lt;/strong&gt;&lt;br&gt;
I’ve been experimenting with Retrieval-Augmented Generation (RAG) as part of the GenAI course on Kaggle, and I wanted a system that could:&lt;/p&gt;

&lt;p&gt;Let me upload any document (PDFs for now and should probably enable that in chat tba),&lt;br&gt;
Ask natural language questions about it,&lt;br&gt;
Get accurate, contextual answers — with memory and topic awareness.&lt;br&gt;
Instead of just bolting together an LLM and a vector DB, I wanted actual conversation flow — so I turned to LangGraph.&lt;/p&gt;

&lt;p&gt;🛠️ &lt;strong&gt;How It Works&lt;/strong&gt;&lt;br&gt;
Here's the high-level setup:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Embeddings&lt;br&gt;
When you upload a PDF, I chunk the text and generate embeddings using Gemini's gemini-embedding-03 model.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Storage&lt;br&gt;
Those chunks are stored in ChromaDB, a fast, local vector database that lets me search by semantic meaning, not just keywords.&lt;br&gt;
Conversational Reasoning with LangGraph&lt;br&gt;
The chatbot is a graph. Each step is a node:&lt;br&gt;
human_node is responsible for user interaction whereas the study_node handles the underlying tools like summarize_chunks, define_term, clarify_question, etc. that LangGraph routes to based on user input.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Gemini&lt;/strong&gt; acts as the brain behind it all, generating responses using retrieved context.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;LLM Output&lt;/strong&gt;&lt;br&gt;
Once the graph finishes routing through tools, Gemini generates a thoughtful, helpful response — often with references to the source material.&lt;/p&gt;

&lt;p&gt;🧪 Example Use Case&lt;br&gt;
User: "What’s the difference between supervised and unsupervised learning?"&lt;br&gt;
StudyBuddy: (retrieves relevant chunks from your ML notes, then responds)&lt;br&gt;
“Supervised learning uses labeled datasets… while unsupervised learning identifies patterns without labels. See page 3 of ‘ml_notes.pdf’ for a breakdown.”&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
