def add_vector_settings(self, vector_settings: VectorSettings) -> RemoteVectorSettings:
        """Adds a new vector settings to the current `FeedbackDataset` in Argilla.

        Args:
            vector_settings: the vector settings to add.

        Returns:
            The newly added vector settings to the current `FeedbackDataset` in Argilla.

        Raises:
            PermissionError: if the user does not have either `owner` or `admin` role.
            ValueError: if the vector settings with the given name already exists in the
                dataset in Argilla.
        """

        try:
            new_vector_settings = datasets_api_v1.add_vector_settings(
                client=self._client,
                id=self.id,
                title=vector_settings.title,
                name=vector_settings.name,
                dimensions=vector_settings.dimensions,
            ).parsed
        except AlreadyExistsApiError:
            raise ValueError(f"Vector settings with name {vector_settings.name!r} already exists.")
        return RemoteVectorSettings.from_api(new_vector_settings)
Adds a new vector settings to the current `FeedbackDataset` in Argilla.

        Args:
            vector_settings: the vector settings to add.

        Returns:
            The newly added vector settings to the current `FeedbackDataset` in Argilla.

        Raises:
            PermissionError: if the user does not have either `owner` or `admin` role.
            ValueError: if the vector settings with the given name already exists in the
                dataset in Argilla.
        
argilla-v1/src/argilla_v1/client/feedback/dataset/remote/dataset.py