Base class for document compressors.
This abstraction is primarily used for post-processing of retrieved documents.
Document objects matching a given query are first retrieved.
Then the list of documents can be further processed.
For example, one could re-rank the retrieved documents using an LLM.
Users should favor using a RunnableLambda instead of sub-classing from this
interface.
BaseDocumentCompressor()