File tree Expand file tree Collapse file tree
packages/sdk/server-ai/src/ldai/judge Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ async def evaluate(
5151 :param input_text: The input prompt or question that was provided to the AI
5252 :param output_text: The AI-generated response to be evaluated
5353 :param sampling_rate: Sampling rate (0-1) to determine if evaluation should be processed (defaults to 1)
54- :return: Evaluation result; ``sampled=True`` when the evaluation was sampled and run
54+ :return: The result of the judge evaluation.
5555 """
5656 judge_result = JudgeResult (judge_config_key = self ._ai_config .key )
5757
@@ -110,7 +110,7 @@ async def evaluate_messages(
110110 :param messages: Array of messages representing the conversation history
111111 :param response: The AI response to be evaluated
112112 :param sampling_ratio: Sampling ratio (0-1) to determine if evaluation should be processed (defaults to 1)
113- :return: Evaluation result; ``sampled=True`` when the evaluation was sampled and run
113+ :return: The result of the judge evaluation.
114114 """
115115 input_text = '\r \n ' .join ([msg .content for msg in messages ]) if messages else ''
116116 output_text = response .message .content
You can’t perform that action at this time.
0 commit comments