Module Values.RetrieveAndGenerateConfigurationSource

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

Sourcetype nonrec t = {
  1. type_ : RetrieveAndGenerateType.t;
    (*

    The type of resource that contains your data for retrieving information and generating responses. If you choose to use EXTERNAL_SOURCES, then currently only Claude 3 Sonnet models for knowledge bases are supported.

    *)
  2. knowledgeBaseConfiguration : KnowledgeBaseRetrieveAndGenerateConfiguration.t option;
    (*

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

    *)
  3. externalSourcesConfiguration : ExternalSourcesRetrieveAndGenerateConfiguration.t option;
    (*

    The configuration for the external source wrapper object in the retrieveAndGenerate function.

    *)
}
Sourceval context_ : string
Sourceval make : ?knowledgeBaseConfiguration:??? -> ?externalSourcesConfiguration:??? -> type_:RetrieveAndGenerateType.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Structure of (string * [> `List of [> `Structure of (string * [> `Enum of string | `Structure of (string * [> `Blob of ByteContentBlob.t | `String of KBS3Uri.t ]) list ]) list ] list | `String of KnowledgeBaseId.t | `Structure of (string * [> `Map of ([> `String of AdditionalModelRequestFieldsKey.t ] * [> `Structure of 'a list ]) list | `Structure of (string * Awso.Botodata.value) 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