andylizf commited on
Commit
428b31d
·
verified ·
1 Parent(s): 1946098

Initial upload of evaluation data

Browse files
Files changed (39) hide show
  1. .gitattributes +23 -0
  2. README.md +44 -0
  3. ground_truth/dpr/flat_results_nq_k3.json +0 -0
  4. ground_truth/dpr/id_map.json +3 -0
  5. ground_truth/rpj_wiki/flat_results_nq_k3.json +0 -0
  6. indices/dpr/dpr_diskann.meta.json +18 -0
  7. indices/dpr/dpr_diskann.passages.idx +3 -0
  8. indices/dpr/dpr_diskann.passages.jsonl +3 -0
  9. indices/dpr/dpr_diskann_disk.index +3 -0
  10. indices/dpr/dpr_diskann_disk.index_centroids.bin +3 -0
  11. indices/dpr/dpr_diskann_disk.index_max_base_norm.bin +3 -0
  12. indices/dpr/dpr_diskann_disk.index_medoids.bin +3 -0
  13. indices/dpr/dpr_diskann_metadata.bin +3 -0
  14. indices/dpr/dpr_diskann_pq_compressed.bin +3 -0
  15. indices/dpr/dpr_diskann_pq_pivots.bin +3 -0
  16. indices/dpr/dpr_diskann_sample_data.bin +3 -0
  17. indices/dpr/dpr_diskann_sample_ids.bin +3 -0
  18. indices/dpr/dpr_diskann_vectors.bin +3 -0
  19. indices/dpr/leann.labels.map +3 -0
  20. indices/rpj_wiki/leann.labels.map +3 -0
  21. indices/rpj_wiki/rpj_wiki.index +3 -0
  22. indices/rpj_wiki/rpj_wiki.index.meta.json +69 -0
  23. indices/rpj_wiki/rpj_wiki.passages.0.idx +3 -0
  24. indices/rpj_wiki/rpj_wiki.passages.0.jsonl +3 -0
  25. indices/rpj_wiki/rpj_wiki.passages.1.idx +3 -0
  26. indices/rpj_wiki/rpj_wiki.passages.1.jsonl +3 -0
  27. indices/rpj_wiki/rpj_wiki.passages.2.idx +3 -0
  28. indices/rpj_wiki/rpj_wiki.passages.2.jsonl +3 -0
  29. indices/rpj_wiki/rpj_wiki.passages.3.idx +3 -0
  30. indices/rpj_wiki/rpj_wiki.passages.3.jsonl +3 -0
  31. indices/rpj_wiki/rpj_wiki.passages.4.idx +3 -0
  32. indices/rpj_wiki/rpj_wiki.passages.4.jsonl +3 -0
  33. indices/rpj_wiki/rpj_wiki.passages.5.idx +3 -0
  34. indices/rpj_wiki/rpj_wiki.passages.5.jsonl +3 -0
  35. indices/rpj_wiki/rpj_wiki.passages.6.idx +3 -0
  36. indices/rpj_wiki/rpj_wiki.passages.6.jsonl +3 -0
  37. indices/rpj_wiki/rpj_wiki.passages.7.idx +3 -0
  38. indices/rpj_wiki/rpj_wiki.passages.7.jsonl +3 -0
  39. queries/nq_open.jsonl +0 -0
