We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d80afe commit 13b38fdCopy full SHA for 13b38fd
1 file changed
packages/sdk/server-ai/src/ldai/judge/__init__.py
@@ -117,11 +117,10 @@ async def evaluate_messages(
117
When ``None`` (the default), falls back to ``self.sample_rate``.
118
:return: The result of the judge evaluation.
119
"""
120
- effective_rate = sampling_ratio if sampling_ratio is not None else self.sample_rate
121
input_text = '\r\n'.join([msg.content for msg in messages]) if messages else ''
122
output_text = response.message.content
123
124
- return await self.evaluate(input_text, output_text, effective_rate)
+ return await self.evaluate(input_text, output_text, sampling_ratio)
125
126
def get_ai_config(self) -> AIJudgeConfig:
127
0 commit comments