microsoft / LLMLingua

To speed up LLMs' inference and enhance LLM's perceive of key information, compress the prompt and KV-Cache, which achieves up to 20x compression with minimal performance loss.
https://llmlingua.com/
MIT License
4.27k stars 228 forks source link

Feature (LLMLingua): Add Docstring for PromptCompressor Class #69

Closed SiyunZhao closed 6 months ago

SiyunZhao commented 6 months ago

This pull request introduces detailed docstrings for the PromptCompressor class and its primary method compress_prompt in our codebase. These additions are intended to enhance the understandability and maintainability of our prompt compression feature. #51