Merges the page content and metadata of multiple documents into a single document, or splits the documents using a custom splitter.
A list of Document objects to be merged and split.
An optional splitter object that implements the
split_documents method. If provided, the documents will be split using
this splitter. Defaults to None, in which case the documents are merged.