Interface ChatModelConfig.LengthPenaltyConfig

Enclosing interface:
ChatModelConfig

public static interface ChatModelConfig.LengthPenaltyConfig
  • Method Summary

    Modifier and Type
    Method
    Description
    Represents the factor of exponential decay.
    A number of generated tokens after which this should take effect.
  • Method Details

    • decayFactor

      Optional<Double> decayFactor()
      Represents the factor of exponential decay. Larger values correspond to more aggressive decay.

      Possible values: > 1

    • startIndex

      Optional<Integer> startIndex()
      A number of generated tokens after which this should take effect.

      Possible values: ≥ 0