def METHOD_NAME(self, nodes: Sequence[BaseNode], **insert_kwargs: Any) -> None:
    """Insert a document."""
    # TODO: allow to customize insert prompt
    inserter = TreeIndexInserter(
        self.index_struct,
        num_children=self.num_children,
        insert_prompt=self.insert_prompt,
        summary_prompt=self.summary_template,
        service_context=self._service_context,
        docstore=self._docstore,
    )
    inserter.insert(nodes)