Design the file upload flow for an AI chat app

MediumSystem design45 minSWEMLEPro outline

The question

Users of a chat assistant can attach files such as PDFs, images and spreadsheets and then ask questions about them. Design the upload flow from the moment the user picks a file to the model being able to use it in the conversation.

What the interviewer is looking for

  • Uses direct-to-storage uploads instead of streaming through the app servers
  • Plans processing per file type: text extraction, OCR, chunking, embeddings
  • Thinks about context limits: when to put the whole file in the prompt versus retrieve chunks
  • Covers limits, scanning, privacy and deletion
  • Shows the user clear progress and errors

Your answer

Saved in this browser only. Nobody else sees it.

Why this question

Written by BlogLLM in the style of a publicly reported xAI question type: File upload flow for an AI chat app.

Reported in: aced.io

Practice question written by BlogLLM based on publicly reported interview formats. Not an official xAI question.