← Questions

Design a multimodal RAG assistant

0
AppleSystem designLast asked Dec 2025

An AI system design interview question asked in Apple's technical phone screen, last asked Dec 2025. It tests rag, multimodal and llm.

Design a retrieval-augmented generation (RAG) assistant that answers employees' questions from an internal knowledge base with several kinds of content: plain text (wiki pages, tickets), PDFs that mix text and images, and images such as diagrams and screenshots with little surrounding text. Answers must be grounded and cite their sources.

Requirements

  • Functional: ingest each kind of content; index it; retrieve relevant evidence across kinds (a text question can need a diagram); generate an answer with an LLM; cite the evidence it used.
  • Non-functional: answer quality you can measure; acceptable latency and cost per question; freshness when documents change; access control so people only see what they may.

Clarifying questions

  • How large is the knowledge base, and how often does it change?
  • Do permissions differ per document?
  • What latency is acceptable, and is a multimodal LLM available?
  • What share of questions actually need images?

What a strong answer covers

  • Ingestion per kind: text chunking with structure kept (headings, tables), PDF layout parsing that separates text, tables and figures, captions or OCR for images, and metadata (source, date, permissions).
  • Indexing: text embeddings plus image embeddings in a shared space (CLIP-style) or images converted to text, a keyword index for exact terms, and a hybrid of the two.
  • Query time: query rewriting, cross-modal retrieval, a re-ranker, permission filtering before the model sees anything.
  • Grounding: prompts that require answers from evidence, citations to chunk or figure, and refusing when evidence is weak.
  • Evaluation: retrieval recall on a labeled set, answer correctness and faithfulness (human and LLM judges), online feedback, latency and cost per answer.
  • Failure modes and fixes: hallucinations, stale documents, a missing modality, a diagram that holds the answer but has no text.

Follow-ups

  • A question's answer is only in a screenshot. Walk through how it is found.
  • How do you keep the index in sync when a wiki page is edited or deleted?
  • Costs double. What do you cut first?

Where it's asked

  • Apple · Technical phone screen · Last asked Dec 2025

What it tests

rag · multimodal · llm

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing