Module Values.GenerationConfigurationSource

The configuration details for response generation based on retrieved text chunks.

Sourcetype nonrec t = {
  1. promptTemplate : PromptTemplate.t option;
    (*

    Contains the template for the prompt that's sent to the model for response generation.

    *)
  2. guardrailConfiguration : GuardrailConfiguration.t option;
    (*

    Contains configuration details for the guardrail.

    *)
  3. kbInferenceConfig : KbInferenceConfig.t option;
    (*

    Contains configuration details for inference for knowledge base retrieval and response generation.

    *)
  4. additionalModelRequestFields : AdditionalModelRequestFields.t option;
    (*

    Additional model parameters and corresponding values not included in the textInferenceConfig structure for a knowledge base. This allows you to provide custom model parameters specific to the language model being used.

    *)
}
Sourceval make : ?promptTemplate:??? -> ?guardrailConfiguration:??? -> ?kbInferenceConfig:??? -> ?additionalModelRequestFields:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Map of ([> `String of AdditionalModelRequestFieldsKey.t ] * [> `Structure of 'a list ]) list | `Structure of (string * [> `String of TextPromptTemplate.t | `Structure of (string * [> `Float of Temperature.t | `Integer of MaxTokens.t | `List of [> `String of RAGStopSequencesMemberString.t ] list ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t