xzhong commited on
Commit
4a5c8dc
·
verified ·
1 Parent(s): 2b413bd

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +2 -7
  2. README.md +75 -0
  3. chunk/wiki20220301en006.jsonl +3 -0
  4. chunk/wiki20220301en025.jsonl +3 -0
  5. chunk/wiki20220301en027.jsonl +3 -0
  6. chunk/wiki20220301en028.jsonl +3 -0
  7. chunk/wiki20220301en029.jsonl +3 -0
  8. chunk/wiki20220301en031.jsonl +3 -0
  9. chunk/wiki20220301en034.jsonl +3 -0
  10. chunk/wiki20220301en035.jsonl +3 -0
  11. chunk/wiki20220301en039.jsonl +3 -0
  12. chunk/wiki20220301en041.jsonl +3 -0
  13. chunk/wiki20220301en042.jsonl +3 -0
  14. chunk/wiki20220301en043.jsonl +3 -0
  15. chunk/wiki20220301en044.jsonl +3 -0
  16. chunk/wiki20220301en046.jsonl +3 -0
  17. chunk/wiki20220301en047.jsonl +3 -0
  18. chunk/wiki20220301en048.jsonl +3 -0
  19. chunk/wiki20220301en049.jsonl +3 -0
  20. chunk/wiki20220301en050.jsonl +3 -0
  21. chunk/wiki20220301en051.jsonl +3 -0
  22. chunk/wiki20220301en053.jsonl +3 -0
  23. chunk/wiki20220301en054.jsonl +3 -0
  24. chunk/wiki20220301en055.jsonl +3 -0
  25. chunk/wiki20220301en056.jsonl +3 -0
  26. chunk/wiki20220301en057.jsonl +3 -0
  27. chunk/wiki20220301en058.jsonl +3 -0
  28. chunk/wiki20220301en059.jsonl +3 -0
  29. chunk/wiki20220301en060.jsonl +3 -0
  30. chunk/wiki20220301en061.jsonl +3 -0
  31. chunk/wiki20220301en062.jsonl +3 -0
  32. chunk/wiki20220301en065.jsonl +3 -0
  33. chunk/wiki20220301en066.jsonl +3 -0
  34. chunk/wiki20220301en067.jsonl +3 -0
  35. chunk/wiki20220301en068.jsonl +3 -0
  36. chunk/wiki20220301en069.jsonl +3 -0
  37. chunk/wiki20220301en070.jsonl +3 -0
  38. chunk/wiki20220301en072.jsonl +3 -0
  39. chunk/wiki20220301en073.jsonl +3 -0
  40. chunk/wiki20220301en074.jsonl +3 -0
  41. chunk/wiki20220301en075.jsonl +3 -0
  42. chunk/wiki20220301en076.jsonl +3 -0
  43. chunk/wiki20220301en077.jsonl +3 -0
  44. chunk/wiki20220301en078.jsonl +3 -0
  45. chunk/wiki20220301en079.jsonl +3 -0
  46. chunk/wiki20220301en080.jsonl +3 -0
  47. chunk/wiki20220301en081.jsonl +3 -0
  48. chunk/wiki20220301en082.jsonl +3 -0
  49. chunk/wiki20220301en083.jsonl +3 -0
  50. chunk/wiki20220301en084.jsonl +3 -0
.gitattributes CHANGED
@@ -9,7 +9,6 @@
9
  *.joblib filter=lfs diff=lfs merge=lfs -text
10
  *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
  *.lz4 filter=lfs diff=lfs merge=lfs -text
12
- *.mds filter=lfs diff=lfs merge=lfs -text
13
  *.mlmodel filter=lfs diff=lfs merge=lfs -text
14
  *.model filter=lfs diff=lfs merge=lfs -text
15
  *.msgpack filter=lfs diff=lfs merge=lfs -text
@@ -54,9 +53,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
54
  *.jpg filter=lfs diff=lfs merge=lfs -text
55
  *.jpeg filter=lfs diff=lfs merge=lfs -text
56
  *.webp 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
- pubchem/compound.jsonl filter=lfs diff=lfs merge=lfs -text
61
- textbook/organic_chemistry_textbook.jsonl filter=lfs diff=lfs merge=lfs -text
62
- uspto/USPTO_500_MT.jsonl filter=lfs diff=lfs merge=lfs -text
 
