text_compressors
autogen.agentchat.contrib.capabilities.text_compressors.LLMLingua
LLMLingua
Compresses text messages using LLMLingua for improved efficiency in processing and response generation.
NOTE: The effectiveness of compression and the resultant token savings can vary based on the content of the messages
and the specific configurations used for the PromptCompressor.
Name | Description |
---|---|
prompt_compressor_kwargs | Type: dict Default: {‘model_name’ |
structured_compression | Type: bool Default: False |
Instance Methods
compress_text
Name | Description |
---|---|
text | Type: str |
**compression_params |