AutoCompressor<T>
Models & Types · AiDotNet.RetrievalAugmentedGeneration.ContextCompression
Auto-compressor using rule-based text compression for document content reduction.
Inheritance: ContextCompressorBase<T> → AutoCompressor<T>
How It Works
Compresses documents by extracting the most relevant sentences based on keyword importance and position in the document. This is a production implementation that doesn’t require external ML models.
Constructors
| Constructor | Summary |
|---|---|
AutoCompressor(int maxOutputLength, double compressionRatio) |
Initializes a new instance of the AutoCompressor class. |