Attaching files and images

Click the "+" button on the input pill to attach files or images.

Short answer

Click the ”+” button on the input pill to attach files or images. Supported: PDF, TXT, MD, DOCX for text; PNG, JPG, WEBP for images. Images are OCR’d locally into text (they’re not “seen” by a vision model). Each attachment shows a 72×72 chip in a horizontal strip, in the order you added them. Max 5 attachments, 50 MB per file.

Detailed explanation

Attaching. Click the ”+” button (glyph +) on the input pill, then choose “ATTACH FILE” or “IMAGE” from the sheet that opens. This routes to the system file picker (the Windows file picker, or the macOS open panel on Mac).

Drag-and-drop of files onto the chat area is not supported - file attachment happens only through the ”+” button. (Drag-and-drop of GGUF model files onto the Models screen for adding models is a separate feature.)

File types supported for text extraction:

  • PDF - extracted locally (PdfPig on Windows, PDFKit on Mac)
  • TXT / MD - read directly
  • DOCX - extracted locally (OpenXml on Windows, a built-in DOCX reader on Mac)

For images (PNG, JPG, WEBP), the image is passed through local OCR (Windows OCR on Windows, Apple’s Vision text recognizer on Mac) to extract any text visible in the image, then that text is sent to the model along with your message. There is no vision model - a model that doesn’t understand images natively will only “see” whatever text OCR pulled out. If OCR finds no text (e.g. a photograph of a landscape), you’ll see “No text found in image — nothing to send to model”. On Windows, OCR needs an OCR language pack installed; without one you’ll see “OCR unavailable — install a language pack in Windows Settings”.

Limits:

  • Maximum 5 attachments per message
  • Maximum 50 MB per file
  • The extracted text of each file is capped at 8,000 characters before it is sent

Unified chip strip. Every attachment renders as a 72×72 chip in a single horizontal row above the input, in the order you attached them. Image chips show a thumbnail; document chips show a bordered box with the file type label (PDF, TXT, DOCX, MD) in the top-left corner. Text label color adapts to theme (dark on light, light on dark).

Removing. Click the ✕ on any chip to remove it before sending.

Token cost display. Above the chips, an aggregate badge shows total attachment tokens as a percentage of context (e.g. Attachments: ≈2,400 tokens (30% of context)). Each chip also flags how much of your context that single attachment eats:

  • Under 50% of context - normal
  • Over 50% and up to 90% - amber ⚠ icon (and amber border on document chips)
  • Over 90% - red ⚠ icon (and red border on document chips)

The exact per-chip token count and warning appear when you hover over the chip (tooltip). See Attachment traffic light for what the colors mean.

Where attachments live in the chat. After sending, attachments appear as chips above your message bubble (same 72×72 layout, without the amber/red warning colors). The extracted text is included in the prompt sent to the model, not shown separately in the UI.

Why it matters

Attachments make Abliteration useful beyond pure chat - you can point the model at a document and ask questions. But attachments consume context quickly: with each file capped at 8,000 characters, five full attachments come to about 10K tokens, roughly 30% of a 32K context.

In Abliteration specifically

Text extraction is local - no cloud upload. Everything happens on your computer.

Token counters use rough conversions (PDF: extracted characters / 4; TXT and MD: characters / 3.9; DOCX: characters / 4; images: OCR’d characters / 4). Not exact, but good enough for warnings.

If your attachments plus your prompt would not fit the model’s context (with 2,000 tokens reserved for the reply), Abliteration shows a “Model context warning” dialog before sending. You can trim the attachments or choose “SEND ANYWAY”; attachment text is then truncated to fit the context and a toast tells you how much was used.

Multiple attachments stack in one row. If they exceed the input width, the strip scrolls horizontally.

Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every GGUF model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration