Skip to main content
Core Concepts6 min readUpdated July 2026

Core Concepts & Architecture

Understanding content auto-detection, priority tier shields, and entropy scoring.

The 6-Step Compression DAG Pipeline

LLMSlim executes context reduction through a strictly deterministic Directed Acyclic Graph (DAG): 1. **Format Identification**: Classifies prompt structure (Markdown, JSON, XML, Code, Chat). 2. **Lexical Tokenization**: Maps words, code markers, and entity boundaries. 3. **Priority Shield Evaluation**: Protects system rules, constraints, and JSON schemas. 4. **Information Density Scoring**: Calculates TF-IDF centrality & graph degree. 5. **Entity Retention Check**: Ensures proper nouns, numbers, and technical terms remain intact. 6. **Token Assembly**: Reconstructs a clean, cohesive, token-dense prompt output.
Sub-50ms CPU Latency

The entire 6-step pipeline executes locally on CPU in under 30ms for standard 2,000-token prompts.

Frequently Asked Questions

What are Priority Tiers?

Priority Tiers rank text boundaries from Priority 1 (Background fluff) to Priority 4 (Critical instructions & code), ensuring essential constraints are never dropped.