Contextual Compression Retriever
Compress retrieved documents down to the parts relevant to the query, using a chat model. Requires a base retriever and a model.
Written By Philippe
Last updated 3 days ago
Contextual Compression Retriever
🧪 Labs — Experimental, may change or break without notice
What It Does
Wraps a base retriever and uses a chat model to strip retrieved documents down to only the passages relevant to the query — reducing noise and token usage before the context reaches a chain.
Connections
Output: a Retriever connection.
Compatibility
Notes
- Both a base retriever and a chat model must be connected for this node to run.
Was this helpful?
More in AI & LangChain
Agent NodeChain LLM NodeInformation ExtractorAnthropic Chat ModelStill need help? Ask the team