Contextual Compression to Filter Irrelevant Context

LangChain's Contextual Compression Retriever refines retrieved documents by passing them through a Document Compressor, which shortens content or drops irrelevant documents to ensure only pertinent information reaches the LLM, reducing noise and hallucination risk.

Sources

Open the full topic