|
|
@@ -174,16 +174,16 @@ def convert_pipeline_output_to_api_response(
|
|
|
|
|
|
matched_note = {
|
|
|
'note_id': note_id,
|
|
|
- 'note_title': note.get('note_card', {}).get('display_title', ''),
|
|
|
+ 'note_title': note.get('note_card', {}).get('display_title') or '',
|
|
|
'evaluation_score': round(evaluation_score, 3),
|
|
|
'max_similarity': round(max_similarity, 3),
|
|
|
'contribution': round(contribution, 3),
|
|
|
|
|
|
# 评估详情
|
|
|
- 'evaluation_reasoning': note_eval.get('评分说明', ''),
|
|
|
- 'key_matching_points': note_eval.get('关键匹配点', []),
|
|
|
- 'query_relevance': note_eval.get('Query相关性', ''),
|
|
|
- 'query_relevance_explanation': note_eval.get('Query相关性说明', ''),
|
|
|
+ 'evaluation_reasoning': note_eval.get('评分说明') or '',
|
|
|
+ 'key_matching_points': note_eval.get('关键匹配点') or [],
|
|
|
+ 'query_relevance': note_eval.get('Query相关性') or '',
|
|
|
+ 'query_relevance_explanation': note_eval.get('Query相关性说明') or '',
|
|
|
'matched_features': matched_features,
|
|
|
|
|
|
'note_data': note # 包含完整的搜索结果信息
|