OptionalmaxOptionalprojectOptionalreturnOptionalspaceOptionaltruncateAn array of Document objects to be compressed.
A query string.
A Promise that resolves with an array of compressed Document objects.
Optionaloptions: Partial<WatsonxInputRerank>Optionaloptions: Partial<WatsonxInputRerank>Staticis
Abstract method that must be implemented by any class that extends
BaseDocumentCompressor. This method takes an array ofDocumentobjects and a query string as parameters and returns a Promise that resolves with an array of compressedDocumentobjects.