huseinzol05 commited on
Commit
ab3c367
Β·
1 Parent(s): 2472136

added more test set

Browse files
Files changed (1) hide show
  1. app.py +136 -4
app.py CHANGED
@@ -2,17 +2,21 @@ import gradio as gr
2
  import pandas as pd
3
  from css_html_js import custom_css
4
 
5
- TITLE = """<h1 align="center" id="space-title">πŸ‡²πŸ‡Ύ Malaysian RAG Embedding Leaderboard</h1>"""
6
 
7
  INTRODUCTION_TEXT = """
8
- πŸ“ The πŸ‡²πŸ‡Ύ Malaysian RAG Embedding Leaderboard aims to track, rank and evaluate Top-k retrieval using embedding models. All notebooks at https://github.com/mesolitica/embedding-benchmarks, feel free to submit your own score at https://huggingface.co/spaces/mesolitica/Malaysian-Embedding-Leaderboard/discussions with link to the notebook.
9
 
10
  ## Dataset
11
 
12
  πŸ“ˆ We evaluate models based on 2 datasets,
13
 
14
- 1. Research paper keyword `melayu` using Crossref, https://huggingface.co/datasets/mesolitica/malaysian-ultrachat/resolve/main/ultrachat-crossref-melayu-malay.jsonl
15
- 2. lom.agc.gov.my PDF files, https://huggingface.co/datasets/mesolitica/malaysian-ultrachat/resolve/main/ultrachat-lom-agc.jsonl
 
 
 
 
16
  """
17
 
18
  close_source = [
@@ -26,6 +30,22 @@ close_source = [
26
  'lom.agc.gov.my top-3': 0.2827981080408265,
27
  'lom.agc.gov.my top-5': 0.322504356484939,
28
  'lom.agc.gov.my top-10': 0.36855862584017923,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  }
30
  ]
31
 
@@ -40,6 +60,22 @@ open_source = [
40
  'lom.agc.gov.my top-3': 0.09932785660941,
41
  'lom.agc.gov.my top-5': 0.12969878018421707,
42
  'lom.agc.gov.my top-10': 0.1797361214836943,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  },
