Added chunking functionality to AddDocumentRequest.