Module Values.KnowledgeBaseDocumentSource

Contains information about a document to ingest into a knowledge base and metadata to associate with it.

Sourcetype nonrec t = {
  1. metadata : DocumentMetadata.t option;
    (*

    Contains the metadata to associate with the document.

    *)
  2. content : DocumentContent.t;
    (*

    Contains the content of the document.

    *)
}
Sourceval context_ : string
Sourceval make : ?metadata:??? -> content:DocumentContent.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `String of Key.t | `Structure of (string * [> `Boolean of Boolean.t | `Double of NumberValue.t | `Enum of string | `List of [> `String of StringValue.t ] list | `String of StringValue.t ]) list ]) list ] list | `Structure of (string * [> `Enum of string | `String of S3ObjectUri.t | `Structure of (string * [> `Enum of string | `String of CustomDocumentIdentifierIdString.t | `Structure of (string * [> `Blob of ByteContentBlob.t | `String of ByteContentDocMimeTypeString.t ]) list ]) 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