9
  *.joblib filter=lfs diff=lfs merge=lfs -text
10
  *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
  *.lz4 filter=lfs diff=lfs merge=lfs -text
 
12
  *.mlmodel filter=lfs diff=lfs merge=lfs -text
13
  *.model filter=lfs diff=lfs merge=lfs -text
14
  *.msgpack filter=lfs diff=lfs merge=lfs -text
 
53
  *.jpg filter=lfs diff=lfs merge=lfs -text
54
  *.jpeg filter=lfs diff=lfs merge=lfs -text
55
  *.webp filter=lfs diff=lfs merge=lfs -text
56
+ *.jsonl filter=lfs diff=lfs merge=lfs -text
57
+ chunk filter=lfs diff=lfs merge=lfs -text
 
 
 
 
README.md ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ task_categories:
3
+ - question-answering
4
+ language:
5
+ - en
6
+ tags:
7
+ - medical
8
+ - question answering
9
+ - large language model
10
+ - retrieval-augmented generation
11
+ size_categories:
12
+ - 10M<n<100M
13
+ ---
14
+ # The Wikipedia Corpus in MedRAG
15
+
16
+ This HF dataset contains the chunked snippets from the Wikipedia corpus used in [MedRAG](https://arxiv.org/abs/2402.13178). It can be used for medical Retrieval-Augmented Generation (RAG).
17
+
18
+ ## News
19
+ - (02/26/2024) The "id" column has been reformatted. A new "wiki_id" column is added.
20
+
21
+ ## Dataset Details
22
+
23
+ ### Dataset Descriptions
24
+
25
+ As a large-scale open-source encyclopedia, Wikipedia is frequently used as a corpus in information retrieval tasks.
26
+ We select Wikipedia as one of the corpora to see if the general domain database can be used to improve the ability of medical QA.
27
+ We downloaded the processed Wikipedia data from [HuggingFace](https://huggingface.co/datasets/wikipedia) and chunked the text using [LangChain](https://www.langchain.com/) as snippets with no more than 1000 characters.
28
+ This HF dataset contains our ready-to-use chunked snippets for the Wikipedia corpus, including 29,913,202 snippets with an average of 162 tokens.
29
+
30
+ ### Dataset Structure
31
+ Each row is a snippet of Wikipedia, which includes the following features:
32
+
33
+ - id: a unique identifier of the snippet
34
+ - title: the title of the Wikipedia article from which the snippet is collected
35
+ - content: the content of the snippet
36
+ - contents: a concatenation of 'title' and 'content', which will be used by the [BM25](https://github.com/castorini/pyserini) retriever
37
+
38
+ ## Uses
39
+
40
+ <!-- Address questions around how the dataset is intended to be used. -->
41
+
42
+ ### Direct Use
43
+
44
+ <!-- This section describes suitable use cases for the dataset. -->
45
+
46
+ ```shell
47
+ git clone https://huggingface.co/datasets/MedRAG/wikipedia
48
+ ```
49
+
50
+ ### Use in MedRAG
51
+
52
+ ```python
53
+ >> from src.medrag import MedRAG
54
+
55
+ >> question = "A lesion causing compression of the facial nerve at the stylomastoid foramen will cause ipsilateral"
56
+ >> options = {
57
+ "A": "paralysis of the facial muscles.",
58
+ "B": "paralysis of the facial muscles and loss of taste.",
59
+ "C": "paralysis of the facial muscles, loss of taste and lacrimation.",
60
+ "D": "paralysis of the facial muscles, loss of taste, lacrimation and decreased salivation."
61
+ }
62
+
63
+ >> medrag = MedRAG(llm_name="OpenAI/gpt-3.5-turbo-16k", rag=True, retriever_name="MedCPT", corpus_name="Wikipedia")
64
+ >> answer, snippets, scores = medrag.answer(question=question, options=options, k=32) # scores are given by the retrieval system
65
+ ```
66
+
67
+ ## Citation
68
+ ```shell
69
+ @article{xiong2024benchmarking,
70
+ title={Benchmarking Retrieval-Augmented Generation for Medicine},
71
+ author={Guangzhi Xiong and Qiao Jin and Zhiyong Lu and Aidong Zhang},
72
+ journal={arXiv preprint arXiv:2402.13178},
73
+ year={2024}
74
+ }
75
+ ```
chunk/wiki20220301en006.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14ef737f0dbb146fdb566898adeba54c04893163853f8fe963ec7bc65fc9cd19
3
+ size 123285184
chunk/wiki20220301en025.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5cde1dc9ead8fa88e724011dcdad6ea1680edb23901484ea653fc8c211b85972
3
+ size 164836687
chunk/wiki20220301en027.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de80f843026452462ca43289caafcb0759a83cb17c221e055f2adca50ea079f4
3
+ size 160723668
chunk/wiki20220301en028.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85137958cecabdd15efa745bba36be0afea91f81d983391393ae55934faeee09
3
+ size 155467306
chunk/wiki20220301en029.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a40673581d4e340a8308edc0f9150bc7933577bbe52416f2a4e8817f9693bf75
3
+ size 155699832
chunk/wiki20220301en031.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:90f1f451fcc08ae9a4b09328d93d08e499c2c07790ffd039ab3feb0bf384a1b9
3
+ size 149123508
chunk/wiki20220301en034.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c1e6ac5eaaff57eaff6715f22f3658919456c4a68cb6a1a3f3c83c61e559fcfc
3
+ size 139649062
chunk/wiki20220301en035.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d5e73d006921014f4bbc243a25b238e58cc0b34799d791748925664a73e7cd75
3
+ size 141358346
chunk/wiki20220301en039.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:34a49ba63c37904a9c7279a286f61f93efd1ff3b5ac35f0f62e541a08ce49d57
3
+ size 131354756
chunk/wiki20220301en041.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:603c09d3e705866d976c0062320a816abcd1f0d2291d343e158ab6bb0bfcf49c
3
+ size 132780597
chunk/wiki20220301en042.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c65091ad6c5df1620a1f97fe5a89db8c0c975a446a17f6cc82a9c3d1c9bda342
3
+ size 136057505
chunk/wiki20220301en043.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d5dd8fc1099108cccac6f4479b7488c4b2c04ffb75d1117864f7b89824ff045d
3
+ size 129876772
chunk/wiki20220301en044.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:828a75dc1956bdddc7f0f4e3b52c84757c5febe2f4c5548dfabab88ee403cce6
3
+ size 137674259
chunk/wiki20220301en046.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a09e239b1a569ba2407bdfa244b8aa4dafc04f7218440457e9f66725f9e49acb
3
+ size 129554761
chunk/wiki20220301en047.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8e89e1e5cb6c5292a3a11d66ed59eb4f1fbb6df22d28797b4feef3a76d738e35
3
+ size 133340946
chunk/wiki20220301en048.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:895dc9dd6333747f6a673c1ab92ce9cae561611dc8245bf068856c0b4e22c795
3
+ size 125040426
chunk/wiki20220301en049.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0542c2a51a57b67c907a9374c6f2c75fd0d7a6fcfa739d3b88bf10f328698a3d
3
+ size 125832981
chunk/wiki20220301en050.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:916b14b35b2b5321f8e89c6831552ceeedf75f144e72a346f2808b5762d32830
3
+ size 122404838
chunk/wiki20220301en051.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:acd44cd23336f609063675f662d79c61a09c62361eab8d85ef166e1fff8066b5
3
+ size 127169260
chunk/wiki20220301en053.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:441ecb6f0dff500b145e97453464fa8c1a955afa61c6998c8211e6aa3aa37fdb
3
+ size 123095986
chunk/wiki20220301en054.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b20309ce1ffdb672b826551437c732e8cfba8055159722e35f87fcf73f72692b
3
+ size 123984485
chunk/wiki20220301en055.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:215e9d4401e18a081254ae589eeb383a858ca93f701155ce165cd0db82509757
3
+ size 122672550
chunk/wiki20220301en056.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec390e284a982fce90d718d74dac429365d99b5d582da23db1b58e31fdaed44e
3
+ size 120065287
chunk/wiki20220301en057.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:019200a0af8d4a7475fb0036602d9326da32524189f6c90d1d1dfeb331ca3592
3
+ size 115593137
chunk/wiki20220301en058.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dea0d2c425d41ba8e91089525005e91e951d5d7fa88e58dd22c98812b38d3817
3
+ size 117711016
chunk/wiki20220301en059.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a6f749754d324adf9cff726b397c57c71b5b3f229752070dbff74c6516dcf591
3
+ size 114451899
chunk/wiki20220301en060.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a9675e8b7e7c46f919240e8caf13cb226d25186f9d0a9ef5f0fcfe88a752f8e
3
+ size 109664849
chunk/wiki20220301en061.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7c620d91cfe55105dd9f27b569e612e250a895d5e2fd370b1a5902ad6d4efe18
3
+ size 112303390
chunk/wiki20220301en062.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2047e90793cfb8149cb109a03880fb2f331471e2a15a3f5ffcd9486885c51649
3
+ size 111860333
chunk/wiki20220301en065.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:22ff96e41259aed2ccd409fdada016d7425d052c2c060d04147ea2bd13fe8078
3
+ size 106675672
chunk/wiki20220301en066.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d2c7cbd981f8c5bbb2f7e8e426855e87453f62ffe280af8fae3f09827583974d
3
+ size 108926155
chunk/wiki20220301en067.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3cf6c04e63b1f5e53a804fefbf266fa6c563dc6a9d52443ff29c977e7b4a82a0
3
+ size 102450394
chunk/wiki20220301en068.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ab3000d91d368392356dfb8c8a33b180a95d160ffb218dd7006014714ed6960
3
+ size 108583213
chunk/wiki20220301en069.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:563085af61b884f0abfe28caf4c57fedcac7c5ae7b5821462cf25f869f1d2fb9
3
+ size 98506246
chunk/wiki20220301en070.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84afc5e20db19410f5b0c26bc53f03c88affab177741b04f8b8f122bc2715e45
3
+ size 103883056
chunk/wiki20220301en072.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b388085c76ce3c77d373d742ee3546c7ee04d7247d2e5e796a6bbd64f15b1069
3
+ size 109517955
chunk/wiki20220301en073.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4ad5f9bb8e3db8c65d85d9f7235f2f6bf7fda75327695e1c4cc680c06cf8913
3
+ size 106850097
chunk/wiki20220301en074.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d147c9a91fd263829cb991aae55f51ffabebb9bbc08a69b5497d658d14f656b
3
+ size 101626572
chunk/wiki20220301en075.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:57b016f8c1ada9b242f7fb5775d6fc215937120954e7b6f0171ed312c90fbb99
3
+ size 105630501
chunk/wiki20220301en076.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2bd5f8ad0033a38da9b9fd3edc2ce4d505a0929dbedbbb97946f693590d31ac
3
+ size 106575845
chunk/wiki20220301en077.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb32a1e65fd05a20844dbfeae8ce4b225ee70ecde988f87f1889cdf2eb3b45a5
3
+ size 107225337
chunk/wiki20220301en078.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bede5a3a80fe7d3f731968270f91a532415c5a5e960808e8efddc80410120b6f
3
+ size 102040838
chunk/wiki20220301en079.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:59c5064492db16142f940fa870b2a68635a6bfd016705a3f8e49cd12df4a75f8
3
+ size 96290289
chunk/wiki20220301en080.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a629d37dac379370b20a3e4f60b5c813d68794c75f06272c1126e47af49d80cf
3
+ size 100114157
chunk/wiki20220301en081.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:328c49c7dfda9d45b0b3ab23624c3ff8cb819a7fb6bc8b7c5beca04e4a0b3116
3
+ size 93941990
chunk/wiki20220301en082.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e2ed6eaffba5d0e6393e295811dc7ee5ade889831c5ce30053a5c09996a7e5cd
3
+ size 96823212
chunk/wiki20220301en083.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eee15e82f8be2218453d33357bf84dd71dc5623c1cd91ca7c5113cb5585c7868
3
+ size 97035318
chunk/wiki20220301en084.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dd2ca4f426e70fe3a82c26b18245cc8db50b9cba23fde92a7b24139f48f95a3d
3
+ size 100509857