def METHOD_NAME(self, collection_name):
    # Create IVF_FLAT index on milvus collection
    try:
        self.set_collection(collection_name)
        default_index = {"metric_type": METRIC_TYPE, "index_type": "IVF_FLAT", "params": {"nlist": 2048}}
        status = self.collection.METHOD_NAME(field_name="embedding", index_params=default_index)
        if not status.code:
            LOGGER.debug(
                f"Successfully create index in collection:{collection_name} with param:{default_index}")
            return status
        else:
            raise Exception(status.message)
    except Exception as e:
        LOGGER.error(f"Failed to create index: {e}")
        sys.exit(1)