AdnanElAssadi commited on
Commit
90f0bd8
·
verified ·
1 Parent(s): b181141

Upload 3 files

Browse files
Files changed (3) hide show
  1. AskUbuntuDupQuestions_human_eval.json +787 -0
  2. README.md +16 -14
  3. gradio_app.py +256 -0
AskUbuntuDupQuestions_human_eval.json ADDED
@@ -0,0 +1,787 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_type": "reranking",
3
+ "task_name": "AskUbuntuDupQuestions",
4
+ "instructions": "Rank the candidate documents based on their relevance to the query. Assign rank 1 to the most relevant document, 2 to the second most relevant, and so on.",
5
+ "samples": [
6
+ {
7
+ "id": "test_query327",
8
+ "query": "how to avoid opening duplicate files in new windows in gedit ?",
9
+ "candidates": [
10
+ "is there a way to open a text file in an already open instance of gedit ?",
11
+ "configure gedit to always open in new window",
12
+ "how to open the same document in evince/gedit multiple times ?",
13
+ "gedit - files in file browser i never opened",
14
+ "how to configure nautilus so when a cd/dvd/usb is inserted it does not open another window",
15
+ "using gnome-open to open pdf files",
16
+ "how to open the existing file explorer and not a new one",
17
+ "how can i change the default text editor from gedit to vim ?",
18
+ "open another terminal window with the same ssh session as original window",
19
+ "gedit messes up file names in headline",
20
+ "how to open a downloaded file with a running instance",
21
+ "gedit - background mouse wheel",
22
+ "opening a non-utf8 encoded text file",
23
+ "nautilus - how to duplicate the current window",
24
+ "attach one window to another window in ubuntu",
25
+ "gedit open everything in tabs",
26
+ "i want to see if a file is opened with gedit . is it possible ?",
27
+ "gedit opens new windows with two tabs",
28
+ "how to get yelp to open the docs ?",
29
+ "sublime text 2 move to current workspace"
30
+ ]
31
+ },
32
+ {
33
+ "id": "test_query57",
34
+ "query": "ubuntu 12.04 installer does not see windows already installed on my computer",
35
+ "candidates": [
36
+ "installer does n't see windows 8.1 installed and propose to erase the disk",
37
+ "ubuntu 12.04 installer not detecting windows 7",
38
+ "can not boot into windows 7 after installing 12.04",
39
+ "ubuntu installer thinks my drive is empty , does not see windows paritions",
40
+ "why does n't the ubuntu installer recognize i have windows 8 installed ?",
41
+ "ubuntu 12.04 does not detect already installed windows 7",
42
+ "ubuntu installer does not see windows 8 after changing partitions",
43
+ "ubuntu 13.10 installer not recognizing my windows 8.1 partitions",
44
+ "ubuntu 12.04 lts installer doesnt see windows 7",
45
+ "dual boot installation",
46
+ "getting a black screen after booting into ubuntu 12.04 lts release following installation via windows installer . i have windows 7 installed already",
47
+ "running installed windows programs",
48
+ "ubuntu 12.04 window installer edition ?",
49
+ "will removing windows also remove wubi ?",
50
+ "installing ubuntu 14.04 over 12.04",
51
+ "installing ubuntu v12 on computer running windows me",
52
+ "why does my windows xp/ubuntu dual boot not let me select an operating system ?",
53
+ "re-installing ubuntu 12.04 using windows installer",
54
+ "`` windows installer ubuntu '' from windows 8/8.1",
55
+ "why does my computer only boot into windows xp ?"
56
+ ]
57
+ },
58
+ {
59
+ "id": "test_query12",
60
+ "query": "when is precise pangolin being released ?",
61
+ "candidates": [
62
+ "precise pangolin base installation , media change requested , using dvd",
63
+ "update fails after checking all settings for system updates",
64
+ "external usb hd does n't show up on 'sudo fdisk -l ' on one ubuntu , shows up on another ( both ubuntu 12.04 lts , 'precise pangolin ' )",
65
+ "where is the alpha 1 release of kubuntu 12.04 ?",
66
+ "sqlite3 on precise pangolin : installed but not found ?",
67
+ "boot problem in ubuntu precise pangolin 12.04",
68
+ "help needed on installation of ubuntu server ( precise pagolin )",
69
+ "when will the next lts version of lubuntu be released ?",
70
+ "graphics problems on asus eee 1101 ha , precise pangolin",
71
+ "how to install older ruby version on ubuntu precise pangolin ?",
72
+ "lxc on precise with linux-image-generic-lts-raring ... do i get the full namespace support ?",
73
+ "why is a lts release not using the extended support version of thunderbird ?",
74
+ "12.04 'precise pangolin ' disfunctional after upgrade from 10.04 'lucid lynx '",
75
+ "why is there no option to install alongside win7 with the 12.04 lts cd ?",
76
+ "can not launch .jnlp file in precise pangolin",
77
+ "fatal bug in precise pangolin",
78
+ "lost wi-fi after ubuntu 12.10 ( precise pangolin ) upgrade",
79
+ "what kind of animal is a pangolin as in `` precise pangolin '' ?",
80
+ "wi-fi is not working for ubuntu 12.04 ( precise pangolin )",
81
+ "software update corrects error"
82
+ ]
83
+ },
84
+ {
85
+ "id": "test_query140",
86
+ "query": "could n't update ubuntu 8.04 , apt-get update fails",
87
+ "candidates": [
88
+ "upgrade from 8.04 to 10.04 , `` no release found ''",
89
+ "installing medibuntu fails",
90
+ "update manager fails , apt-get update stops at 93 %",
91
+ "ubuntu 14.0.4 apt-get update fails for any installs and upgrades in trusty",
92
+ "sudo apt-get update fails",
93
+ "upgrade subversion to 1.7 on 8.04",
94
+ "ubuntu apt-get update fails",
95
+ "automatic security update fails by unmet dependency",
96
+ "apt-get update ; install apache2 : works on 1 vm , fails on another , with the same mirror config : [ not candidate version ]",
97
+ "could n't find package dd",
98
+ "update problem using `` apt-get update ''",
99
+ "apt-get update fails to find some mirrors",
100
+ "ubuntu 14.04 failed to update w : failed to fetch cdrom:",
101
+ "ubuntu13.04 64-bit software update fails",
102
+ "apt-get update fails to fetch files , \u201ctemporary failure resolving \u2026\u201d error",
103
+ "i have ubuntu server 11.10 64-bit . updates were working but now fails every time after apt-get update",
104
+ "i cant update ubuntu 12.10",
105
+ "apt-get update fails after upgrade",
106
+ "upgrading nginx on raring ringtail",
107
+ "'apt-get update ' fails when using proxy"
108
+ ]
109
+ },
110
+ {
111
+ "id": "test_query125",
112
+ "query": "raring ringtail upgrade",
113
+ "candidates": [
114
+ "upgraded to raring ringtail 13.04 , but not every package did ?",
115
+ "full changelog of updated packages for ubuntu releases ?",
116
+ "how to install ubuntu 13.04 without a cd or usb ?",
117
+ "i ca n't upgrade to raring ringtail ; is it because of the traffic ?",
118
+ "does ubuntu 13 raring ringtail fix the samsung brick issue ?",
119
+ "upgrade ubuntu 13.04 to 13.10 stable",
120
+ "thunderbird & unity integration",
121
+ "troubles in raring ringtail",
122
+ "what is the release date of ubuntu 13.04 ( raring ringtail ) ?",
123
+ "can not upgrade ubuntu server to 13.04 using command line",
124
+ "lxc on precise with linux-image-generic-lts-raring ... do i get the full namespace support ?",
125
+ "why upgrade to 12.10 is not shown",
126
+ "should i manually fix the distribution entry after os upgrade ?",
127
+ "compiling rtl8192cu driver for edimax ew-7811un for ubuntu 13.04 ( raring ringtail )",
128
+ "`` do-release-upgrade -d '' does n't prompt for update",
129
+ "e : the value 'raring-updates ' is invalid for apt : :default-release as such a release is not available in the sources",
130
+ "why ca n't i upgrade to ubuntu 13.04 using update manager ?",
131
+ "no download for 13.04 raring ringtail",
132
+ "upgrading nginx on raring ringtail",
133
+ "ubuntu 13.04 and issues with gnome shell 3.8"
134
+ ]
135
+ },
136
+ {
137
+ "id": "test_query114",
138
+ "query": "dell inspiron 1525 , upgraded to 12.04 and have lost wireless internet connection",
139
+ "candidates": [
140
+ "can not connect wireless internet with 12.10 on dell inspiron 1525",
141
+ "my wireless wo n't connect in ubuntu 12.04 lts , newly installed on my dell inspiron 1525",
142
+ "i ca n't connect to internet at all in ubuntu 12.04",
143
+ "lost internet connection when upgraded from 12.04 to 12.10",
144
+ "unable to connect to wireless network on dell inspiron 1525",
145
+ "dell inspiron wifi issues",
146
+ "no wireless with dell inspiron 1501",
147
+ "i just upgraded to 12.10 lost my side bar",
148
+ "the system is running in low graphics mode error on dell inspiron.1525",
149
+ "wireless internet connection randomly disconnects in dell inspiron n5110",
150
+ "wireless internet connection so slow after upgrade to 11.10",
151
+ "dell inspiron 1525 laptop does not recognise bluetooth",
152
+ "hibernate on dell inspiron 1525",
153
+ "during installation , do i need an ethernet cord to connect to the internet ?",
154
+ "suspend does n't work on dell inspiron 1525",
155
+ "slow internet with a dell inspiron 1525",
156
+ "bcm 4313 lost connection on ubuntu 13.04",
157
+ "no hardware acceleration/graphics driver for dell inspiron 1525",
158
+ "how to share my laptop internet connection with android sony xperia tipo ?",
159
+ "my dell inspiron 8600 wifi wo n't work"
160
+ ]
161
+ },
162
+ {
163
+ "id": "test_query71",
164
+ "query": "can you install ubuntu from the hard disk ?",
165
+ "candidates": [
166
+ "how do i install ubuntu on an external hard disk ?",
167
+ "install windows 8 ( on secondary hard disk ) on an ubuntu machine ( on primary hard disk )",
168
+ "ubuntu installation on external hard disk drive",
169
+ "how can i boot a live system from a hard disk and then install to the same drive ?",
170
+ "is it possible to install software from hard disk ?",
171
+ "can you use a ubuntu 12.10 desktop install disk like an o.e.m . disk ?",
172
+ "copying files from hard disk to liveusb",
173
+ "ca n't install any linux distro",
174
+ "is it possible to clone an ubuntu partition to an iso ?",
175
+ "ubuntu transfer from external hard disk",
176
+ "ca n't get ubuntu 13.10 64bit to install",
177
+ "why ca n't i load bios or boot to anything but ubuntu ?",
178
+ "how to mount a virtual hard disk ?",
179
+ "will the pc boot from the dvd and install ubuntu on an empty hard disk ?",
180
+ "install with external disk drive",
181
+ "will installing ubuntu convert my hard disk to a dynamic disk ?",
182
+ "if format my system and install ubuntu as only os what will to happen hard disk drives ?",
183
+ "installing ubuntu from usb pendrive on hard disk",
184
+ "why will ubuntu 12.04 boot but not install ?",
185
+ "installation completed but not saved to hard disk"
186
+ ]
187
+ },
188
+ {
189
+ "id": "test_query52",
190
+ "query": "update manager showing for available updates , but not letting me to update",
191
+ "candidates": [
192
+ "update manager problem [ requires installation of untrusted packages ]",
193
+ "`` requires to install untrusted updates '' error in update manager",
194
+ "my system update requires installation of untrusted packages",
195
+ "updates do n't install because of `` untrusted packages ''",
196
+ "how to solve the issue `` requires installation of untrusted packages ''",
197
+ "update manager wo n't install from un-authenticated sources",
198
+ "how to install important updates via update manager after a large gap of period ?",
199
+ "what is the equivalent terminal command of update manager ?",
200
+ "update manager offers 900+ updates under partial upgrade mode",
201
+ "make update-manager ignore mozilla firefox updates",
202
+ "updating 12.04 for the first time",
203
+ "what programs and packages are updated by the update manager ?",
204
+ "update manager has managed to hang itself while updating ( 13.04 to 13.10 )",
205
+ "software only partially updated on ubuntu 14.04",
206
+ "update-manager does not show all updates",
207
+ "how can i get update manager to check & notify for daily updates",
208
+ "disabling packages from the update manager",
209
+ "how do i force apt-get to update the state of package versions ?",
210
+ "update manager downloaded updates but ca n't install them",
211
+ "why ca n't update manager find any updates ?"
212
+ ]
213
+ },
214
+ {
215
+ "id": "test_query346",
216
+ "query": "rss torrent software",
217
+ "candidates": [
218
+ "which is the most up to date and modern rss feed reader ?",
219
+ "is there any command-line rss feed file grabber ?",
220
+ "i need someone to go through my conky scripts and correct my mistakes",
221
+ "using rss in qbittorrent",
222
+ "simple rss feed manipulation software",
223
+ "installing tt-rss : files ar n't where they ought to be",
224
+ "how to add authenticated podcast feed to rhythmbox",
225
+ "podcast subscription in banshee",
226
+ "package other than calibre for converting an rss feed 's entries to an ebook",
227
+ "how to add bbc podcasts to rhythmbox ?",
228
+ "when adding a magnet link in deluge how can i choose which files in the torrent to download ?",
229
+ "is there an rss feed of ubuntu release torrent files",
230
+ "how do i set deluge to open .torrent files ?",
231
+ "is there a ticker application available ?",
232
+ "exporting thunderbird rss feeds to liferea in ubuntu",
233
+ "deluge autoadd plugin is n't working for me",
234
+ "how do i add an rss feed in evolution ?",
235
+ "liferea plain text downloads ?",
236
+ "how do i configure deluge bittorrent client ?",
237
+ "how do i get evolution mail 's rss to work ?"
238
+ ]
239
+ },
240
+ {
241
+ "id": "test_query279",
242
+ "query": "how do i install the driver for a microsoft lifecam vx-3000 ?",
243
+ "candidates": [
244
+ "how can i get my microsoft lifecam vx-1000 webcam microphone to work ?",
245
+ "microsoft lifecam vx-2000 does n't work anymore in cheese",
246
+ "how do i get my webcam to work",
247
+ "how do i get my lifecam vx-7000 working on ubuntu 13.10 ?",
248
+ "driver for a ms lifecam",
249
+ "how to install a nvidia driver for 11.10",
250
+ "fry 's fr-300 usb wlan driver",
251
+ "how do i install drivers for the panasonic mb1900cx all-in-one printer/scanner ?",
252
+ "webcam keeps blinking for no reason",
253
+ "nvidia driver update causes unbootable system",
254
+ "webcam not `` detected '' - ubuntu 12.04",
255
+ "how to install rndis driver",
256
+ "how do i install drivers for an intel hd graphics ?",
257
+ "how to install sound driver",
258
+ "how do i install the intel hd 3000 video driver ?",
259
+ "i can not activate my ati/amd proprietary fglrx graphics driver ( post-release updates )",
260
+ "ubuntu 12.04 disk installs lts on desktop ? ? wrong display drivers",
261
+ "webcam not working in 13.04",
262
+ "how do i install driver for the linksys wusb6300 ?",
263
+ "microsoft lifecam hd-3000 slows down login"
264
+ ]
265
+ },
266
+ {
267
+ "id": "test_query44",
268
+ "query": "from where i download kerenl source code for version 3.8.0-29-generic",
269
+ "candidates": [
270
+ "unable to install the kernel 3.5 in ubuntu 12.04",
271
+ "how can i download the source code for linux-image-3.2.0-*-generic ?",
272
+ "upgrading to 14.04 did n't update my kernel",
273
+ "unable to find entry_32.s file in ubuntu 12.04",
274
+ "upgrade from 12.04 failing",
275
+ "what exactly is generic version of ubuntu ? how it differes from other versions ?",
276
+ "kernel source version number does not match",
277
+ "how to install i386 library ?",
278
+ "apt-get upgrade has no errors but no effect",
279
+ "upgrading from 14.04 to 14.04 lts",
280
+ "disable automatic starting of sshd ?",
281
+ "why does do-release-upgrade on 12.04 system not find 14.04.1 upgrade ?",
282
+ "how lsb module affects system , and can be made available to the system ?",
283
+ "do n't want raid to autostart",
284
+ "revert erlang otp version",
285
+ "ubuntu 12.04 ; how to check if vsync is enabled ?",
286
+ "opencv installation problem in ubuntu 13.04",
287
+ "is the update for a point release automatic or should i download and install ?",
288
+ "how to install alfa awus036h driver on ubuntu 12.04.4 lts ?",
289
+ "difference between the host and the guest os kernel versions"
290
+ ]
291
+ },
292
+ {
293
+ "id": "test_query302",
294
+ "query": "what is the password for `` ssh root @ localhost `` ?",
295
+ "candidates": [
296
+ "permission denied for root @ localhost for ssh connection",
297
+ "need to connect as **root @ my-server-ip** with ssh",
298
+ "how to deny root ssh login + require ssh key for user ?",
299
+ "not able to ssh to localhost",
300
+ "server asking for password even after adding ssh keys",
301
+ "how to setup passwordless ssh access for root user",
302
+ "how to scp a file ( s ) from ubuntu virtual machine to remote web host ?",
303
+ "installed mysql but can not login : access denied for user 'xxxxxx ' @ 'localhost ' ( using password : yes )",
304
+ "mysql access denied for user 'root ' @ 'localhost '",
305
+ "how to change my hostname ?",
306
+ "why phpmyadmin did n't work ?",
307
+ "access webpage through ssh",
308
+ "can not login to ubuntu 13.10 hosted in virtualbox from os x mavericks",
309
+ "mysql access denied for user 'root ' while using lamp",
310
+ "ssh into shell , get 'error : ca n't open display : ( null ) '",
311
+ "use real browser instead of w3m on ssh connections",
312
+ "unable to create database due access denied",
313
+ "ssh : connect to host localhost port 22 : connection refused",
314
+ "mediawiki installation on 14.04",
315
+ "`` 'access denied for user 'root ' @ 'localhost ' '' when trying to do commands"
316
+ ]
317
+ },
318
+ {
319
+ "id": "test_query216",
320
+ "query": "whats the difference between ubuntu 11.10 and ubuntu 11.10 server version ?",
321
+ "candidates": [
322
+ "what 's the difference between the server version and the desktop version ?",
323
+ "what is the difference between 12.04 desktop & 12.04 server images",
324
+ "install ubuntu desktop or server in ubuntu 11.10 ?",
325
+ "ressource difference between server and desktop",
326
+ "what is the difference between minimal , desktop & server editions ?",
327
+ "difference between ubuntu and xubuntu when deploy to server ?",
328
+ "difference between emacs metapackage and emacs",
329
+ "what is the difference between upgrading from 11.10 and updating from 12.04 beta 2 ?",
330
+ "what is `` ubuntu desktop usb '' in tasksel ?",
331
+ "diffrence between amd64 and i386 version of ubuntu",
332
+ "sun 's jdk on ubuntu 11.10 server edition",
333
+ "what is the difference between dhcp3-server and isc-dhcp-server packages ?",
334
+ "what is the difference between ubuntu and debian server ?",
335
+ "what is the difference between ubuntu server and ubuntu cloud under lxc ?",
336
+ "manage ubuntu 11.10 desktop from server webconsole",
337
+ "difference between menu shutdown and 'shutdown -h now '",
338
+ "how to safely uninstall ubuntu 12.04 and reinstall 11.10",
339
+ "about ubuntu cloud server",
340
+ "is there a difference between ubuntu gnome-shell and fedora gnome-shell ?",
341
+ "what are the differences between different releases of ubuntu ?"
342
+ ]
343
+ },
344
+ {
345
+ "id": "test_query16",
346
+ "query": "how do i disable the guest account on ubuntu 13.10 ( saucy )",
347
+ "candidates": [
348
+ "a strange account appear at login to ubuntu 12.04 ?",
349
+ "how do i disable the guest session in ubuntu 13.10 ?",
350
+ "why there are many guest accounts on my system ?",
351
+ "how to disable the guest account at the login of ubuntu 11.10",
352
+ "how can i log into or out of a lubuntu guest account ?",
353
+ "ca n't login to guest account in ubuntu",
354
+ "how to give access to programs to the guest account ?",
355
+ "what is the best way to lock down unity for guest accounts ?",
356
+ "how do i change the input method in guest session ?",
357
+ "how to allow the following features to guest in ubuntu 14.04 ?",
358
+ "how to log in to admin account from a non-admin account ?",
359
+ "account blocked by changing the /etc/passwd : how to revert or gain access again",
360
+ "users not created during installation",
361
+ "how to see the home or recent files in guest account of admin account",
362
+ "customize guest account ?",
363
+ "adding an icon to a guest account when the icon is on main account",
364
+ "recover deleted user files from guest account",
365
+ "how to access a guest os running in virtual box from a different user account",
366
+ "how to remove `` online accounts '' from `` system settings '' ?",
367
+ "why can a new user not write to external hard drive ?"
368
+ ]
369
+ },
370
+ {
371
+ "id": "test_query15",
372
+ "query": "how do i install ubuntu software centre application ?",
373
+ "candidates": [
374
+ "how to choose to open with software center application from the browser ?",
375
+ "ubuntu software centre is not there",
376
+ "why ubuntu software center does n't have the latest version of softwares ?",
377
+ "which applications are using internet",
378
+ "lord of ultima and bit trip runner not available in muon software centre",
379
+ "export package [ eclipse ]",
380
+ "ubuntu software centre - error",
381
+ "i can not install any packages from terminal or software centre . please help !",
382
+ "which is the best method to install/uninstall apps in ubuntu ?",
383
+ "not able to install any application using ubuntu software centre on 12.4 lts",
384
+ "do i need to re-purchase software in the ubuntu software centre if i reinstall ?",
385
+ "removing ubuntu one",
386
+ "how do i package my application for the ubuntu software centre ?",
387
+ "ubuntu software centre not responding",
388
+ "how to report or block an inappropriate application in the ubuntu software centre ?",
389
+ "how do i find out the email address associated with software centre ? ( 12.04 )",
390
+ "how can i enable the software centre to also install recommended packages ?",
391
+ "install from ubuntu software centre to a location of my choice",
392
+ "retrieving proprietary drivers removed from the software centre",
393
+ "still no success to install skype on ubuntu 12.04 from software centre , nor from terminal"
394
+ ]
395
+ },
396
+ {
397
+ "id": "test_query47",
398
+ "query": "running ubuntu in usb but with a lot of ram ; how to run program from ram ?",
399
+ "candidates": [
400
+ "how to run ubuntu fully in initramfs ?",
401
+ "can ubuntu run on 512mb ram ?",
402
+ "can i clone my existing ubuntu 12.10 and install to usb",
403
+ "how can i remove `` install this '' from my ubuntu usb installation ?",
404
+ "can i run ubuntu from usb and save all information ?",
405
+ "which is the ideal way to install ubuntu in a usb stick",
406
+ "for macs : why does ubuntu encourage booting from a dvd instead of a usb ?",
407
+ "can i run ubuntu live from a usb flash-drive without destroying the data on it ?",
408
+ "how to run ubuntu , within windows , from a usb drive ?",
409
+ "how to make notebook boot from usb",
410
+ "installing ubuntu 12.04 on a usb stick",
411
+ "windows 7 / ubuntu dual-boot with shared data partition",
412
+ "ubuntu cloud with four servers",
413
+ "ubuntu 12.10 external ram on old laptop ?",
414
+ "is there a better way to run ubuntu from usb disk",
415
+ "save and run programs from usb",
416
+ "probably the dumbest and poitnless question to ask",
417
+ "about running ubuntu on a toshiba tecra 8000",
418
+ "changing to another distro : can the -home partition be kept ?",
419
+ "how can i run a command automatically upon usb diconnect ?"
420
+ ]
421
+ },
422
+ {
423
+ "id": "test_query111",
424
+ "query": "installed windows8 and now my grub is gone , help ?",
425
+ "candidates": [
426
+ "no boot manager after new ubuntu installation",
427
+ "how to access ubuntu 12.04 from a multi-boot system ?",
428
+ "windows 7 does not boot correctly on a triple boot system with windows 8 ( consumer preview ) , windows 7 and ubuntu",
429
+ "window 8 option is not getting shown in grub",
430
+ "boot windows 8 after migration from hdd to ssd",
431
+ "grub does n't show windows 8 as boot option",
432
+ "windows 8 does n't boot after installing ubuntu ( uefi )",
433
+ "after installing ubuntu alongside windows i do not see the dual boot option to start windows 8 .",
434
+ "ca n't access windows 7 after installing ubuntu 13.10",
435
+ "replace windows8 with ubuntu from dual-boot",
436
+ "choosing bootloader ( dual boot )",
437
+ "windows 8 does n't boot after installing ubuntu 12.04",
438
+ "how to dual boot windows 8 and windows 7 seperately with burg",
439
+ "how can i restore grub after switching from windows 8 to 7 on a dual boot ?",
440
+ "windows not booting in dual boot with ubuntu 12.04 and windows 7",
441
+ "no boot option after installing ubuntu 12.04 inside windows xp and drive h : is also gone",
442
+ "windows 8.1 bootloader gone from grub . how do i get it back ?",
443
+ "unable to use windows after installing ubuntu 12.04",
444
+ "how do i retrieve my windows 8 boot after ubuntu 13.04 installed ?",
445
+ "grub do n't find windows 7 loader . ca n't boot to windows after installing linux help"
446
+ ]
447
+ },
448
+ {
449
+ "id": "test_query119",
450
+ "query": "how do i remove ubuntu and install windows 7 ?",
451
+ "candidates": [
452
+ "how to remove ubuntu 11.10 after it is installed alongside windows",
453
+ "how to remove ubuntu from my windows 7 ?",
454
+ "how to remove ubuntu 12.04 ?",
455
+ "remove ubuntu from dual boot windows 7 both in same drive",
456
+ "remove ubuntu partition",
457
+ "how do i remove ubuntu completely and install windows 7 ?",
458
+ "how to uninstall ubuntu from one drive and install in another drive ?",
459
+ "how to remove kubuntu",
460
+ "how can i restore windows 7 to the pc",
461
+ "how to remove ubuntu compleletly from my laptop and install windows ?",
462
+ "how to remove pre-installed ubuntu and and install another os ?",
463
+ "removing ubuntu from a dual-boot setup with windows",
464
+ "how to remove ubuntu 12.04 from a dual boot computer with windows 7",
465
+ "how to make windows the default os in grub menu ?",
466
+ "unable to boot to windows after installing ubuntu",
467
+ "i want to remove windows 8 and windows 7 from my triple boot with ubuntu 12.04",
468
+ "how to install windows 7 on dell inspiron 15- 3521 laptop",
469
+ "after formatting windows 7 there is still dual-boot screen",
470
+ "how do i remove windows 7 when i am dual booting ubuntu 12.10 as well",
471
+ "ubuntu install option `` install alongside windows 7 '' is missing"
472
+ ]
473
+ },
474
+ {
475
+ "id": "test_query258",
476
+ "query": "/etc/x11/xorg.conf does n't exist ?",
477
+ "candidates": [
478
+ "/etc/x11/xorg.conf file is not available",
479
+ "how can i get my intel 82945g/gz video card to support more resolutions ?",
480
+ "how to run unity-3d on desktop",
481
+ "flash video is insanely choppy ?",
482
+ "graphics driver update for dell v3400",
483
+ "ubuntu 12.04 not recognizing the graphic card",
484
+ "intel driver seems not to be installed",
485
+ "trying to use gnome-shell but it will not work",
486
+ "how do i know if my laptop support switchable graphics and how to switch to it ?",
487
+ "intel graphics card not detected in ubuntu 12.04",
488
+ "no additional driver listed",
489
+ "how to know whether an nvidia graphic card is installed or not ?",
490
+ "how to get nvidia driver working properly ( running experimental 3d support )",
491
+ "why when i log in my two screens shows the same image automatically ?",
492
+ "12.04 boot hangs after `` checking battery state '' , video card intel gma 4500mhd",
493
+ "ubuntu 13.10 secondary monitor - does n't redraw properly",
494
+ "graphics driver for intel mobile 4 chipset",
495
+ "video not working properly on an integrated intel 82865g card",
496
+ "ati graphics card detected as different card ubuntu 12.04 lts",
497
+ "video card does not switch"
498
+ ]
499
+ },
500
+ {
501
+ "id": "test_query308",
502
+ "query": "how do i recover my root password ?",
503
+ "candidates": [
504
+ "how do i recover my root password in ubunto terminal ?",
505
+ "how to recover the root password on ubuntu server",
506
+ "how do i reset or recover my root password ?",
507
+ "changed root password on my server , now ca n't login anymore",
508
+ "ubuntu root user",
509
+ "lost the root privilege after try to add the user to a group",
510
+ "password problem with ubuntu ( virtual machine )",
511
+ "lost password after installing and configuring afs in the system",
512
+ "recovering root password in vmware for ubuntu 12.10",
513
+ "how can i find out the root password ?",
514
+ "my user password is not accepted when connecting to a wireless network",
515
+ "how to set up root account on a new install ?",
516
+ "sudo instead of root sometimes asks for password",
517
+ "how to change root password in ubuntu ?",
518
+ "i enabled the root account by mistake , how do i disable it ?",
519
+ "root password does not work to install some programs",
520
+ "quit from the middle of password setting process",
521
+ "i do n't want other administrator to change my password",
522
+ "why does `sudo passwd root` reset my root password ? is this a security risk ?",
523
+ "how to enable root password in ubuntu 12.04"
524
+ ]
525
+ },
526
+ {
527
+ "id": "test_query13",
528
+ "query": "no wifi in 12.10 broadcom bcm4313 samsung rf511",
529
+ "candidates": [
530
+ "wifi does not work , broadcom sta wireless driver does not work on a bcm4313",
531
+ "wifi connection problem in asus eee pc having broadcom bcm4313",
532
+ "broadcom corp. bcm4313 wirelss not detected in ubuntu 12.10",
533
+ "wifi is not enabled in network manager with a bcm4313",
534
+ "broadcom bcm4313 wireless does n't work",
535
+ "how do i get the broadcom bcm4313 wireless working on an asus 1015px ?",
536
+ "wifi does n't work on lenovo b590 with broadcom bcm4313",
537
+ "broadcom bcm4313 on 11.10",
538
+ "wireless problems with broadcom bcm4313",
539
+ "broadcom bcm4313 on 13.04",
540
+ "wireless problem with broadcom bcm4313",
541
+ "wifi hotspot for ubuntu 12.04",
542
+ "broadcom bcm4313 ubuntu 13.10 connection time out",
543
+ "how to dual boot ubuntu in samsung rf511 while keeping the samsung recovery solutions alive ?",
544
+ "broadcom bcm4313 802.11bgn can connect to wifi but not to internet",
545
+ "broadcom bcm4313 wifi slow after upgrade to ubuntu 14.04",
546
+ "dual boot ubuntu samsung rf511-s07au",
547
+ "broadcom bcm4313 takes ages to connect",
548
+ "where should i put the broadcom bcm4313 driver for asus 1018 ?",
549
+ "broadcom sta driver does n't work well with bcm4313"
550
+ ]
551
+ },
552
+ {
553
+ "id": "test_query287",
554
+ "query": "heartbleed ubuntu 13.04 stuck on openssl 1.0.1c",
555
+ "candidates": [
556
+ "how do i upgrade openssl ?",
557
+ "heartbleed bug in ubuntu 13.04",
558
+ "upgrading openssl on ubuntu 10.04.4 lts - heartbleed",
559
+ "problem updating openssl in 13.10 - how to diagnose or work around ?",
560
+ "upgrade openssl on ubuntu 12.04",
561
+ "apt-get upgrade - packages have been kept back : mysql",
562
+ "why `` sudo apt-get install '' does n't find a package ?",
563
+ "how to upgrade qbittorrent to the latest stable ( upstream ) version ?",
564
+ "how to resume the upgrade of package downloads ( 10.04 - > 10.10 )",
565
+ "sudo apt-get not working in 13.04",
566
+ "how do i upgrade from 10.04 to 10.10 in one command by using the terminal ?",
567
+ "is there an update manager for kubuntu ?",
568
+ "tried to update phpmyadmin , but got `` kept back ''",
569
+ "how do i upgrade docker",
570
+ "php openssl extension has a package ?",
571
+ "no option to upgrade to 14.04",
572
+ "why are no updates shown for ubuntu 10.10 any more ?",
573
+ "can not upgrade server edition",
574
+ "0 upgraded , 0 newly installed , 0 to remove and 428 not upgraded",
575
+ "how to completely uninstall mongodb 2.6.3 from ubuntu 13.04"
576
+ ]
577
+ },
578
+ {
579
+ "id": "test_query101",
580
+ "query": "how can i add more workspaces ?",
581
+ "candidates": [
582
+ "how do i set the number of workspaces without ccsm ?",
583
+ "make workspace 2x2 on ubuntu 14.04.1 lts",
584
+ "how can i change the number of workspaces in workspace switcher ?",
585
+ "change ubuntu 12.04 ( with gnome ) number of workspaces via command line",
586
+ "ccsm does n't work when changing launcher visibility or number of workspaces",
587
+ "how to add more workspaces in unity ?",
588
+ "how configure workspaces on unity-2d ?",
589
+ "problem with workspaces in xubuntu 11.10 compiz",
590
+ "how to reset the number of workspaces ?",
591
+ "workspaces stopped working on upgrade to 14.04",
592
+ "what is the compiz option `` number of desktops '' for ?",
593
+ "ca n't see grub menu at all ! shift does n't work !",
594
+ "how can i enable bindings in desktop wall ?",
595
+ "hide the gnome-panel on one of the workspaces",
596
+ "how can i disable alt+click window dragging ?",
597
+ "switching between workspaces does n't work - how to fix it ?",
598
+ "how to turn off resizing of applications windows when changing between workspaces ?",
599
+ "what 's the difference between virtual and nonvirtual workspaces ?",
600
+ "why do my windows disappear when i move them to different workspaces ?",
601
+ "how to change key bindings for switching workspaces in gnome3 ?"
602
+ ]
603
+ },
604
+ {
605
+ "id": "test_query332",
606
+ "query": "need help creating shortcuts on the desktop in ubuntu",
607
+ "candidates": [
608
+ "is there any easy way in unity to add shortcuts to the desktop ?",
609
+ "how to add a shortcut on desktop",
610
+ "can not add app shortcuts to desktop",
611
+ "problem while creating desktop shortcuts from ubuntu-tweek",
612
+ "how do i make a desktop shortcut in the gnome fallback ui ?",
613
+ "install libgluezilla & create .desktop in kubuntu 14.04",
614
+ "how can i add other languages and what are equivalent shortcuts for what `` alt+shift '' and `` crtl+shift '' does in windows ?",
615
+ "what is a desktop recorder with global shortcuts ?",
616
+ "how to make shortcuts",
617
+ "are there any gui apps that can create .desktop files ?",
618
+ "how to add linux mint desktop to ubuntu 14.04 ?",
619
+ "how to add main menu and other widgets to gnome-do",
620
+ "how to add an option to create a new file with a specific extension in right click menu",
621
+ "desktop switching shortcuts not working at all !",
622
+ "can anyone offer help with wine and shortcuts in windows apps ?",
623
+ "i ca n't navigate in the 3d view of modo 701 in ubuntu 13.04 . is the os overriding the shortcuts somehow and how can i fix it ?",
624
+ "how do i reset unity in ubuntu 11.10 ?",
625
+ "how to add my favorite places as a quicklist in my home 's icon in unity ?",
626
+ "lost right-click open with java - jar file",
627
+ "how to add shortcuts to top pannel"
628
+ ]
629
+ },
630
+ {
631
+ "id": "test_query359",
632
+ "query": "cant boot from usb",
633
+ "candidates": [
634
+ "windows 7 install usb wo n't boot after installing ubuntu",
635
+ "grub rescue problem",
636
+ "boot from usb fail , ubuntu 12.04",
637
+ "live usb boot windows 8.1",
638
+ "error in installation",
639
+ "can not boot from liveusb created with pendrivelinux",
640
+ "how do i reformat hdd to ntfs with ubuntu on a bootable usb",
641
+ "cant boot from usb . usb device not show up in boot options menu",
642
+ "ca n't boot from usb or cd when installing ubuntu server",
643
+ "windows 8 install - usb",
644
+ "how do i dual boot ubuntu 14.04 with windows 7 ?",
645
+ "booting into windows from grub rescue",
646
+ "failure to boot from usb",
647
+ "how can i boot ubuntu from a usb drive on a windows xp computer ?",
648
+ "ubuntu 14.04 wo n't boot",
649
+ "can not get usb to boot in windows 8",
650
+ "ubuntu 12.04 usb boot stuck",
651
+ "ubuntu wo n't boot from usb - windows 8 - non dual boot related",
652
+ "showing `` boot : '' trying to install ubuntu from usb stick created with pendrive",
653
+ "how do i boot up ubuntu on windows 8 from a linux usb key ?"
654
+ ]
655
+ },
656
+ {
657
+ "id": "test_query214",
658
+ "query": "how can i set ask ubuntu website as desktop live wallpaper ?",
659
+ "candidates": [
660
+ "how to set a website as wallpaper in gnome",
661
+ "how to get ubuntu version number on the wallpaper ?",
662
+ "how do i set a vlc instance to run as a live wallpaper",
663
+ "how to change the login screen background from terminal ?",
664
+ "can i have a live matrix wallpaper on ubuntu 13.04 ? how ?",
665
+ "desktop items not showing because of compiz live wallpaper",
666
+ "wallpaper resets to gnome default",
667
+ "how can i set an animated background ?",
668
+ "active web site as gnome background",
669
+ "where is my desktop background ?",
670
+ "use video for wallpaper",
671
+ "how can i select a wallpaper that is not is the pictures folder ?",
672
+ "is there any countdown widget which shows the timer on the desktop wallpaper ?",
673
+ "login wallpaper",
674
+ "when i set desktop icons hidden i can not change wallpaper",
675
+ "ubuntu without nautilus . best way to paint a wallpaper ?",
676
+ "how can i have my login screen use the same wallpaper as my desktop ?",
677
+ "how to change desktop shell to only gedit and wallpaper ?",
678
+ "create live wallpaper slideshow that changes based on date rather than duration",
679
+ "where do i set the lockscreen image path in trusty ?"
680
+ ]
681
+ },
682
+ {
683
+ "id": "test_query112",
684
+ "query": "how to upgrade/downgrade from 12.04 to 11.10",
685
+ "candidates": [
686
+ "i want to remove ubuntu 11.10 and try kubuntu 11.04 but i ca n't get my kubuntu live disc to work",
687
+ "backup mysql databases from broken ubuntu",
688
+ "trying to install ubuntu netbook 10.10 but it hangs on the `` who are you '' screen",
689
+ "ubuntu server 11.10 from usb ?",
690
+ "ca n't install 12.04 with s3 savage",
691
+ "upgrading from 11.10 to 12.04",
692
+ "how to build an operating system that is built on top of ubuntu",
693
+ "sound and video skips on ubuntu 11.10 64 bit",
694
+ "ca n't load 12.04 from cd",
695
+ "ubuntu 12.04 upgrade",
696
+ "why ca n't i log in after unistalling python 2.7 and installing python 3 ?",
697
+ "how big is the download for an upgrade from ubuntu 11.10 to 12.04 ?",
698
+ "can not upgrade or install 12.04 - black screen",
699
+ "ubuntu 12.04 wo n't boot after upgrade",
700
+ "how can i upgrade to 11.10 from the command line ?",
701
+ "what is the best way to download a new ubuntu release ?",
702
+ "12.04 upgrade from 11.10 stuck at restoring previously installed packages",
703
+ "upgrade from 11.10 to 12.04 - encrypted lvm disk",
704
+ "can i restore a /home from a 32 bit 11.10 backup to a new 64 bit 12.04 install",
705
+ "live usb or live cd not booting ?"
706
+ ]
707
+ },
708
+ {
709
+ "id": "test_query229",
710
+ "query": "wubi gives error 'nonetype ' object has no attribute 'get_info '",
711
+ "candidates": [
712
+ "nonetype object has no attribute get_info ubuntu 14.04",
713
+ "can not install ubuntu 13.04 using wubi",
714
+ "why does wubi installation fail with `` error : 'none type ' object has no attribute 'get_info ' '' ?",
715
+ "error - 'nonetype ' object has no attribute 'get_info ' during xubuntu installation",
716
+ "ca n't install 12.04 inside windows 7 using wubi",
717
+ "error while installing ubuntu as separate os on my pc ?",
718
+ "wubi 's error while installin ubuntu 12.10 on windows 7",
719
+ "why is wubi giving me an error message when i try to install ?",
720
+ "ubuntu 12.10 install fails , both native and wubi",
721
+ "asus eeepc 1015cx ubuntu 32 bits or 64bits ?",
722
+ "attributeerror : 'module ' object has no attribute",
723
+ "openshot does n't launch with `` failed to import '' message",
724
+ "software center not working",
725
+ "ubuntu one not syncing ... in windows xp sp3",
726
+ "ubuntu one for windows client : `` attributeerror '' messages",
727
+ "ubuntu one sign in error ( after installation completed ) : `` nonetype '' object has no attribute `` make file ''",
728
+ "`` attributeerror : 'nonetype ' object has no attribute 'group ' '' when trying to use youtube-dl",
729
+ "' '' windows backend object has no attribute 'iso-path ' - see log for details . ' error when trying to install",
730
+ "how can i resolve a 'windows backend : object has no attribute iso_path ' error while installing with wubi ?",
731
+ "'module ' object has no attribute 'py2 '"
732
+ ]
733
+ },
734
+ {
735
+ "id": "test_query301",
736
+ "query": "unity does not start in ubuntu 13.04",
737
+ "candidates": [
738
+ "unity wo n't start after upgrading to 13.04",
739
+ "unity does not start after booting",
740
+ "unity does n't start",
741
+ "unity wo n't to start after installing proprietary amd graphics driver",
742
+ "bumblebee indicator icon on unity bar does not show up ubuntu 13.04",
743
+ "unity autostart hides dropbox icon while manual start does not",
744
+ "unity does not start despite having worked for several months",
745
+ "x server without unity",
746
+ "libre office menu does not show submenus automatically",
747
+ "could unity 2d speed up 3d games on ubuntu 13.04 ?",
748
+ "unity does not start and log in automatically",
749
+ "why does unity 2d start when i choose the `` gnome/openbox '' session ?",
750
+ "ubuntu 13.04 default icons in ubuntu 12.04",
751
+ "unity does n't show some running apps",
752
+ "ubuntu 13.04 stuck on the home screen and not able to display any wallpapers and have problem closing down the appplications",
753
+ "unity does not start automatically , have to start it manually",
754
+ "how to get hibernate button in unity shutdown dialog in ubuntu raring 13.04 ?",
755
+ "unity does not get listed in lightdm on xubuntu 13.04",
756
+ "unity does not start in 3d but only on 2d / unity no inicia en 3d pero si en 2d",
757
+ "why does ubuntu 13.04 fails to start showing a purple screen and on restart shows a blank ( black ) screen with blinking cursor ?"
758
+ ]
759
+ },
760
+ {
761
+ "id": "test_query142",
762
+ "query": "how do i uninstall a dual boot 11.10 ?",
763
+ "candidates": [
764
+ "uninstall ubuntu 11.04/11.10",
765
+ "how can i uninstall ubuntu when dual-booted ?",
766
+ "how to uninstall ubuntu 11.10 in netbook",
767
+ "uninstall ubuntu in dual boot with windows 8",
768
+ "how to safely uninstall ubuntu - help needed !",
769
+ "windows 7 dual boot ubuntu . install . reinstall .",
770
+ "problem after dual boot installation",
771
+ "how to uninstall ubuntu 14.04 ?",
772
+ "installing xubuntu over ubuntu ( dual boot with windows )",
773
+ "installed ubuntu on another drive , got rid of the drive , and dual boot screen is still coming up",
774
+ "how to uninstall linux dual boot with windows ?",
775
+ "how do i uninstall ubuntu 13.04",
776
+ "error : no such partition help !",
777
+ "uninstall ubuntu 12.04 and install 11.04",
778
+ "dual boot 10.10 and 11.10 - no grub",
779
+ "how do i uninstall ubuntu 13.04 ?",
780
+ "how to uninstall windows from a dual boot system ?",
781
+ "how do i safely uninstall unused ubuntu installs",
782
+ "dual booting windows 7 and ubuntu 11.10",
783
+ "dual boot windows 8 from a 12.04 install ?"
784
+ ]
785
+ }
786
+ ]
787
+ }
README.md CHANGED
@@ -1,14 +1,16 @@
1
- ---
2
- title: MTEB Human Eval Demo
3
- emoji: 📈
4
- colorFrom: pink
5
- colorTo: indigo
6
- sdk: gradio
7
- sdk_version: 5.23.3
8
- app_file: app.py
9
- pinned: false
10
- license: mit
11
- short_description: Human Evaluation Framework
12
- ---
13
-
14
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
1
+ # MTEB Human Evaluation Demo
2
+
3
+ This is a demo of the human evaluation interface for the MTEB (Massive Text Embedding Benchmark) project. It allows annotators to evaluate the relevance of documents for reranking tasks.
4
+
5
+ ## How to use
6
+
7
+ 1. Navigate to the "Demo" tab to try the interface with an example dataset (AskUbuntuDupQuestions)
8
+ 2. Read the query at the top
9
+ 3. For each document, assign a rank using the dropdown (1 = most relevant)
10
+ 4. Submit your rankings
11
+ 5. Navigate between samples using the Previous/Next buttons
12
+ 6. Your annotations are saved automatically
13
+
14
+ ## About MTEB Human Evaluation
15
+
16
+ This project aims to establish human performance benchmarks for MTEB tasks, helping to understand the realistic "ceiling" for embedding model performance.
gradio_app.py ADDED
@@ -0,0 +1,256 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import json
3
+ import os
4
+ from pathlib import Path
5
+
6
+ def create_reranking_interface(task_data):
7
+ """Create a Gradio interface for reranking evaluation."""
8
+ samples = task_data["samples"]
9
+ results = {"task_name": task_data["task_name"], "task_type": "reranking", "annotations": []}
10
+ completed_samples = {s["id"]: False for s in samples}
11
+
12
+ def save_ranking(rankings, sample_id):
13
+ """Save the current set of rankings."""
14
+ # Check if all documents have rankings
15
+ all_ranked = all(r is not None and r != "" for r in rankings)
16
+ if not all_ranked:
17
+ return "⚠️ Please assign a rank to all documents before submitting", f"Progress: {sum(completed_samples.values())}/{len(samples)}"
18
+
19
+ # Convert rankings to integers
20
+ processed_rankings = [int(r) for r in rankings]
21
+
22
+ # Check for duplicate rankings
23
+ if len(set(processed_rankings)) != len(processed_rankings):
24
+ return "⚠️ Each document must have a unique rank. Please review your rankings.", f"Progress: {sum(completed_samples.values())}/{len(samples)}"
25
+
26
+ # Store this annotation
27
+ existing_idx = next((i for i, a in enumerate(results["annotations"]) if a["sample_id"] == sample_id), None)
28
+ if existing_idx is not None:
29
+ results["annotations"][existing_idx] = {
30
+ "sample_id": sample_id,
31
+ "rankings": processed_rankings
32
+ }
33
+ else:
34
+ results["annotations"].append({
35
+ "sample_id": sample_id,
36
+ "rankings": processed_rankings
37
+ })
38
+
39
+ completed_samples[sample_id] = True
40
+ success_msg = f"✅ Rankings for query '{sample_id}' successfully saved!"
41
+ progress = f"Progress: {sum(completed_samples.values())}/{len(samples)}"
42
+
43
+ # Auto-save results after each submission
44
+ output_path = f"{task_data['task_name']}_human_results.json"
45
+ with open(output_path, "w") as f:
46
+ json.dump(results, f, indent=2)
47
+
48
+ return success_msg, progress
49
+
50
+ with gr.Blocks(theme=gr.themes.Soft()) as demo:
51
+ gr.Markdown(f"# {task_data['task_name']} - Human Reranking Evaluation")
52
+
53
+ with gr.Accordion("Instructions", open=True):
54
+ gr.Markdown("""
55
+ ## Task Instructions
56
+
57
+ {instructions}
58
+
59
+ ### How to use this interface:
60
+ 1. Read the query at the top
61
+ 2. Review each document carefully
62
+ 3. Assign a rank to each document (1 = most relevant, higher numbers = less relevant)
63
+ 4. Each document must have a unique rank
64
+ 5. Click "Submit Rankings" when you're done with the current query
65
+ 6. Use "Previous" and "Next" to navigate between queries
66
+ 7. Click "Save All Results" periodically to ensure your work is saved
67
+ """.format(instructions=task_data["instructions"]))
68
+
69
+ current_sample_id = gr.State(value=samples[0]["id"])
70
+
71
+ with gr.Row():
72
+ progress_text = gr.Textbox(label="Progress", value=f"Progress: 0/{len(samples)}", interactive=False)
73
+ status_box = gr.Textbox(label="Status", value="Ready to start evaluation", interactive=False)
74
+
75
+ with gr.Group():
76
+ gr.Markdown("## Query:")
77
+ query_text = gr.Textbox(value=samples[0]["query"], label="", interactive=False)
78
+
79
+ gr.Markdown("## Documents to Rank:")
80
+
81
+ # Create document displays and ranking dropdowns in synchronized pairs
82
+ doc_containers = []
83
+ ranking_dropdowns = []
84
+
85
+ with gr.Column():
86
+ for i, doc in enumerate(samples[0]["candidates"]):
87
+ with gr.Row():
88
+ doc_box = gr.Textbox(
89
+ value=doc,
90
+ label=f"Document {i+1}",
91
+ interactive=False
92
+ )
93
+ dropdown = gr.Dropdown(
94
+ choices=[str(j) for j in range(1, len(samples[0]["candidates"])+1)],
95
+ label=f"Rank",
96
+ value=""
97
+ )
98
+ doc_containers.append(doc_box)
99
+ ranking_dropdowns.append(dropdown)
100
+
101
+ with gr.Row():
102
+ prev_btn = gr.Button("← Previous Query", size="sm")
103
+ submit_btn = gr.Button("Submit Rankings", size="lg", variant="primary")
104
+ next_btn = gr.Button("Next Query →", size="sm")
105
+
106
+ save_btn = gr.Button("💾 Save All Results", variant="secondary")
107
+
108
+ def load_sample(sample_id):
109
+ """Load a specific sample into the interface."""
110
+ sample = next((s for s in samples if s["id"] == sample_id), None)
111
+ if not sample:
112
+ return [query_text.value] + [d.value for d in doc_containers] + [""] * len(ranking_dropdowns) + [current_sample_id.value, progress_text.value, status_box.value]
113
+
114
+ # Update query
115
+ new_query = sample["query"]
116
+
117
+ # Update documents
118
+ new_docs = []
119
+ for i, doc in enumerate(sample["candidates"]):
120
+ if i < len(doc_containers):
121
+ new_docs.append(doc)
122
+
123
+ # Initialize rankings
124
+ new_rankings = [""] * len(ranking_dropdowns)
125
+
126
+ # Check if this sample has already been annotated
127
+ existing_annotation = next((a for a in results["annotations"] if a["sample_id"] == sample_id), None)
128
+ if existing_annotation:
129
+ # Restore previous rankings
130
+ for i, rank in enumerate(existing_annotation["rankings"]):
131
+ if i < len(new_rankings) and rank is not None:
132
+ new_rankings[i] = str(rank)
133
+
134
+ # Update progress
135
+ current_idx = samples.index(sample)
136
+ new_progress = f"Progress: {sum(completed_samples.values())}/{len(samples)}"
137
+
138
+ new_status = f"Viewing query {current_idx + 1} of {len(samples)}"
139
+ if completed_samples[sample_id]:
140
+ new_status += " (already completed)"
141
+
142
+ return [new_query] + new_docs + new_rankings + [sample["id"], new_progress, new_status]
143
+
144
+ def next_sample(current_id):
145
+ """Load the next sample."""
146
+ current_sample = next((s for s in samples if s["id"] == current_id), None)
147
+ if not current_sample:
148
+ return current_id
149
+
150
+ current_idx = samples.index(current_sample)
151
+ if current_idx < len(samples) - 1:
152
+ next_sample = samples[current_idx + 1]
153
+ return next_sample["id"]
154
+ return current_id
155
+
156
+ def prev_sample(current_id):
157
+ """Load the previous sample."""
158
+ current_sample = next((s for s in samples if s["id"] == current_id), None)
159
+ if not current_sample:
160
+ return current_id
161
+
162
+ current_idx = samples.index(current_sample)
163
+ if current_idx > 0:
164
+ prev_sample = samples[current_idx - 1]
165
+ return prev_sample["id"]
166
+ return current_id
167
+
168
+ def save_results():
169
+ """Save all collected results to a file."""
170
+ output_path = f"{task_data['task_name']}_human_results.json"
171
+ with open(output_path, "w") as f:
172
+ json.dump(results, f, indent=2)
173
+ return f"✅ Results saved to {output_path} ({len(results['annotations'])} annotations)"
174
+
175
+ # Connect events
176
+ submit_btn.click(
177
+ save_ranking,
178
+ inputs=ranking_dropdowns + [current_sample_id],
179
+ outputs=[status_box, progress_text]
180
+ )
181
+
182
+ next_btn.click(
183
+ next_sample,
184
+ inputs=[current_sample_id],
185
+ outputs=[current_sample_id]
186
+ ).then(
187
+ load_sample,
188
+ inputs=[current_sample_id],
189
+ outputs=[query_text] + doc_containers + ranking_dropdowns + [current_sample_id, progress_text, status_box]
190
+ )
191
+
192
+ prev_btn.click(
193
+ prev_sample,
194
+ inputs=[current_sample_id],
195
+ outputs=[current_sample_id]
196
+ ).then(
197
+ load_sample,
198
+ inputs=[current_sample_id],
199
+ outputs=[query_text] + doc_containers + ranking_dropdowns + [current_sample_id, progress_text, status_box]
200
+ )
201
+
202
+ save_btn.click(save_results, outputs=[status_box])
203
+
204
+ return demo
205
+
206
+ # Main app with file upload capability
207
+ with gr.Blocks(theme=gr.themes.Soft()) as demo:
208
+ gr.Markdown("# MTEB Human Evaluation Demo")
209
+
210
+ with gr.Tabs():
211
+ with gr.TabItem("Demo"):
212
+ gr.Markdown("""
213
+ ## Try the MTEB Human Evaluation Interface
214
+
215
+ This is a demonstration of the human evaluation interface for MTEB reranking tasks.
216
+ The example below uses the AskUbuntuDupQuestions dataset.
217
+ """)
218
+
219
+ # Load the example task file
220
+ with open("AskUbuntuDupQuestions_human_eval.json", "r") as f:
221
+ example_data = json.load(f)
222
+
223
+ # Display a demo with the example data
224
+ reranking_demo = create_reranking_interface(example_data)
225
+
226
+ with gr.TabItem("Upload & Evaluate"):
227
+ gr.Markdown("""
228
+ ## Upload Your Own Task File
229
+
230
+ If you have a prepared task file, you can upload it here to try out the evaluation interface.
231
+ """)
232
+
233
+ file_input = gr.File(label="Upload a task file (JSON)")
234
+ load_btn = gr.Button("Load Task")
235
+ message = gr.Textbox(label="Status")
236
+ task_container = gr.HTML()
237
+
238
+ def load_custom_task(file):
239
+ if not file:
240
+ return "Please upload a task file"
241
+
242
+ try:
243
+ with open(file.name, "r") as f:
244
+ task_data = json.load(f)
245
+
246
+ task_interface = create_reranking_interface(task_data)
247
+ # This is a placeholder - in Gradio you can't dynamically create interfaces this way
248
+ # You would need a different approach for a real implementation
249
+ return f"Task '{task_data['task_name']}' loaded with {len(task_data['samples'])} samples"
250
+ except Exception as e:
251
+ return f"Error loading task file: {str(e)}"
252
+
253
+ load_btn.click(load_custom_task, inputs=[file_input], outputs=[message])
254
+
255
+ if __name__ == "__main__":
256
+ demo.launch()