RedundancyRemovalCompressor
Models & Types ยท AiDotNet.PromptEngineering.Compression
Compressor that removes redundant phrases and verbose language from prompts.
Inheritance: PromptCompressorBase โ RedundancyRemovalCompressor
For Beginners
Removes wordy phrases without changing meaning.
Example:
How It Works
This compressor identifies and removes common patterns of redundant language such as filler phrases, unnecessary qualifiers, and verbose constructions. It preserves the semantic meaning while making the prompt more concise.
Constructors
| Constructor | Summary |
|---|---|
RedundancyRemovalCompressor(Func<string, int> tokenCounter) |
Initializes a new instance of the RedundancyRemovalCompressor class. |