def test_invalid_custom_vector_field_content(self):
        """
        Add a document with a custom vector field with invalid content/embedding/format
        """
        for index in self.indexes:
            with self.subTest(f"Index: {index.name}, type: {index.type}"):
                test_cases = [
                    # Wrong vector length
                    {"content": "custom content is here!!", "vector": [1.0, 1.0, 1.0]},
                    # Wrong content type
                    {"content": 12345, "vector": self.random_vector_1},
                    # Wrong vector type inside list (even if correct length)
                    {"content": "custom content is here!!", "vector": self.random_vector_1[:-1] + ["NOT A FLOAT"]},
                    # Field that shouldn't be there
                    {"content": "custom content is here!!", "vector": self.random_vector_1, "extra_field": "blah"},
                    # No vector
                    {"content": "custom content is here!!"},
                    # Nested dict inside custom vector content
                    {
                        "content": {
                            "content": "custom content is here!!",
                            "vector": self.random_vector_1
                        },
                        "vector": self.random_vector_1
                    },
                ]

                for case in test_cases:
                    with self.subTest(f"Case: {case}"):
                        with self.assertRaises(pydantic.ValidationError):
                            res = self.add_documents(
                                config=self.config, add_docs_params=AddDocsParams(
                                    index_name=index.name,
                                    docs=[{
                                        "_id": "0",
                                        "my_custom_vector": case
                                    }],
                                    device="cpu",
                                    mappings=self.mappings if isinstance(index, UnstructuredMarqoIndex) else None,
                                    tensor_fields=["my_custom_vector"] if isinstance(index, UnstructuredMarqoIndex) else None
                                )
                            )

        Add a document with a custom vector field with invalid content/embedding/format
        
tests/integ_tests/tensor_search/integ_tests/test_custom_vector_field.py