def METHOD_NAME(self, **kwargs: Any):  # type: ignore[no-untyped-def]
    """Initializes the HNSW document index.
    Args:
        **kwargs: Variable length argument list for the HNSW index.
    Returns:
        tuple: The HNSW document index and its schema.
    """
    from docarray.index import HnswDocumentIndex
    schema = self._get_schema(**kwargs)
    index = HnswDocumentIndex[schema]  # type: ignore[valid-type]
    return index(work_dir=self._work_dir), schema