def test_hybrid_query_with_score_modifiers_with_wrong_ranking_method_fails(self):
        """
        Test that score modifiers can only be defined in a hybrid query if rankingMethod is `RRF`
        """
        for retrieval_method, ranking_method in [
            (RetrievalMethod.Tensor, RankingMethod.Lexical),
            (RetrievalMethod.Lexical, RankingMethod.Tensor),
            (RetrievalMethod.Tensor, RankingMethod.Tensor),
            (RetrievalMethod.Lexical, RankingMethod.Lexical)
        ]:
            with self.assertRaises(ValueError) as e:
                my_query = MarqoHybridQuery(
                    index_name="my_index",
                    limit=10,
                    score_modifiers=[
                        ScoreModifier(
                            field="my_field_1",
                            weight=1.0,
                            type=ScoreModifierType.Multiply
                        ),
                        ScoreModifier(
                            field="my_field_2",
                            weight=1.0,
                            type=ScoreModifierType.Add
                        )
                    ],
                    hybrid_parameters=HybridParameters(
                        retrievalMethod=retrieval_method,
                        rankingMethod=ranking_method
                    )
                )

            self.assertIn("only supported for hybrid search if 'rankingMethod' is 'RRF'", str(e.exception))

        Test that score modifiers can only be defined in a hybrid query if rankingMethod is `RRF`
        
tests/integ_tests/core/models/test_marqo_query.py