Module Values.ExternalSourcesGenerationConfigurationSource

The response generation configuration of the external source wrapper object.

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

    Contains the template for the prompt for the external source wrapper object.

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

    Configuration details for the guardrail.

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

    Configuration details for inference when using RetrieveAndGenerate to generate responses while using an external source.

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

    Additional model parameters and their corresponding values not included in the text inference configuration for an external source. Takes in 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