OptionalbatchOptionalcleanup?: CleanupModeThe cleanup mode to use. Can be "full", "incremental" or undefined.
OptionalcleanupBatch size to use when cleaning up documents.
OptionalforceForce update documents even if they are present in the record manager. Useful if you are re-indexing with updated embeddings.
OptionalsourceOptional key that helps identify the original source of the document. Must either be a string representing the key of the source in the metadata or a function that takes a document and returns a string representing the source. Required when cleanup is incremental.
The number of documents to index in one batch.