Values.IngestKnowledgeBaseDocumentsRequestSourceIngests 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.
type nonrec t = {knowledgeBaseId : Id.t;The unique identifier of the knowledge base to ingest the documents into.
*)dataSourceId : Id.t;The unique identifier of the data source connected to the knowledge base that you're adding documents to.
*)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.
*)documents : KnowledgeBaseDocuments.t;A list of objects, each of which contains information about the documents to add.
*)}val make :
?clientToken:??? ->
knowledgeBaseId:Id.t ->
dataSourceId:Id.t ->
documents:KnowledgeBaseDocuments.t ->
unit ->
tval 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 ]