Repository navigation
Expand file tree
/
Copy pathbaseline_metrics.json
More file actions
168 lines (168 loc) · 5.48 KB
/
Copy pathbaseline_metrics.json
File metadata and controls
168 lines (168 loc) · 5.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
{
"run_at": "2026-05-11T10:33:15",
"components": {
"sentiment": {
"engine": "vaderSentiment.SentimentIntensityAnalyzer (analyze_text_and_keywords)",
"metrics": {
"n": 200,
"macro_f1": 0.46607772821365057,
"accuracy": 0.55,
"per_class": {
"Positive": {
"precision": 0.4855072463768116,
"recall": 0.9852941176470589,
"f1": 0.6504854368932039,
"support": 68
},
"Neutral": {
"precision": 0.375,
"recall": 0.045454545454545456,
"f1": 0.08108108108108109,
"support": 66
},
"Negative": {
"precision": 0.7407407407407407,
"recall": 0.6060606060606061,
"f1": 0.6666666666666666,
"support": 66
}
}
}
},
"complaints": {
"engine": "categorize_complaints (substring match against CATEGORY_KEYWORDS)",
"metrics": {
"n": 100,
"macro_f1": 0.8196079941536634,
"micro_f1": 0.8466019417475729,
"subset_accuracy": 0.43,
"exact_match_rate": 0.43,
"hamming_loss": 0.09875,
"per_class": {
"service": {
"precision": 0.9814814814814815,
"recall": 1.0,
"f1": 0.9906542056074766,
"support": 53
},
"food_quality": {
"precision": 0.9565217391304348,
"recall": 0.7333333333333333,
"f1": 0.8301886792452831,
"support": 60
},
"hygiene": {
"precision": 0.7692307692307693,
"recall": 0.7692307692307693,
"f1": 0.7692307692307693,
"support": 13
},
"price": {
"precision": 0.8214285714285714,
"recall": 0.8518518518518519,
"f1": 0.8363636363636363,
"support": 27
},
"delivery": {
"precision": 0.43243243243243246,
"recall": 0.8421052631578947,
"f1": 0.5714285714285714,
"support": 19
},
"portion": {
"precision": 0.7428571428571429,
"recall": 1.0,
"f1": 0.8524590163934426,
"support": 26
},
"ambience": {
"precision": 1.0,
"recall": 0.9411764705882353,
"f1": 0.9696969696969697,
"support": 34
},
"variety": {
"precision": 0.5833333333333334,
"recall": 1.0,
"f1": 0.7368421052631579,
"support": 14
}
}
}
},
"rag": {
"engine": "RAGChat.answer_query -> _generate_answer -> _synthesize_intelligent_answer (template if/elif)",
"metrics": {
"n": 50,
"n_scored": 50,
"n_failed": 0,
"sentiment_dir_match": 0.74,
"top_category_hit": 0.98,
"rating_mention": 0.34,
"intent_addressed": 0.9,
"specificity_score_mean": 0.775,
"composite": 0.6863486842694567,
"per_intent": {
"quality": {
"n": 9,
"sentiment_dir_match": 0.8888888888888888,
"top_category_hit": 1.0,
"rating_mention": 1.0,
"intent_addressed": 1.0,
"specificity_score": 1.0
},
"service": {
"n": 9,
"sentiment_dir_match": 0.6666666666666666,
"top_category_hit": 1.0,
"rating_mention": 0.0,
"intent_addressed": 1.0,
"specificity_score": 0.7222222222222222
},
"price": {
"n": 8,
"sentiment_dir_match": 0.875,
"top_category_hit": 1.0,
"rating_mention": 0.125,
"intent_addressed": 0.375,
"specificity_score": 0.59375
},
"hygiene": {
"n": 8,
"sentiment_dir_match": 0.625,
"top_category_hit": 0.875,
"rating_mention": 0.0,
"intent_addressed": 1.0,
"specificity_score": 0.6875
},
"ambience": {
"n": 8,
"sentiment_dir_match": 0.625,
"top_category_hit": 1.0,
"rating_mention": 0.0,
"intent_addressed": 1.0,
"specificity_score": 0.6875
},
"recommend": {
"n": 8,
"sentiment_dir_match": 0.75,
"top_category_hit": 1.0,
"rating_mention": 0.875,
"intent_addressed": 1.0,
"specificity_score": 0.9375
}
},
"metric_definition": {
"sentiment_dir_match": "answer's pos/neg/mixed direction matches gold aggregate",
"top_category_hit": "answer references any of restaurant's top-3 complaint categories",
"rating_mention": "answer cites a numeric rating like '4.2/5'",
"intent_addressed": "answer uses vocabulary from question's intent group",
"specificity_score": "fraction of {rating, top_cat, intent, non-mixed_dir} signals present",
"composite": "geometric mean of the four binary rates"
},
"note": "Day-1 LLM judge unavailable in autonomous subprocess (ANTHROPIC_API_KEY not exposed). Structural metrics substituted; they are deterministic, reproducible, and directly probe the template-only pathology documented in docs/COMPONENT_AUDIT.md. Day 3 LLM-judged RAGAS will replace this once an interactive run is available."
}
}
},
"elapsed_sec": 810.301176
}