Optional
maxOptional
projectOptional
returnOptional
spaceOptional
truncateAn array of Document
objects to be compressed.
A query string.
A Promise that resolves with an array of compressed Document
objects.
Optional
options: Partial<WatsonxInputRerank>Optional
options: Partial<WatsonxInputRerank>Static
is
Abstract method that must be implemented by any class that extends
BaseDocumentCompressor
. This method takes an array ofDocument
objects and a query string as parameters and returns a Promise that resolves with an array of compressedDocument
objects.