def test_recommend_unstructuredInvalidTensorFields_failure(self):
        """
        Test that the recommender fails when the tensor fields are invalid for an unstructured index (no vectors).
        """
        index = self.unstructured_text_index
        self._populate_index(index)

        with self.assertRaisesStrict(InvalidArgumentError):
            self.recommender.recommend(
                index_name=index.name,
                documents=["1", "2"],
                tensor_fields=['invalid_field']
            )

        Test that the recommender fails when the tensor fields are invalid for an unstructured index (no vectors).
        
tests/integ_tests/core/search/test_recommender.py