Optional
chunkList of tokens that indicate the end of a chunk. The context will be split into chunks at these tokens.
Optional
Alpha
dropIf true, drop consecutive tokens that are forced. This is useful to avoid keeping too many forced tokens in a row.
Optional
forceIf true, reserve a digit for forced tokens.
Optional
forceList of tokens that must be kept in the compressed prompt. These tokens will not be removed regardless of their probability.
Float value between 0 and 1 indicating the rate of compression. 0.1 means 10% of the original tokens will be kept
Optional
targetTarget number of tokens to keep after compression.
If set, this will override the rate
option.
Optional
tokenHow to convert token probabilities to word probabilities. "mean" will average the probabilities of tokens in a word, "first" will take the probability of the first token in a word.
Options for compressing prompts.