Prompt Compression
Domain: Prompt Engineering
π― Motivation
Long prompts cost more. Compression techniques (shorter phrasing, removing redundancy, using abbreviations) reduce cost while preserving meaning.
π Concrete Example
Original: βPlease write a summary of the following text. Make it concise and capture the main points. The summary should be no more than 3 sentences.β Compressed: βSummarize in 3 sentences: [text]β Same meaning, fewer tokens.
π Analogy
Packing a suitcase efficiently - instead of stuffing everything in loosely (verbose prompt), you roll clothes and remove unnecessary items (compress). Same contents, smaller space (fewer tokens).