Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
本站翻译于2026年5月3日,请放心食用🎉🎉🎉
[ # 'key' 是指标名称 # 'score' 是数值指标的值 {"key": string, "score": number}, # 'value' 是分类指标的值 {"key": string, "value": string}, ... # 你可以记录任意多个 ]
{results: [{ key: string, score: number }, ...]};
langsmith>=0.2.0
langsmith@0.1.32
def multiple_scores(outputs: dict, reference_outputs: dict) -> list[dict]: # 替换为真实的评估逻辑。 precision = 0.8 recall = 0.9 f1 = 0.85 return [ {"key": "precision", "score": precision}, {"key": "recall", "score": recall}, {"key": "f1", "score": f1}, ]