1 line
16 KiB
JSON
1 line
16 KiB
JSON
{"openapi":"3.1.0","info":{"title":"RAG Evaluation Dashboard API","description":"RAG 评估结果展示系统的 API 服务","version":"1.0.0"},"paths":{"/api/systems":{"get":{"tags":["systems"],"summary":"Get Systems","description":"获取所有系统列表\n\nReturns:\n 系统列表,包含 ID、名称、总分等信息","operationId":"get_systems_api_systems_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/systems/list":{"get":{"tags":["systems"],"summary":"Get System List","description":"获取系统 ID 列表(简化版)\n\nReturns:\n 系统 ID 列表","operationId":"get_system_list_api_systems_list_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/systems/{system_id}":{"get":{"tags":["systems"],"summary":"Get System Detail","description":"获取单个系统的详细数据\n\nArgs:\n system_id: 系统 ID (如 'zhtv2-text')\n\nReturns:\n 系统详细数据,包含各项指标统计","operationId":"get_system_detail_api_systems__system_id__get","parameters":[{"name":"system_id","in":"path","required":true,"schema":{"type":"string","title":"System Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/systems/{system_id}/metrics":{"get":{"tags":["systems"],"summary":"Get System Metrics","description":"获取系统的各项指标(简化版)\n\nArgs:\n system_id: 系统 ID\n\nReturns:\n 系统的各项指标均值","operationId":"get_system_metrics_api_systems__system_id__metrics_get","parameters":[{"name":"system_id","in":"path","required":true,"schema":{"type":"string","title":"System Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/systems/{system_id}/questions":{"get":{"tags":["systems"],"summary":"Get System Questions","description":"获取系统的各问题得分\n\nArgs:\n system_id: 系统 ID\n\nReturns:\n 各问题的详细得分","operationId":"get_system_questions_api_systems__system_id__questions_get","parameters":[{"name":"system_id","in":"path","required":true,"schema":{"type":"string","title":"System Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/comparison":{"get":{"tags":["comparison"],"summary":"Compare Systems","description":"对比多个系统\n\n返回各系统的整体得分和各项指标均值\n\nArgs:\n systems: 系统 ID 列表,如 [\"zhtv2-text\", \"coze-text\", \"zht-text\"]\n\nReturns:\n 对比结果","operationId":"compare_systems_api_comparison_get","parameters":[{"name":"systems","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"description":"要对比的系统ID列表","title":"Systems"},"description":"要对比的系统ID列表"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/comparison/metrics":{"get":{"tags":["comparison"],"summary":"Compare Metrics","description":"对比多个系统的特定指标\n\nArgs:\n systems: 系统 ID 列表\n metrics: 指标列表,如 [\"context_precision\", \"context_recall\"]\n\nReturns:\n 各系统在指定指标上的对比","operationId":"compare_metrics_api_comparison_metrics_get","parameters":[{"name":"systems","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"description":"要对比的系统ID列表","title":"Syste
|