Prompt Compression — AI Glossary

Prompt compression encompasses techniques for reducing the length of a prompt while preserving its essential meaning and effectiveness. Methods include summarizing lengthy context, removing redundant instructions, using shorter phrasing, applying token-efficient formatting, and using specialized compression models. Prompt compression helps fit more information within context window limits and reduces API costs.