Enum Summarizer.OverflowResolutionStrategy
- Namespace
- LMKit.TextGeneration
- Assembly
- LM-Kit.NET.dll
Specifies how to handle situations where the combined length of the input text and the completion tokens exceed the value handled by MaximumContextLength.
public enum Summarizer.OverflowResolutionStrategy
Fields
Truncate = 0
When the input text plus anticipated completion tokens exceed the value handled by MaximumContextLength, the summarizer will remove content from the end of the input until it fits.
RecursiveSummarize = 1
When the input length surpasses the MaximumContextLength, the summarizer will iteratively break the input into smaller segments, summarize each segment, then merge those segment summaries and repeat the process if necessary. This recursive summarization approach ensures that the final output fits within the defined context limits.
Reject = 2
If the input length surpasses the configured MaximumContextLength, the summarization process will be halted, resulting in an error or a refusal to proceed without summarization.