def test_score_modifiers_validation_with_rrf(self):
        """Test that score_modifiers is allowed with RRF ranking method."""
        score_modifier = ScoreModifier(
            field="test_field",
            weight=1.5,
            type=ScoreModifierType.Multiply
        )
        
        hybrid_parameters = HybridParameters(
            rankingMethod=RankingMethod.RRF
        )
        
        # Should work with RRF
        query = MarqoHybridQuery(
            index_name="test_index",
            limit=10,
            or_phrases=["phrase1"],
            and_phrases=["phrase2"],
            hybrid_parameters=hybrid_parameters,
            score_modifiers=[score_modifier]
        )
        self.assertEqual([score_modifier], query.score_modifiers)
Test that score_modifiers is allowed with RRF ranking method.
tests/unit_tests/marqo/core/models/test_marqo_query.py