44
  {
45
  'model': '[mesolitica/llama2-embedding-1b-8k](https://huggingface.co/mesolitica/llama2-embedding-1b-8k)',
@@ -51,6 +87,22 @@ open_source = [
51
  'lom.agc.gov.my top-3': 0.1343042071197411,
52
  'lom.agc.gov.my top-5': 0.1717699775952203,
53
  'lom.agc.gov.my top-10': 0.23089370176748816,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  },
55
  {
56
  'model': '[mesolitica/mistral-embedding-191m-8k-contrastive](https://huggingface.co/mesolitica/mistral-embedding-191m-8k-contrastive)',
@@ -62,6 +114,22 @@ open_source = [
62
  'lom.agc.gov.my top-3': 0.09148618371919343,
63
  'lom.agc.gov.my top-5': 0.12758277321384118,
64
  'lom.agc.gov.my top-10': 0.18707991038088126,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
  },
66
  {
67
  'model': '[mesolitica/mistral-embedding-349m-8k-contrastive](https://huggingface.co/mesolitica/mistral-embedding-349m-8k-contrastive)',
@@ -73,6 +141,22 @@ open_source = [
73
  'lom.agc.gov.my top-3': 0.08849887976101568,
74
  'lom.agc.gov.my top-5': 0.12335075927308937,
75
  'lom.agc.gov.my top-10': 0.18558625840179238,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  },
77
  {
78
  'model': '[mesolitica/llama2-embedding-600m-8k-contrastive](https://huggingface.co/mesolitica/llama2-embedding-600m-8k-contrastive)',
@@ -84,6 +168,22 @@ open_source = [
84
  'lom.agc.gov.my top-3': 0.13754045307443366,
85
  'lom.agc.gov.my top-5': 0.18869803335822755,
86
  'lom.agc.gov.my top-10': 0.2745830221558377,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
  },
88
  {
89
  'model': '[mesolitica/llama2-embedding-1b-8k-contrastive](https://huggingface.co/mesolitica/llama2-embedding-1b-8k-contrastive)',
@@ -95,6 +195,22 @@ open_source = [
95
  'lom.agc.gov.my top-3': 0.239731142643764,
96
  'lom.agc.gov.my top-5': 0.3094349016679114,
97
  'lom.agc.gov.my top-10': 0.4134926562111028,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98
  },
99
  {
100
  'model': '[mesolitica/llama2-embedding-2b-8k-contrastive](https://huggingface.co/mesolitica/llama2-embedding-2b-8k-contrastive)',
@@ -106,6 +222,22 @@ open_source = [
106
  'lom.agc.gov.my top-3': 0.29113766492407267,
107
  'lom.agc.gov.my top-5': 0.3725416977844162,
108
  'lom.agc.gov.my top-10': 0.4886731391585761,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
  },
110
  ]
111
 
 
2
  import pandas as pd
3
  from css_html_js import custom_css
4
 
5
+ TITLE = """<h1 align="center" id="space-title">πŸ‡²πŸ‡Ύ Malaysian Embedding Leaderboard</h1>"""
6
 
7
  INTRODUCTION_TEXT = """
8
+ πŸ“ The πŸ‡²πŸ‡Ύ Malaysian Embedding Leaderboard aims to track, rank and evaluate Top-k retrieval using embedding models. All notebooks at https://github.com/mesolitica/embedding-benchmarks, feel free to submit your own score at https://huggingface.co/spaces/mesolitica/Malaysian-Embedding-Leaderboard/discussions with link to the notebook.
9
 
10
  ## Dataset
11
 
12
  πŸ“ˆ We evaluate models based on 2 datasets,
13
 
14
+ 1. Research paper keyword `melayu` using Crossref, **this test set is about RAG**, https://huggingface.co/datasets/mesolitica/malaysian-ultrachat/resolve/main/ultrachat-crossref-melayu-malay.jsonl
15
+ 2. lom.agc.gov.my PDF files, **this test set is about RAG**, https://huggingface.co/datasets/mesolitica/malaysian-ultrachat/resolve/main/ultrachat-lom-agc.jsonl
16
+ 3. b.cari.com.my, **this test set is about semantic similarity**, https://huggingface.co/datasets/mesolitica/embedding-pair-mining/resolve/main/b.cari.com.my-dataset-bge-test.jsonl
17
+ 3. c.cari.com.my, **this test set is about semantic similarity**, https://huggingface.co/datasets/mesolitica/embedding-pair-mining/resolve/main/c.cari.com.my-dataset-bge-test.jsonl
18
+ 3. Malay news, **this test set is about semantic similarity**, https://huggingface.co/datasets/mesolitica/embedding-pair-mining/resolve/main/malay-news-dataset-bge-test.jsonl
19
+ 3. Twitter, **this test set is about semantic similarity**, https://huggingface.co/datasets/mesolitica/embedding-pair-mining/resolve/main/twitter-dataset-bge-test.jsonl
20
  """
21
 
22
  close_source = [
 
30
  'lom.agc.gov.my top-3': 0.2827981080408265,
31
  'lom.agc.gov.my top-5': 0.322504356484939,
32
  'lom.agc.gov.my top-10': 0.36855862584017923,
33
+ 'b.cari.com.my top-1': 0.31621790857858484,
34
+ 'b.cari.com.my top-3': 0.6242955541640576,
35
+ 'b.cari.com.my top-5': 0.6944270507201001,
36
+ 'b.cari.com.my top-10': 0.7623669380087664,
37
+ 'c.cari.com.my top-1': 0.08380430943129637,
38
+ 'c.cari.com.my top-3': 0.21388202048746027,
39
+ 'c.cari.com.my top-5': 0.27861179795125396,
40
+ 'c.cari.com.my top-10': 0.3589720946661957,
41
+ 'malay-news top-1': 0.1386895659334196,
42
+ 'malay-news top-3': 0.2952593812492648,
43
+ 'malay-news top-5': 0.3745441712739678,
44
+ 'malay-news top-10': 0.4754734737089754,
45
+ 'twitter top-1': 0.22942090082094518,
46
+ 'twitter top-3': 0.4919014865764367,
47
+ 'twitter top-5': 0.5930774351009541,
48
+ 'twitter top-10': 0.7248724206789439,
49
  }
50
  ]
51
 
 
60
  'lom.agc.gov.my top-3': 0.09932785660941,
61
  'lom.agc.gov.my top-5': 0.12969878018421707,
62
  'lom.agc.gov.my top-10': 0.1797361214836943,
63
+ 'b.cari.com.my top-1': 0.3168440826549781,
64
+ 'b.cari.com.my top-3': 0.6881653099561679,
65
+ 'b.cari.com.my top-5': 0.7789605510331872,
66
+ 'b.cari.com.my top-10': 0.8453350031308704,
67
+ 'c.cari.com.my top-1': 0.08327446132108796,
68
+ 'c.cari.com.my top-3': 0.18730130695867184,
69
+ 'c.cari.com.my top-5': 0.23975626986930412,
70
+ 'c.cari.com.my top-10': 0.3140233133168492,
71
+ 'malay-news top-1': 0.14268909540054112,
72
+ 'malay-news top-3': 0.27584990001176335,
73
+ 'malay-news top-5': 0.3640748147276791,
74
+ 'malay-news top-10': 0.47112104458299026,
75
+ 'twitter top-1': 0.23496782782338585,
76
+ 'twitter top-3': 0.5200798757488352,
77
+ 'twitter top-5': 0.6416685156423342,
78
+ 'twitter top-10': 0.785888617705791,
79
  },
80
  {
81
  'model': '[mesolitica/llama2-embedding-1b-8k](https://huggingface.co/mesolitica/llama2-embedding-1b-8k)',
 
87
  'lom.agc.gov.my top-3': 0.1343042071197411,
88
  'lom.agc.gov.my top-5': 0.1717699775952203,
89
  'lom.agc.gov.my top-10': 0.23089370176748816,
90
+ 'b.cari.com.my top-1': 0.32623669380087666,
91
+ 'b.cari.com.my top-3': 0.6947401377582968,
92
+ 'b.cari.com.my top-5': 0.7902316844082655,
93
+ 'b.cari.com.my top-10': 0.8603631809643081,
94
+ 'c.cari.com.my top-1': 0.08689509007417874,
95
+ 'c.cari.com.my top-3': 0.19966442953020133,
96
+ 'c.cari.com.my top-5': 0.26086188625927237,
97
+ 'c.cari.com.my top-10': 0.3430766513599435,
98
+ 'malay-news top-1': 0.14610045876955652,
99
+ 'malay-news top-3': 0.285260557581461,
100
+ 'malay-news top-5': 0.3640748147276791,
101
+ 'malay-news top-10': 0.4775908716621574,
102
+ 'twitter top-1': 0.23053028622143332,
103
+ 'twitter top-3': 0.5342800088750832,
104
+ 'twitter top-5': 0.6498779676059463,
105
+ 'twitter top-10': 0.7925449301087197,
106
  },
107
  {
108
  'model': '[mesolitica/mistral-embedding-191m-8k-contrastive](https://huggingface.co/mesolitica/mistral-embedding-191m-8k-contrastive)',
 
114
  'lom.agc.gov.my top-3': 0.09148618371919343,
115
  'lom.agc.gov.my top-5': 0.12758277321384118,
116
  'lom.agc.gov.my top-10': 0.18707991038088126,
117
+ 'b.cari.com.my top-1': 0.2564182842830307,
118
+ 'b.cari.com.my top-3': 0.46900438321853477,
119
+ 'b.cari.com.my top-5': 0.5309956167814652,
120
+ 'b.cari.com.my top-10': 0.6036318096430808,
121
+ 'c.cari.com.my top-1': 0.05298481102084069,
122
+ 'c.cari.com.my top-3': 0.10005298481102085,
123
+ 'c.cari.com.my top-5': 0.12433768986223949,
124
+ 'c.cari.com.my top-10': 0.16990462734016248,
125
+ 'malay-news top-1': 0.1102223267850841,
126
+ 'malay-news top-3': 0.1672744383013763,
127
+ 'malay-news top-5': 0.20091753911304552,
128
+ 'malay-news top-10': 0.24973532525585226,
129
+ 'twitter top-1': 0.18437985356112713,
130
+ 'twitter top-3': 0.3536720656756157,
131
+ 'twitter top-5': 0.422897714666075,
132
+ 'twitter top-10': 0.5227424007100067,
133
  },
134
  {
135
  'model': '[mesolitica/mistral-embedding-349m-8k-contrastive](https://huggingface.co/mesolitica/mistral-embedding-349m-8k-contrastive)',
 
141
  'lom.agc.gov.my top-3': 0.08849887976101568,
142
  'lom.agc.gov.my top-5': 0.12335075927308937,
143
  'lom.agc.gov.my top-10': 0.18558625840179238,
144
+ 'b.cari.com.my top-1': 0.24953036944270507,
145
+ 'b.cari.com.my top-3': 0.4730745147150908,
146
+ 'b.cari.com.my top-5': 0.5341264871634315,
147
+ 'b.cari.com.my top-10': 0.5970569818409518,
148
+ 'c.cari.com.my top-1': 0.057400211939244085,
149
+ 'c.cari.com.my top-3': 0.10588131402331331,
150
+ 'c.cari.com.my top-5': 0.13149063935005298,
151
+ 'c.cari.com.my top-10': 0.17582126457082303,
152
+ 'malay-news top-1': 0.11375132337372074,
153
+ 'malay-news top-3': 0.17362663216092225,
154
+ 'malay-news top-5': 0.20574050111751557,
155
+ 'malay-news top-10': 0.26149864721797433,
156
+ 'twitter top-1': 0.18105169735966276,
157
+ 'twitter top-3': 0.3547814510761038,
158
+ 'twitter top-5': 0.42666962502773464,
159
+ 'twitter top-10': 0.5229642777901042,
160
  },
161
  {
162
  'model': '[mesolitica/llama2-embedding-600m-8k-contrastive](https://huggingface.co/mesolitica/llama2-embedding-600m-8k-contrastive)',
 
168
  'lom.agc.gov.my top-3': 0.13754045307443366,
169
  'lom.agc.gov.my top-5': 0.18869803335822755,
170
  'lom.agc.gov.my top-10': 0.2745830221558377,
171
+ 'b.cari.com.my top-1': 0.254539762053851,
172
+ 'b.cari.com.my top-3': 0.4815278647463995,
173
+ 'b.cari.com.my top-5': 0.5497808390732624,
174
+ 'b.cari.com.my top-10': 0.628052598622417,
175
+ 'c.cari.com.my top-1': 0.05183680678205581,
176
+ 'c.cari.com.my top-3': 0.09766866831508302,
177
+ 'c.cari.com.my top-5': 0.12398445778876722,
178
+ 'c.cari.com.my top-10': 0.16566584245849522,
179
+ 'malay-news top-1': 0.11657452064463004,
180
+ 'malay-news top-3': 0.18986001646865075,
181
+ 'malay-news top-5': 0.22338548406069875,
182
+ 'malay-news top-10': 0.2812610281143395,
183
+ 'twitter top-1': 0.1961393388063013,
184
+ 'twitter top-3': 0.393831817173286,
185
+ 'twitter top-5': 0.48080763257155534,
186
+ 'twitter top-10': 0.5977368537830042,
187
  },
188
  {
189
  'model': '[mesolitica/llama2-embedding-1b-8k-contrastive](https://huggingface.co/mesolitica/llama2-embedding-1b-8k-contrastive)',
 
195
  'lom.agc.gov.my top-3': 0.239731142643764,
196
  'lom.agc.gov.my top-5': 0.3094349016679114,
197
  'lom.agc.gov.my top-10': 0.4134926562111028,
198
+ 'b.cari.com.my top-1': 0.29805886036318097,
199
+ 'b.cari.com.my top-3': 0.5795241077019412,
200
+ 'b.cari.com.my top-5': 0.6581089542892924,
201
+ 'b.cari.com.my top-10': 0.7366938008766437,
202
+ 'c.cari.com.my top-1': 0.06720240197809961,
203
+ 'c.cari.com.my top-3': 0.13678912045213706,
204
+ 'c.cari.com.my top-5': 0.1750264924055104,
205
+ 'c.cari.com.my top-10': 0.22818791946308725,
206
+ 'malay-news top-1': 0.12892600870485826,
207
+ 'malay-news top-3': 0.20785789907069757,
208
+ 'malay-news top-5': 0.24808846018115516,
209
+ 'malay-news top-10': 0.32466768615457003,
210
+ 'twitter top-1': 0.2167739072553805,
211
+ 'twitter top-3': 0.4453072997559352,
212
+ 'twitter top-5': 0.5387175504770357,
213
+ 'twitter top-10': 0.6685156423341468,
214
  },
215
  {
216
  'model': '[mesolitica/llama2-embedding-2b-8k-contrastive](https://huggingface.co/mesolitica/llama2-embedding-2b-8k-contrastive)',
 
222
  'lom.agc.gov.my top-3': 0.29113766492407267,
223
  'lom.agc.gov.my top-5': 0.3725416977844162,
224
  'lom.agc.gov.my top-10': 0.4886731391585761,
225
+ 'b.cari.com.my top-1': 0.30713838447088293,
226
+ 'b.cari.com.my top-3': 0.6361928616155291,
227
+ 'b.cari.com.my top-5': 0.7213525360050094,
228
+ 'b.cari.com.my top-10': 0.8015028177833438,
229
+ 'c.cari.com.my top-1': 0.07444365948428117,
230
+ 'c.cari.com.my top-3': 0.15745319675026492,
231
+ 'c.cari.com.my top-5': 0.19931119745672907,
232
+ 'c.cari.com.my top-10': 0.26960438007771104,
233
+ 'malay-news top-1': 0.13633690154099518,
234
+ 'malay-news top-3': 0.23056111045759323,
235
+ 'malay-news top-5': 0.28726032231502174,
236
+ 'malay-news top-10': 0.3717209740030585,
237
+ 'twitter top-1': 0.22498335921899268,
238
+ 'twitter top-3': 0.48679831373419125,
239
+ 'twitter top-5': 0.5850898602174396,
240
+ 'twitter top-10': 0.7333037497226537,
241
  },
242
  ]
243