Module 4 - VLM architectures, applications, and multimodal RAG revision

Revision guide · ~30 min · dense bullets, not full lessons

Chapter 4.1 follows the lecture map: Foundations → CLIP → LLaVA → Qwen-VL → SAM → Synthesis.

Foundations

CLIP

LLaVA

Qwen-VL

SAM

Synthesis

Need Start with
Tag / retrieve CLIP
Chat about image LLaVA
OCR + boxes + multi-image Qwen-VL
Pixel mask SAM
Grasp / rotoscope pipeline VLM + SAM

4.2 VLM applications

Application failure Planned control
Caption hallucination Visible-only prompt + negative examples
VQA false assumption Verify object exists
Guessed document field null + validation + human review
Compounding reasoning error Independent verifier
Tiny/thin segmentation miss Domain testing and prompt refinement

4.3 Multimodal RAG

Data Good starting point
Plain text Text or hybrid RAG
Products/photos CLIP-style image search
Reports/charts/forms Multimodal document RAG
High-stakes answers Retrieval + claim citations + validation

20-minute drill

  1. Walk through ViT patch count for 224×224 and 16×16 patches.
  2. Explain why LLaVA needs a projector even when dimensions match.
  3. Convert one normalized <box> to pixel coordinates for a given image size.
  4. Sketch a two-step pipeline: Qwen-VL finds box → SAM segments.
  5. Write a caption prompt with scope and length constraints.
  6. Write an invoice JSON schema that uses null for missing values.
  7. Compare BM25, dense, and hybrid search for an exact policy number.
  8. Sketch text query → page retrieval → VLM answer → page citation.
  9. Explain late interaction without using the formula.
  10. Diagnose separately: the right page was retrieved, but the answer invented a number.