Introduction
Imagine trying to send a long message but only having a small space to write it. Contextual compression helps by squeezing the important parts of the message so it fits without losing meaning.
Jump into concepts and practice - no test required
Imagine packing a suitcase for a trip. Instead of taking everything you own, you choose only the clothes and items you will actually need based on the weather and activities planned. This way, your suitcase is lighter and easier to carry.
┌─────────────────────────────┐ │ Full Information │ ├─────────────┬───────────────┤ │ Context │ Data Input │ ├─────────────┴───────────────┤ │ Contextual Compression │ ├─────────────┬───────────────┤ │ Relevant │ Compressed │ │ Information │ Output │ └─────────────┴───────────────┘
contextual compression in AI?'The cat sat on the mat. It was sunny outside. The dog barked loudly.' Which compressed version best shows contextual compression?'I do not like rain. The sun is bright. It is not cold.' What is the output?['urgent', 'meeting', 'deadline']. Given the conversation: 'We have a meeting tomorrow. The weather is nice. The deadline is next week. Let's grab lunch.' Which compressed output is correct?