def validate_rerank_depth(cls, values):
        """Validate that rerank_depth is only set for hybrid search - RRF. """
        rerank_depth = values.get('rerankDepth')

        if rerank_depth and rerank_depth < 0:
            raise ValueError(f"rerankDepth cannot be negative.")

        return values
Validate that rerank_depth is only set for hybrid search - RRF. 
src/marqo/api/models/recommend_query.py