<?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: Sneha Sharma</title>
    <description>The latest articles on DEV Community by Sneha Sharma (@sneha_sharma_26).</description>
    <link>https://dev.to/sneha_sharma_26</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%2F4262955%2Fca570b17-dd88-4232-8e4d-a7c5dea18ece.png</url>
      <title>DEV Community: Sneha Sharma</title>
      <link>https://dev.to/sneha_sharma_26</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sneha_sharma_26"/>
    <language>en</language>
    <item>
      <title>Building a Timestamp-Aware AI Learning Assistant for Video Lectures</title>
      <dc:creator>Sneha Sharma</dc:creator>
      <pubDate>Tue, 24 Nov 2026 15:10:10 +0000</pubDate>
      <link>https://dev.to/sneha_sharma_26/building-a-timestamp-aware-ai-learning-assistant-for-video-lectures-1ccp</link>
      <guid>https://dev.to/sneha_sharma_26/building-a-timestamp-aware-ai-learning-assistant-for-video-lectures-1ccp</guid>
      <description>&lt;p&gt;our team worked on an AI-powered learning assistant designed specifically for video-based education.&lt;/p&gt;

&lt;p&gt;The idea came from a simple problem: students often use AI while watching lectures, but a normal AI assistant can answer using information from parts of the lecture that the student has not even watched yet.&lt;/p&gt;

&lt;p&gt;That can break the learning flow.&lt;/p&gt;

&lt;p&gt;So we built &lt;strong&gt;BuildVerse AI Learning Assistant&lt;/strong&gt;, a system that understands not only the lecture content, but also the student’s current progress in the video.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Imagine a student is watching a 60-minute lecture and has currently reached minute 20.&lt;/p&gt;

&lt;p&gt;They ask an AI assistant a question.&lt;/p&gt;

&lt;p&gt;A normal Retrieval-Augmented Generation system may search the entire lecture transcript and retrieve an answer from minute 45.&lt;/p&gt;

&lt;p&gt;Technically, the answer may be correct.&lt;/p&gt;

&lt;p&gt;But from a learning perspective, the student has just received information that has not been introduced yet.&lt;/p&gt;

&lt;p&gt;We wanted to prevent that.&lt;/p&gt;

&lt;h2&gt;
  
  
  Our Solution
&lt;/h2&gt;

&lt;p&gt;Our system uses a &lt;strong&gt;timestamp-aware RAG pipeline&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Every lecture transcript is divided into chunks and each chunk contains its corresponding start and end timestamps.&lt;/p&gt;

&lt;p&gt;When a student asks a question, the system also receives their current video timestamp.&lt;/p&gt;

&lt;p&gt;The retrieval system is then restricted to content that has already been watched.&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;Video Lecture → Transcript → Timestamped Chunks → Embeddings → Vector Database → Timestamp Filter → RAG → AI Response&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;So if the student has watched only the first 20 minutes, the AI can retrieve information only from those first 20 minutes.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Timestamp Guard
&lt;/h2&gt;

&lt;p&gt;The main feature of our project is what we call the &lt;strong&gt;Timestamp Guard&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Before a retrieved chunk is sent to the language model, we check:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Chunk Timestamp ≤ Current Video Timestamp&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;If the content appears later in the lecture, it is excluded from the response.&lt;/p&gt;

&lt;p&gt;This helps prevent:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Future-content spoilers&lt;/li&gt;
&lt;li&gt;Out-of-sequence explanations&lt;/li&gt;
&lt;li&gt;Unnecessary information overload&lt;/li&gt;
&lt;li&gt;Answers that are not aligned with the learner’s progress&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If the answer has not been covered yet, the system can tell the student that the topic appears later in the lecture instead of revealing it immediately.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the System Works
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Lecture Processing
&lt;/h3&gt;

&lt;p&gt;The video content is converted into text using transcription.&lt;/p&gt;

&lt;p&gt;Supporting learning material such as PDFs and presentations can also be processed.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Chunking
&lt;/h3&gt;

&lt;p&gt;The transcript is divided into smaller sections.&lt;/p&gt;

&lt;p&gt;Each chunk stores metadata such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Video ID&lt;/li&gt;
&lt;li&gt;Start timestamp&lt;/li&gt;
&lt;li&gt;End timestamp&lt;/li&gt;
&lt;li&gt;Text content&lt;/li&gt;
&lt;li&gt;Source information&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. Embeddings
&lt;/h3&gt;

&lt;p&gt;We generate embeddings using &lt;strong&gt;Sentence Transformers&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;These embeddings represent the meaning of each transcript chunk.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Vector Search
&lt;/h3&gt;

