7.1 Vision-Language Models (VLMs)
| Model | Capabilities | Use Cases |
|---|---|---|
| GPT-4o / GPT-4V | Image understanding, chart analysis | Document extraction, visual QA |
| Claude Sonnet (multi-modal) | Image + long context | PDF analysis, diagram understanding |
| Gemini 2.0 Pro | Image, video, audio | Multi-modal RAG, video analysis |
| LLaVA | Open-source VLM | Self-hosted visual understanding |
7.2 Audio Models
- Whisper (OpenAI): Speech-to-text, 100+ languages
- AssemblyAI: Real-time transcription, speaker diarization
- Cloud Speech Services: Enterprise speech platforms with compliance features
7.3 Code Generation Models
- GPT-4o/Codex-class: Strong multi-language coding
- Claude Sonnet: Excellent code generation and debugging
- DeepSeek Coder: Open-source, strong coding
- StarCoder 2: Open-source, 600+ languages
7.4 Document Understanding / Intelligent Document Processing
Document Intelligence services combine OCR with layout analysis (table detection, form-field identification) to extract structured data from complex documents:
Paper/Scanned Document → Pre-processing (deskew, denoise)
→ OCR Engine → Layout Analysis (tables, form fields)
→ Field Extraction → Validation + Confidence Scoring
→ Structured Data Output
| Tool | Accuracy | Tables | Forms | Cost Model |
|---|---|---|---|---|
| Cloud OCR/Textract-class services | 95%+ | Yes | Yes | Pay per page |
| Cloud Document Intelligence services | 96%+ | Yes | Yes (prebuilt models) | Pay per page |
| Tesseract (open-source) | 85-90% | Limited | Limited | Free |
| Commercial OCR (ABBYY-class) | 97%+ | Yes | Yes | License |
Section 7 — Interview Q&A
Q: Compare approaches for building a multi-modal RAG system handling PDFs with images, charts, and tables. A: Three approaches, in increasing sophistication. (1) Text-only: extract text via a PDF parser, OCR images/charts, describe charts using a vision-language model, then embed the text descriptions — simple, works with any text embedding model, but loses visual fidelity and chart descriptions can be inaccurate. (2) Multi-modal embeddings: use CLIP-style models to embed images and text into the same vector space so queries can match against either modality — preserves visual information but generally underperforms on text-heavy retrieval and is a newer/less mature technology. (3) Hybrid (recommended): index text content, VLM-generated descriptions of images/charts, and markdown-formatted tables all as text embeddings in one collection; at generation time, pass both the retrieved text chunks and the original images to a multi-modal LLM (e.g., GPT-4o) so it can reason directly over the visual content when needed. This gets the best quality at the cost of added pipeline complexity.