Cross-Lecture Semantic Vector Search (RAG)
How AI Assistants Retrieve Knowledge Across All Lectures & Readings via 768-D Vector Embeddings
STEP 1: INDEX CURRICULUM
Course Knowledge Ingestion
🎬 Video Transcripts
Lectures 1–11 with Timestamps
📄 Reading PDFs & Manuals
38 Papers (Kallisto, Sleuth, FastQC)
💻 Master R Scripts
Steps 1–8 (Workflows & Functions)
✂️ Chunked (300w) & Embedded
gemini-embedding-001 (768-D)
STEP 2: SEMANTIC SEARCH
Vector Space Matching
Student on Lecture 1:
"How do I run tximport in R?"
📐 Cosine Similarity Search:
• Converts query to 768-D vector
• Measures angle against all course chunks
• Finds closest biological concept cluster
🎯 Matched Chunks (Score: 0.89):
• Lecture 4: Differential Expression
• Step 2 Script + Soneson 2015 PDF
STEP 3: GENERATE & CITE
Grounded Answer + Hyperlinks
⚡ Ask DIY (Gemini 2.5 Flash):
To import Kallisto transcript abundances into R, use tximport to summarize counts to the gene level:
txi <- tximport(files, type="kallisto", tx2gene=tx2gene)
Sources:
🔗 [Lecture 4 - Differential Expression] (Step 2)
📄 [Soneson2015_tximport.pdf] (Section 2.1)
Key Concept: Semantic vectors enable discovery of relevant concepts across the entire curriculum, regardless of which page the student is viewing.
DIY Transcriptomics