Files & Context
File uploads, attachments, context and token usage.
Components
4 components availableA drag-and-drop upload zone — per-file progress bars, type icons, and error states for files too big or of the wrong type.
Context FilesThe files currently in the model's context — sizes, how many tokens each one costs, and removal without leaving the chat.
Context PickerThe @-mention menu for adding context to a prompt — files, web pages and knowledge bases with search, recent items, access states and token cost.
Context UsageHow much of the context window is gone and to what — system prompt, files, history — plus what gets dropped first when the next message does not fit.
Patterns using Files & Context
Complete interfaces composed from these components.
The canonical chat interface — sidebar, streaming messages, prompt input with model selector, and sources.
Open pattern →Document Q&A WorkspaceAsk your own documents — upload and parse, cited answers with inspectable passages, an honest not-found state, and a visible context budget.
Open pattern →Structured Extraction & ReviewUpload a document, watch fields fill in, then review the flagged ones — per-field confidence, corrections that keep the original, export earned.
Open pattern →Customer Support CopilotGrounded reply drafts with citations, honest low-confidence answers, inline corrections, an approval gate on refunds, and a rating row on every draft.
Open pattern →