Sintra AI
Home
Live Feed
Automation Hub
Prompt Library256
AI News554
Weekly Digest
Topic Hubs
AI History
AI Labs
Research
Learning Paths
Guides
Resources
Concepts
Videos
AI Tools74
Models
Claude
Google AI
Cost Calc
Skip to content
Sintra AIConcepts
Home/Concepts/Context Compression
๐Ÿ“ฆ
Models & AIPractitioner

Context Compression

Techniques to fit more useful information into a limited context window.

Context compression is a collection of techniques for maximising the information density of what you put into a model's context window โ€” important when your content exceeds the available space.

Methods:

Summarisation: Have the model (or a cheaper model) compress older conversation turns into a dense summary that replaces the raw history. Reduces tokens dramatically while preserving key facts.

Selective retrieval (RAG): Instead of stuffing all documents into context, embed them and retrieve only the most relevant passages at query time. 100 documents โ†’ 3 relevant passages.

Structured extraction: Extract key facts from verbose text (e.g., a 10,000-word earnings call transcript โ†’ a 200-token structured JSON of key numbers).

Chunking strategies: For long documents, split smartly at semantic boundaries (paragraphs, sections) rather than fixed character counts โ€” preserves coherence per chunk.

Hypothetical Document Embeddings (HyDE): Generate a hypothetical answer to the query, embed it, and use it to retrieve similar actual documents โ€” often better recall than embedding the raw question.

When it matters most: Long-running agentic workflows where conversation history accumulates, enterprise RAG over large document collections, and any task where input cost dominates (batch document processing).

In plain terms

Packing for a trip: don't take the whole wardrobe, take what you actually need for the weather forecast. The forecast is your query; your packed bag is the compressed, relevant context.

Related concepts

๐Ÿ“š

Retrieval-Augmented Generation

Giving the AI access to your documents before it answers.

๐ŸชŸ

Context Window

How much text an AI can see and remember at once.

๐Ÿช™

Tokens

The tiny chunks of text an AI reads, one at a time.

๐Ÿง 

AI Memory

How AI agents store and retrieve information across turns, sessions, and tasks.

Stay current

New prompts & AI news, weekly

No noise. Curated highlights from the library.

Newsletter signup is currently disabled.

Sintra Tesseract

A curated library of AI use cases, mapped across every way to think with a machine.

Open source ยท Free forever

Discover

Use CasesCollectionsAI Tools DirectoryAI NewsLearning PathsResources & Links

Reference

Claude & AnthropicAI ConceptsAI HistoryAI LabsGoogle AI Tools

Elsewhere

AI Keynote โ†—GitHub โ†—RSS Feed โ†—
ยฉ 2026 Sintra ยท Curated in the open.Built on the void.