&lt;p&gt;The embeddings are stored inside &lt;strong&gt;Qdrant&lt;/strong&gt;, which allows us to perform semantic search when the student asks a question.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Timestamp Filtering
&lt;/h3&gt;

&lt;p&gt;Before sending retrieved content to the LLM, the system filters out any chunks that occur after the student’s current position in the lecture.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. AI Response
&lt;/h3&gt;

&lt;p&gt;The remaining context is provided to &lt;strong&gt;Gemini&lt;/strong&gt;, which generates a grounded response based only on the allowed lecture content.&lt;/p&gt;

&lt;h2&gt;
  
  
  Additional Features
&lt;/h2&gt;

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

&lt;ul&gt;
&lt;li&gt;Lecture-based question answering&lt;/li&gt;
&lt;li&gt;Timestamp-aware retrieval&lt;/li&gt;
&lt;li&gt;Video timestamp citations&lt;/li&gt;
&lt;li&gt;PDF/page citations&lt;/li&gt;
&lt;li&gt;Future-content detection&lt;/li&gt;
&lt;li&gt;Out-of-scope question detection&lt;/li&gt;
&lt;li&gt;Retrieval-Augmented Generation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The goal is to make AI act as a learning companion rather than simply becoming an answer generator.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tech Stack
&lt;/h2&gt;

&lt;p&gt;For the frontend, we used:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;React&lt;/li&gt;
&lt;li&gt;Vite&lt;/li&gt;
&lt;li&gt;Tailwind CSS&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For the backend:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;FastAPI&lt;/li&gt;
&lt;li&gt;Python&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For the AI and retrieval pipeline:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Gemini&lt;/li&gt;
&lt;li&gt;Sentence Transformers&lt;/li&gt;
&lt;li&gt;Qdrant&lt;/li&gt;
&lt;li&gt;RAG&lt;/li&gt;
&lt;li&gt;Whisper&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For document processing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;PyMuPDF&lt;/li&gt;
&lt;li&gt;python-pptx&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why Normal RAG Was Not Enough
&lt;/h2&gt;

&lt;p&gt;Traditional RAG retrieves information based mainly on semantic similarity.&lt;/p&gt;

&lt;p&gt;For our use case, relevance alone was not enough.&lt;/p&gt;

&lt;p&gt;A chunk from minute 50 might be highly relevant to a question asked at minute 15.&lt;/p&gt;

&lt;p&gt;That is why we added another condition:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Semantic relevance + Temporal eligibility&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Only content satisfying both conditions is allowed into the final context.&lt;/p&gt;

&lt;p&gt;This small change makes the system much more suitable for structured learning environments.&lt;/p&gt;

&lt;h2&gt;
  
  
  What We Learned
&lt;/h2&gt;

&lt;p&gt;One of the most interesting lessons from this project was that building useful AI does not always mean giving the maximum amount of information.&lt;/p&gt;

&lt;p&gt;Sometimes the AI needs constraints.&lt;/p&gt;

&lt;p&gt;In education, knowing &lt;strong&gt;when not to answer&lt;/strong&gt; can be just as important as knowing the correct answer.&lt;/p&gt;

&lt;p&gt;By combining RAG with timestamp-based filtering, we tried to create an AI assistant that respects the student’s actual learning journey.&lt;/p&gt;

&lt;h2&gt;
  
  
  Future Scope
&lt;/h2&gt;

&lt;p&gt;The project can be extended further with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Automatic quiz checkpoints&lt;/li&gt;
&lt;li&gt;Concept mastery tracking&lt;/li&gt;
&lt;li&gt;Personalized revision questions&lt;/li&gt;
&lt;li&gt;Student progress analytics&lt;/li&gt;
&lt;li&gt;Adaptive learning paths&lt;/li&gt;
&lt;li&gt;Weak-topic detection&lt;/li&gt;
&lt;li&gt;Lecture summaries up to the current timestamp&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A future version could automatically pause the lecture at important checkpoints and ask short questions before allowing the student to continue.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;BuildVerse AI Learning Assistant was our attempt to make AI-assisted education more context-aware and learner-focused.&lt;/p&gt;

&lt;p&gt;Instead of allowing the AI to access the entire lecture blindly, we restrict it according to what the student has already watched.&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;AI should follow the learner’s progress, not jump ahead of it.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Project Repository
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://github.com/codewith-sneha/HackWithDelhiHackathon" rel="noopener noreferrer"&gt;https://github.com/codewith-sneha/HackWithDelhiHackathon&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>education</category>
      <category>llm</category>
      <category>rag</category>
    </item>
  </channel>
</rss>
