def test_recommend_nlerpZeroMagnitudeVector_failure(self):
        """
        Test that the recommender fails when the interpolated vector has zero magnitude with NLERP
        """
        for index in [self.unstructured_text_index, self.structured_text_index]:
            with self.subTest(type=index.type):
                self._populate_index(index)

                original_nlerp = Nlerp().interpolate

                def interpolate(vectors, weights):
                    return original_nlerp(
                        [
                            [1, 0, 2, 0],
                            [-1, 0, -2, 0]
                        ],
                        [1, 1]
                    )

                with mock.patch.object(Nlerp, "interpolate", wraps=interpolate):
                    with self.assertRaisesStrict(InvalidArgumentError) as ex:
                        self.recommender.recommend(
                            index_name=index.name,
                            documents=["1", "2"],
                            interpolation_method=InterpolationMethod.NLERP,
                            exclude_input_documents=False,
                        )
                    self.assertIn('zero-magnitude vector', str(ex.exception))

        Test that the recommender fails when the interpolated vector has zero magnitude with NLERP
        
tests/integ_tests/core/search/test_recommender.py