Return type for the LLMLingua-2 factory functions. Use promptCompressor to compress prompts.
promptCompressor
The configuration used for the model.
The model used for token classification.
Instance of LLMLingua-2 PromptCompressor.
PromptCompressorLLMLingua2
The tokenizer used for tokenization.
Return type for the LLMLingua-2 factory functions. Use
promptCompressor
to compress prompts.