<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Sarvesh's projects]]></title><description><![CDATA[Hi there! this is a place where i display and write about my projects.]]></description><link>https://projects-of-sarvesh.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Thu, 22 Oct 2026 19:42:58 GMT</lastBuildDate><atom:link href="https://projects-of-sarvesh.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[AI buddy : your next personal AI assistant]]></title><description><![CDATA[Hi, today I am going to be talking about one of my projects, the AI buddy. I made AI buddy as school science fair project. This article will explain a bit…]]></description><link>https://projects-of-sarvesh.hashnode.dev/ai-buddy-your-next-personal-ai-assistant</link><guid isPermaLink="true">https://projects-of-sarvesh.hashnode.dev/ai-buddy-your-next-personal-ai-assistant</guid><category><![CDATA[ai buddy]]></category><category><![CDATA[AI]]></category><category><![CDATA[Raspberry Pi]]></category><category><![CDATA[raspberrypi]]></category><category><![CDATA[Artificial Intelligence]]></category><category><![CDATA[personal assistant]]></category><dc:creator><![CDATA[Sarvesh Venkatesh]]></dc:creator><pubDate>Thu, 01 Jan 2026 15:39:16 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/stock/unsplash/vpOeXr5wmR4/upload/0d54880ece9d2989fcecfdd6a7545f8e.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Hi, today I am going to be talking about one of my projects, the AI buddy. I made AI buddy as school science fair project. This article will explain a bit about AI buddy by talking about what it is, how it works, how I made it and it even includes a demo so that you all can see how AI buddy works.</p>
<h1 id="heading-what-is-ai-buddy">What is AI buddy?</h1>
<p>AI Buddy is a personal assistant built on the Raspberry Pi 4 that uses computer vision and artificial intelligence to recognize users, greet them by name, and carry out intelligent conversations through text and voice, and it all runs locally, so it doesn’t require an internet connection.<br />It demonstrates how AI can be run locally without cloud services, integrating computer vision (CV), natural language processing (NLP), and text to speech (TTS) into one smooth system.</p>
<h1 id="heading-how-does-ai-buddy-work">How does AI buddy work?</h1>
<ol>
<li><p>The camera starts and detects faces in real time using <strong>OpenCV</strong>.</p>
</li>
<li><p>Facial encodings are compared with pre-trained encodings (dataset) in a file called encodings.pkl.</p>
</li>
<li><p>If recognized, the assistant greets the user.</p>
</li>
<li><p>The user types a message or question into the terminal.</p>
</li>
<li><p>The text is processed by <strong>Ollama’s LLM</strong> through <strong>LangChain</strong>.</p>
</li>
<li><p>The AI generates a relevant response.</p>
</li>
<li><p><strong>Piper TTS</strong> converts that response into natural speech and speaks it aloud.</p>
</li>
</ol>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1767178314549/aa8b9995-3b55-413e-997d-de36cf4fabf5.png" alt class="image--center mx-auto" /></p>
<p>This is a flow chart explaining how AI buddy works.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1767172454403/38737136-c4ed-48a7-990a-8c9007cf2e32.jpeg" alt /></p>
<p>The picture above shows AI buddy detecting my face.</p>
<h2 id="heading-here-is-a-demo-of-ai-buddy">Here is a demo of AI buddy:</h2>
<p><a target="_blank" href="https://drive.google.com/file/d/171cGFHOft6Y06nTtU00MMYJv4_7aJ0b3/view?usp=sharing">https://drive.google.com/file/d/171cGFHOft6Y06nTtU00MMYJv4_7aJ0b3/view?usp=sharing</a></p>
<h1 id="heading-how-did-i-make-ai-buddy">How did I make AI buddy?</h1>
<p>It took me a few weeks to make AI buddy. I used open CV for the facial recognition combined with a library called facial_recognition I used a <a target="_blank" href="https://core-electronics.com.au/guides/raspberry-pi/face-recognition-with-raspberry-pi-and-opencv/">tutorial from core electronics</a> to first make the facial recognition part. Then, I used a <a target="_blank" href="https://projects.raspberrypi.org/en/projects/llm-rpi">tutorial from the Raspberry Pi foundation</a> to run an LLM from ollama on the Raspberry Pi 4b (I used the gemma 3:1B model from ollama as it was a small, yet reliable model). Once I got both parts working, it was time to combine both of them to create AI buddy. I used Chat GPT to help me combine both projects into one single project.</p>
<h1 id="heading-where-can-ai-buddy-be-used-in-real-life">Where can AI buddy be used in real life?</h1>
<p>AI buddy can act as a companion to others, it can act as an assistant to answer simple questions and do a lot more. It can evolve into <strong>a home companion, smart receptionist, assistive healthcare agent, or an educational robot</strong>, depending on how it’s deployed.</p>
<h1 id="heading-conclusion"><strong>Conclusion:</strong></h1>
<p>The AI Buddy successfully demonstrates computer vision, natural language processing, and text to speech being used in harmony, running locally without internet.<br />It can recognize people, respond naturally, and communicate via voice, making it ideal for personal assistants, robotics, or education projects.</p>
<p>Future versions could include:</p>
<ul>
<li><p>Offline speech recognition (Vosk or Whisper)</p>
</li>
<li><p>Emotion detection from facial expressions</p>
</li>
<li><p>Real-time context memory for deeper conversations</p>
</li>
</ul>
]]></content:encoded></item></channel></rss>