.gitattributes CHANGED
@@ -57,3 +57,26 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
60
+ ground_truth/dpr/id_map.json filter=lfs diff=lfs merge=lfs -text
61
+ indices/dpr/dpr_diskann.passages.idx filter=lfs diff=lfs merge=lfs -text
62
+ indices/dpr/dpr_diskann.passages.jsonl filter=lfs diff=lfs merge=lfs -text
63
+ indices/dpr/dpr_diskann_disk.index filter=lfs diff=lfs merge=lfs -text
64
+ indices/dpr/leann.labels.map filter=lfs diff=lfs merge=lfs -text
65
+ indices/rpj_wiki/leann.labels.map filter=lfs diff=lfs merge=lfs -text
66
+ indices/rpj_wiki/rpj_wiki.index filter=lfs diff=lfs merge=lfs -text
67
+ indices/rpj_wiki/rpj_wiki.passages.0.idx filter=lfs diff=lfs merge=lfs -text
68
+ indices/rpj_wiki/rpj_wiki.passages.0.jsonl filter=lfs diff=lfs merge=lfs -text
69
+ indices/rpj_wiki/rpj_wiki.passages.1.idx filter=lfs diff=lfs merge=lfs -text
70
+ indices/rpj_wiki/rpj_wiki.passages.1.jsonl filter=lfs diff=lfs merge=lfs -text
71
+ indices/rpj_wiki/rpj_wiki.passages.2.idx filter=lfs diff=lfs merge=lfs -text
72
+ indices/rpj_wiki/rpj_wiki.passages.2.jsonl filter=lfs diff=lfs merge=lfs -text
73
+ indices/rpj_wiki/rpj_wiki.passages.3.idx filter=lfs diff=lfs merge=lfs -text
74
+ indices/rpj_wiki/rpj_wiki.passages.3.jsonl filter=lfs diff=lfs merge=lfs -text
75
+ indices/rpj_wiki/rpj_wiki.passages.4.idx filter=lfs diff=lfs merge=lfs -text
76
+ indices/rpj_wiki/rpj_wiki.passages.4.jsonl filter=lfs diff=lfs merge=lfs -text
77
+ indices/rpj_wiki/rpj_wiki.passages.5.idx filter=lfs diff=lfs merge=lfs -text
78
+ indices/rpj_wiki/rpj_wiki.passages.5.jsonl filter=lfs diff=lfs merge=lfs -text
79
+ indices/rpj_wiki/rpj_wiki.passages.6.idx filter=lfs diff=lfs merge=lfs -text
80
+ indices/rpj_wiki/rpj_wiki.passages.6.jsonl filter=lfs diff=lfs merge=lfs -text
81
+ indices/rpj_wiki/rpj_wiki.passages.7.idx filter=lfs diff=lfs merge=lfs -text
82
+ indices/rpj_wiki/rpj_wiki.passages.7.jsonl filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ ---
4
+
5
+ # LEANN-RAG Evaluation Data
6
+
7
+ This repository contains the necessary data to run the recall evaluation scripts for the [LEANN-RAG](https://huggingface.co/LEANN-RAG) project.
8
+
9
+ ## Dataset Components
10
+
11
+ This dataset is structured into three main parts:
12
+
13
+ 1. **Pre-built LEANN Indices**:
14
+ * `dpr/`: A pre-built index for the DPR dataset.
15
+ * `rpj_wiki/`: A pre-built index for the RPJ-Wiki dataset.
16
+ These indices were created using the `leann-core` library and are required by the `LeannSearcher`.
17
+
18
+ 2. **Ground Truth Data**:
19
+ * `ground_truth/`: Contains the ground truth files (`flat_results_nq_k3.json`) for both the DPR and RPJ-Wiki datasets. These files map queries to the original passage IDs from the Natural Questions benchmark, evaluated using the Contriever model.
20
+
21
+ 3. **Queries**:
22
+ * `queries/`: Contains the `nq_open.jsonl` file with the Natural Questions queries used for the evaluation.
23
+
24
+ ## Usage
25
+
26
+ To use this data, you can download it locally using the `huggingface-hub` library. First, install the library:
27
+
28
+ ```bash
29
+ pip install huggingface-hub
30
+ ```
31
+
32
+ Then, you can download the entire dataset to a local directory (e.g., `data/`) with the following Python script:
33
+
34
+ ```python
35
+ from huggingface_hub import snapshot_download
36
+
37
+ snapshot_download(
38
+ repo_id="LEANN-RAG/leann-rag-evaluation-data",
39
+ repo_type="dataset",
40
+ local_dir="data"
41
+ )
42
+ ```
43
+
44
+ This will download all the necessary files into a local `data` folder, preserving the repository structure. The evaluation scripts in the main [LEANN-RAG Space](https://huggingface.co/LEANN-RAG) are configured to work with this data structure.
ground_truth/dpr/flat_results_nq_k3.json ADDED
The diff for this file is too large to render. See raw diff
 
ground_truth/dpr/id_map.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dfdcad9b4f9cd1f45eac4ecb144b80719e4e6f5cb60e5ed24c6ebe8586e60a57
3
+ size 48205494
ground_truth/rpj_wiki/flat_results_nq_k3.json ADDED
The diff for this file is too large to render. See raw diff
 
indices/dpr/dpr_diskann.meta.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_name": "dpr_diskann",
3
+ "embedding_model": "facebook/contriever-msmarco",
4
+ "distance_metric": "mips",
5
+ "dimensions": 768,
6
+ "backend_name": "diskann",
7
+ "passage_sources": [
8
+ {
9
+ "path": "data/indices/dpr/dpr_diskann.passages.jsonl",
10
+ "type": "jsonl",
11
+ "text_field": "text",
12
+ "id_field": "id",
13
+ "index_path": "data/indices/dpr/dpr_diskann.passages.idx"
14
+ }
15
+ ],
16
+ "created_by": "simple_converter.py",
17
+ "is_legacy": true
18
+ }
indices/dpr/dpr_diskann.passages.idx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:785ffdbda388a849b868f67adc05a015c77bf78cfe158208abc6e2178fe15244
3
+ size 30420083
indices/dpr/dpr_diskann.passages.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:61a4b93a295162e8f53891454e967a8886e07bdc40a5575c03bed3e4bfffcce9
3
+ size 1506020798
indices/dpr/dpr_diskann_disk.index ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fcb70e4b9b9ea820f8fd20b9f31d571d07401a621cdf53988e9c7796e3775112
3
+ size 8607879168
indices/dpr/dpr_diskann_disk.index_centroids.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9bbb61320dc0cb662411d4bb09f1e30509872347e44c8149b64159847477e1ff
3
+ size 9236
indices/dpr/dpr_diskann_disk.index_max_base_norm.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5ee2bbe9551db96751cc68abd6845a907876e599e664783f122a848aa58bc8f
3
+ size 12
indices/dpr/dpr_diskann_disk.index_medoids.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:691ce72484bca9cef26254b63b69aba3ff5a235aff99839ce7ca2f3746362929
3
+ size 20
indices/dpr/dpr_diskann_metadata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd071316a3e5b2c6715665cd0669a07c0f41602bcecf25fcbce757d95f5c1037
3
+ size 32
indices/dpr/dpr_diskann_pq_compressed.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:36bfd2be6935ffc821d17aaa1d2c6a63bcf1e133f51875244051a8a9ef2dd638
3
+ size 1075984392
indices/dpr/dpr_diskann_pq_pivots.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fa81523426d98179a8d1d53182968e22528b4d0e3b987a589640e527aea7ef66
3
+ size 796704
indices/dpr/dpr_diskann_sample_data.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2aadf640f02efd836950971e863d5c19748595f9967ca7f510055a486c323a21
3
+ size 306751032
indices/dpr/dpr_diskann_sample_ids.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:960973aa35c3a6980b37511229f1a9754262436a2ebc3e1140c457b93a40403b
3
+ size 398904
indices/dpr/dpr_diskann_vectors.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:78f2cbda8fb20e451d8db0eb26029fda1211473475429989a2e4ef80718cc132
3
+ size 6455906312
indices/dpr/leann.labels.map ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:40f28fd8d502a4211250376cd71a1f7ef016dc62a9c49bb5575e1948eff49596
3
+ size 30288918
indices/rpj_wiki/leann.labels.map ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:15b0fc048e5823e951a80d55339a1626ab5ffedd7a4a43818e6a7ed64c326674
3
+ size 956213272
indices/rpj_wiki/rpj_wiki.index ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:787b5babc771c577fb380f48138b1cb70496b370258a9afc33bdffdfad0a9b6c
3
+ size 6027383438
indices/rpj_wiki/rpj_wiki.index.meta.json ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_name": "rpj_wiki",
3
+ "embedding_model": "facebook/contriever-msmarco",
4
+ "distance_metric": "mips",
5
+ "dimensions": 768,
6
+ "backend_name": "hnsw",
7
+ "passage_sources": [
8
+ {
9
+ "path": "data/indices/rpj_wiki/rpj_wiki.passages.0.jsonl",
10
+ "type": "jsonl",
11
+ "text_field": "text",
12
+ "id_field": "id",
13
+ "index_path": "data/indices/rpj_wiki/rpj_wiki.passages.0.idx"
14
+ },
15
+ {
16
+ "path": "data/indices/rpj_wiki/rpj_wiki.passages.1.jsonl",
17
+ "type": "jsonl",
18
+ "text_field": "text",
19
+ "id_field": "id",
20
+ "index_path": "data/indices/rpj_wiki/rpj_wiki.passages.1.idx"
21
+ },
22
+ {
23
+ "path": "data/indices/rpj_wiki/rpj_wiki.passages.2.jsonl",
24
+ "type": "jsonl",
25
+ "text_field": "text",
26
+ "id_field": "id",
27
+ "index_path": "data/indices/rpj_wiki/rpj_wiki.passages.2.idx"
28
+ },
29
+ {
30
+ "path": "data/indices/rpj_wiki/rpj_wiki.passages.3.jsonl",
31
+ "type": "jsonl",
32
+ "text_field": "text",
33
+ "id_field": "id",
34
+ "index_path": "data/indices/rpj_wiki/rpj_wiki.passages.3.idx"
35
+ },
36
+ {
37
+ "path": "data/indices/rpj_wiki/rpj_wiki.passages.4.jsonl",
38
+ "type": "jsonl",
39
+ "text_field": "text",
40
+ "id_field": "id",
41
+ "index_path": "data/indices/rpj_wiki/rpj_wiki.passages.4.idx"
42
+ },
43
+ {
44
+ "path": "data/indices/rpj_wiki/rpj_wiki.passages.5.jsonl",
45
+ "type": "jsonl",
46
+ "text_field": "text",
47
+ "id_field": "id",
48
+ "index_path": "data/indices/rpj_wiki/rpj_wiki.passages.5.idx"
49
+ },
50
+ {
51
+ "path": "data/indices/rpj_wiki/rpj_wiki.passages.6.jsonl",
52
+ "type": "jsonl",
53
+ "text_field": "text",
54
+ "id_field": "id",
55
+ "index_path": "data/indices/rpj_wiki/rpj_wiki.passages.6.idx"
56
+ },
57
+ {
58
+ "path": "data/indices/rpj_wiki/rpj_wiki.passages.7.jsonl",
59
+ "type": "jsonl",
60
+ "text_field": "text",
61
+ "id_field": "id",
62
+ "index_path": "data/indices/rpj_wiki/rpj_wiki.passages.7.idx"
63
+ }
64
+ ],
65
+ "created_by": "fix_meta.py",
66
+ "is_legacy": true,
67
+ "is_compact": true,
68
+ "is_pruned": true
69
+ }
indices/rpj_wiki/rpj_wiki.passages.0.idx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df19d3a0b08587da497be6fe46bad5b02243232a14de0b8aeaed29c73e04eac6
3
+ size 132228545
indices/rpj_wiki/rpj_wiki.passages.0.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:88e03a5b969a34d7d6322263874b01a059c6f4b76ecc4c1d8c7039a1556f478d
3
+ size 11858808886
indices/rpj_wiki/rpj_wiki.passages.1.idx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d292bb59bcf681447b3232b9583821906df979cf4567ea4b309691dcb9af37b
3
+ size 183225229
indices/rpj_wiki/rpj_wiki.passages.1.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee261953a721537c686ffd7e0d22eaf0072864bc844292ae0b59611ce6abfc07
3
+ size 14575005343
indices/rpj_wiki/rpj_wiki.passages.2.idx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da37bf9e42131388a5f4adda260bd24e94c96f5e8bcca229663e070551f5183c
3
+ size 200321170
indices/rpj_wiki/rpj_wiki.passages.2.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb94a527fdd87d9dde5846721f8c71e66e9dc21a89cb53e61f1ab48fdfb42721
3
+ size 14135805183
indices/rpj_wiki/rpj_wiki.passages.3.idx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f636a64b9aa884fa1ddee12ed7cf0621fc124e1f29253e3d4c83576ec48efd79
3
+ size 173220123
indices/rpj_wiki/rpj_wiki.passages.3.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:236468397099cff37e55fae9361db7c846b8c5494afc98949791aa4cfaedd4ee
3
+ size 13093181898
indices/rpj_wiki/rpj_wiki.passages.4.idx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e99e382299c6867a3398b1eb55ebd966655694697b9a1414435ad18dc77024ca
3
+ size 189860103
indices/rpj_wiki/rpj_wiki.passages.4.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b94b00f4e865d4a86effbc15f4937edf96e9a285e3b2b80786029fb2b91b9b8
3
+ size 12224684066
indices/rpj_wiki/rpj_wiki.passages.5.idx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c34b5d31466cd705882fc40e3ebfdcac4eeeb8c04b5bbdd684ed99b1d05f306
3
+ size 38328199
indices/rpj_wiki/rpj_wiki.passages.5.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:802c995931ab9c46d9b4fa83f63e66143a57494a420cfd2064b5506a324f3724
3
+ size 5462621517
indices/rpj_wiki/rpj_wiki.passages.6.idx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8def833840d80effeae96a136b752f2b3458d50aed2dd55daa50c46c94fd233a
3
+ size 51611618
indices/rpj_wiki/rpj_wiki.passages.6.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ea0a4bb47249aca262a9b2e05ccf346ea342d365646ed0ccd9831225fb4d933
3
+ size 5860522221
indices/rpj_wiki/rpj_wiki.passages.7.idx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:24c05a704c29be7c30d97b3df9368d30dfc1bb1c056a89258d6bfeb5f53c74d6
3
+ size 83096122
indices/rpj_wiki/rpj_wiki.passages.7.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aecd92f1f6d098e568b51afdd6d972938803f8faca8ae336375758da2150968b
3
+ size 6463630445
queries/nq_open.jsonl ADDED
The diff for this file is too large to render. See raw diff