SelectiveContextCompressor<T>
Models & Types ยท AiDotNet.RetrievalAugmentedGeneration.ContextCompression
Selective context compressor that picks the most relevant sentences based on the query.
Inheritance: ContextCompressorBase<T> โ SelectiveContextCompressor<T>
How It Works
Analyzes retrieved documents and selectively extracts only the sentences most relevant to the query, reducing context length while preserving important information.
Constructors
| Constructor | Summary |
|---|---|
SelectiveContextCompressor(int maxSentences, T relevanceThreshold) |
Initializes a new instance of the SelectiveContextCompressor class. |