def _generate_unstructured_marqo_index(self, schema_name: str) -> UnstructuredMarqoIndex:
        """This function converts the attribute self._index_request: UnstructuredMarqoIndexRequest
        into an instance of UnstructuredMarqoIndex.
        """
        return UnstructuredMarqoIndex(
            name=self._index_request.name,
            schema_name=schema_name,
            model=self._index_request.model,
            normalize_embeddings=self._index_request.normalize_embeddings,
            text_preprocessing=self._index_request.text_preprocessing,
            image_preprocessing=self._index_request.image_preprocessing,
            video_preprocessing=self._index_request.video_preprocessing,
            audio_preprocessing=self._index_request.audio_preprocessing,
            distance_metric=self._index_request.distance_metric,
            vector_numeric_type=self._index_request.vector_numeric_type,
            hnsw_config=self._index_request.hnsw_config,
            marqo_version=self._index_request.marqo_version,
            created_at=self._index_request.created_at,
            updated_at=self._index_request.updated_at,
            treat_urls_and_pointers_as_images=self._index_request.treat_urls_and_pointers_as_images,
            treat_urls_and_pointers_as_media=self._index_request.treat_urls_and_pointers_as_media,
            filter_string_max_length=self._index_request.filter_string_max_length,
        )
This function converts the attribute self._index_request: UnstructuredMarqoIndexRequest
        into an instance of UnstructuredMarqoIndex.
        
src/marqo/core/unstructured_vespa_index/unstructured_vespa_schema.py