Module Values.IngestKnowledgeBaseDocumentsRequestSource

Ingests documents directly into the knowledge base that is connected to the data source. The dataSourceType specified in the content for each document must match the type of the data source that you specify in the header. For more information, see Ingest changes directly into a knowledge base in the Amazon Bedrock User Guide.

Sourcetype nonrec t = {
  1. knowledgeBaseId : Id.t;
    (*

    The unique identifier of the knowledge base to ingest the documents into.

    *)
  2. dataSourceId : Id.t;
    (*

    The unique identifier of the data source connected to the knowledge base that you're adding documents to.

    *)
  3. clientToken : ClientToken.t option;
    (*

    A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.

    *)
  4. documents : KnowledgeBaseDocuments.t;
    (*

    A list of objects, each of which contains information about the documents to add.

    *)
}
Sourceval context_ : string
Sourceval make : ?clientToken:??? -> knowledgeBaseId:Id.t -> dataSourceId:Id.t -> documents:KnowledgeBaseDocuments.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `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 ] list | `String of Id.t ]) 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