# LangChain Authors - Improving Document Retrieval With Contextual Compression (Highlights)

## Metadata
**Review**:: [readwise.io](https://readwise.io/bookreview/27018362)
**Source**:: #from/readwise #from/reader
**Zettel**:: #zettel/fleeting
**Status**:: #x
**Authors**:: [[LangChain Authors]]
**Full Title**:: Improving Document Retrieval With Contextual Compression
**Category**:: #articles #readwise/articles
**Category Icon**:: 📰
**URL**:: [blog.langchain.dev](https://blog.langchain.dev/improving-document-retrieval-with-contextual-compression/)
**Host**:: [[blog.langchain.dev]]
**Highlighted**:: [[2023-04-29]]
**Created**:: [[2023-04-29]]
## Highlights
- Inserting irrelevant information into the LLM prompt is bad because:
1. It might distract the LLM from the relevant information
2. It takes up precious space that could be used to insert other relevant information. ([View Highlight](https://read.readwise.io/read/01gz554rwzmhndmnwjqt36nh96)) ^517845361
- “Compressing” here refers to both compressing the contents of an individual document and filtering out documents wholesale. ([View Highlight](https://read.readwise.io/read/01gz555szy9s7gvk9wzrtfywc5)) ^517845434