class WatsonxRerankThe project that contains the resource. Either space_id or project_id has to be given.
The space that contains the resource. Either space_id or project_id has to be given.
Abstract method that must be implemented by any class that extends
BaseDocumentCompressor. This method takes an array of Document
objects and a query string as parameters and returns a Promise that
resolves with an array of compressed Document objects.