def evaluate_search_results(
    query: str,
    results: List[Dict[str, Any]],
    expected_content_keywords: Optional[List[str]] = None,
    minimum_score: float = 0.7,
    minimum_relevant_results: int = 3,
) -> Dict[str, Any]:
    """Convenience function to evaluate search results.

    Args:
        query: The search query
        results: List of search results
        expected_content_keywords: Keywords that should appear in good results
        minimum_score: Minimum acceptable quality score (0-1)
        minimum_relevant_results: Minimum number of relevant results expected

    Returns:
        Dict with evaluation metrics
    """
    evaluator = SearchResultEvaluator()
    return evaluator.evaluate(
        query=query,
        results=results,
        expected_content_keywords=expected_content_keywords,
        minimum_score=minimum_score,
        minimum_relevant_results=minimum_relevant_results,
    )
Convenience function to evaluate search results.

    Args:
        query: The search query
        results: List of search results
        expected_content_keywords: Keywords that should appear in good results
        minimum_score: Minimum acceptable quality score (0-1)
        minimum_relevant_results: Minimum number of relevant results expected

    Returns:
        Dict with evaluation metrics
    
backend/tests/helpers/llm_judge.py