Attachment context indicator (traffic light)

Each attachment chip has a color-coded warning showing how much of your context it eats.

Short answer

Each attachment chip has a color-coded warning showing how much of your context it eats. Neutral (default): fine. Amber: uses more than half of context. Red: over 90%. The exact percent and warning text appear on hover; above the chips, an aggregate badge sums all attachments.

Detailed explanation

Every attachment gets a rough token count on add (documents by their extracted text length, images by the OCR’d text length). This count is compared against the context the selected model will use: its loaded context if it is already loaded, otherwise Abliteration’s Auto estimate for it.

Thresholds:

Attachment tokens / context Chip border (document chips) Corner icon Hover tooltip warning
Up to 50% Neutral (theme border) none just percent + tokens
Over 50%, up to 90% Amber ⚠ (amber) top-right ”⚠ Model may forget earlier messages”
Over 90% Red ⚠ (red) top-right ”⚠ Exceeds context — some content will be truncated”

Image chips are a thumbnail without a border, so on them only the corner ⚠ icon changes color.

Above the attachment chips (not per chip), an aggregate badge shows the sum: Attachments: ≈N tokens (X% of context). Its text turns amber from 70% and red from 90%.

Per-chip vs aggregate. Each chip is colored based on its own share of context, not the combined share. Two 30% attachments each stay neutral individually, but the aggregate badge will show 60% of context in use - that’s when you notice you’re stacking too much.

What “truncated” means. If your attachments plus your typed prompt would not fit the context (with 2,000 tokens reserved for the reply), Abliteration asks before sending. If you send anyway, the attachment text is cut to fit (at roughly 3 characters per token) and a toast says how many characters were used. On Windows, long chat history is also compressed (see context compression) once it passes about 75% of the context.

Why it matters

Without the traffic light you’d only find out about a too-big attachment after generation goes weird or the model complains. The chip warnings and the aggregate badge give instant visual feedback before you hit Send.

In Abliteration specifically

The chip colors are a fixed amber (#FFA726) and red (#EF5350) in both themes, following the same convention as the rest of the app: neutral = fine, amber = attention, red = problem.

The estimated token count uses:

  • PDF: extracted characters / 4.0 (fallback: file bytes / 8 if extraction is empty or looks incomplete, under 1 character per 20 bytes of file)
  • TXT / MD: characters / 3.9, counted over the full file
  • DOCX: characters / 4.0 (same bytes / 8 fallback as PDF)
  • Images: OCR’d text length / 4.0 (fallback: file bytes / 8 if OCR is empty)
  • If more than 30% of the characters are Cyrillic, the estimate is multiplied by 1.8

Estimates are approximate - good enough for warning purposes.

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