def validate_vector_names(dataset: "FeedbackDatasetBase", names: typing.List[str]) -> None:
    """Validates that the vector names used in the filters are valid."""
    vectors_names = {vector.name: True for vector in dataset.vectors_settings}

    if not vectors_names:
        return

    for name in set(names):
        if not vectors_names.get(name):
            raise ValueError(
                f"The vector name `{name}` does not exist in the current `FeedbackDataset` in Argilla."
                f" The existing vector names are: {list(vectors_names.keys())}."
            )
Validates that the vector names used in the filters are valid.
argilla-v1/src/argilla_v1/client/feedback/dataset/helpers.py