<?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" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Vetri T on Medium]]></title>
        <description><![CDATA[Stories by Vetri T on Medium]]></description>
        <link>https://medium.com/@VetriT?source=rss-20e9134403fd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6h964pdtpt0wjh-nCGBnnA.jpeg</url>
            <title>Stories by Vetri T on Medium</title>
            <link>https://medium.com/@VetriT?source=rss-20e9134403fd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 20:47:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@VetriT/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Building a Local YouTube Assistant with LLMs and Vector Databases]]></title>
            <link>https://medium.com/@VetriT/building-a-local-youtube-assistant-with-llms-and-vector-databases-0870a232d4ec?source=rss-20e9134403fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/0870a232d4ec</guid>
            <category><![CDATA[ollama]]></category>
            <category><![CDATA[vector-database]]></category>
            <category><![CDATA[deepseek-r1]]></category>
            <category><![CDATA[javascript-development]]></category>
            <category><![CDATA[llm-applications]]></category>
            <dc:creator><![CDATA[Vetri T]]></dc:creator>
            <pubDate>Sat, 22 Mar 2025 07:30:46 GMT</pubDate>
            <atom:updated>2025-09-01T18:01:24.797Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building a Local YouTube Assistant with LLM and Vector Databases</h3><p>Have you ever wished for a smart YouTube assistant that runs locally, understands your queries, and fetches the right insights instantly? Well, my friend, you’re in the right place!</p><p>This blog assumes you know basic JavaScript. The required code is in the associated <a href="https://github.com/vetri15/langchain_demo">GitHub repo</a>.</p><h3>Overview</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tw1M2R90P26mDFSSLmnLnA.png" /></figure><p>The following steps happen in sequence once the user inputs his YouTube link and the question.</p><ol><li>The YouTube transcript is fetched using the Langchain library.</li><li>The fetched transcript is broken into text chunks and indexed in Pinecone DB.</li><li>From the Pinecone DB, the chunks relevant to the question are retrieved.</li><li>The relevant chunks and the question are sent to the locally running LLM.</li><li>The LLM does its magic✨ and gives the output to the user.</li></ol><h3>Prerequisites</h3><p>To run this project you need 2 things apart from the GitHub repo.</p><ol><li>Pinecone API key.<br>You can sign up for a free API key using this link <a href="https://www.pinecone.io/">Pinecone DB</a>.</li><li>A local running LLM.<br>For this we use Ollama, It is an open-source tool that allows users to easily run large language models (LLMs) locally on their computers.<br>You can download ollama using the <a href="https://ollama.com/download/OllamaSetup.exe">link</a>. To learn more about ollama visit the <a href="https://github.com/ollama/ollama">GitHub link</a></li></ol><h3>Walkthrough</h3><p>Once you have got the API key and installed ollama, go through the below steps.</p><ol><li>Clone the <a href="https://github.com/vetri15/langchain_demo">GitHub repo</a> and install node packages.</li></ol><pre>git clone https://github.com/vetri15/langchain_demo<br>cd langchain_demo<br>npm install</pre><p>2. Rename the .env.example file and set up your environment variables.</p><pre>Rename-Item -Path .env.example -NewName .env<br>Set-Content .env &#39;PINECONE_API_KEY=your-api-key&#39;</pre><p>3. next run your local LLM using ollama. we will use the <a href="https://ollama.com/library/deepseek-r1">deepseek-r1 model.</a> <br>There are various parameters available, the higher the parameters the better. I could run up to 14B parameter model using my Nvidia RTX 2050 Mobile GPU paired with my Ryzen 7 processor. You may choose between 8B, 14B, and 32B models based on your PC.<br>The below code will download and run the corresponding ollama model. Ollama will take some time to install. since DeepSeek models are a few GBs.</p><pre>ollama run deepseek-r1:14b</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*VkckTMYGSp35AmOyahbddQ.png" /></figure><p>4. Once Deepseek is running. run the node.js application using the below code.</p><pre>node index.js</pre><p>5. Now paste the <a href="https://www.youtube.com/watch?v=JKBk_Kfucs4">YouTube link</a> and ask questions about the video.</p><p>Voila! You now have a locally running YouTube assistant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cGHEf-BMh7v6uK7XMVEpJg.png" /></figure><p>If you have any queries, feel free to comment.☺️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0870a232d4ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>