xzhong commited on
Commit
ac98409
·
verified ·
1 Parent(s): 97d8f03

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. README.md +11 -12
  2. pubmed/pubmed23n0001.jsonl +3 -0
  3. pubmed/pubmed23n0002.jsonl +3 -0
  4. pubmed/pubmed23n0003.jsonl +3 -0
  5. pubmed/pubmed23n0004.jsonl +3 -0
  6. pubmed/pubmed23n0005.jsonl +3 -0
  7. pubmed/pubmed23n0006.jsonl +3 -0
  8. pubmed/pubmed23n0007.jsonl +3 -0
  9. pubmed/pubmed23n0008.jsonl +3 -0
  10. pubmed/pubmed23n0009.jsonl +3 -0
  11. pubmed/pubmed23n0010.jsonl +3 -0
  12. pubmed/pubmed23n0011.jsonl +3 -0
  13. pubmed/pubmed23n0012.jsonl +3 -0
  14. pubmed/pubmed23n0013.jsonl +3 -0
  15. pubmed/pubmed23n0014.jsonl +3 -0
  16. pubmed/pubmed23n0015.jsonl +3 -0
  17. pubmed/pubmed23n0016.jsonl +3 -0
  18. pubmed/pubmed23n0017.jsonl +3 -0
  19. pubmed/pubmed23n0018.jsonl +3 -0
  20. pubmed/pubmed23n0019.jsonl +3 -0
  21. pubmed/pubmed23n0020.jsonl +3 -0
  22. pubmed/pubmed23n0021.jsonl +3 -0
  23. pubmed/pubmed23n0022.jsonl +3 -0
  24. pubmed/pubmed23n0023.jsonl +3 -0
  25. pubmed/pubmed23n0024.jsonl +3 -0
  26. pubmed/pubmed23n0025.jsonl +3 -0
  27. pubmed/pubmed23n0026.jsonl +3 -0
  28. pubmed/pubmed23n0027.jsonl +3 -0
  29. pubmed/pubmed23n0028.jsonl +3 -0
  30. pubmed/pubmed23n0029.jsonl +3 -0
  31. pubmed/pubmed23n0030.jsonl +3 -0
  32. pubmed/pubmed23n0031.jsonl +3 -0
  33. pubmed/pubmed23n0032.jsonl +3 -0
  34. pubmed/pubmed23n0033.jsonl +3 -0
  35. pubmed/pubmed23n0034.jsonl +3 -0
  36. pubmed/pubmed23n0035.jsonl +3 -0
  37. pubmed/pubmed23n0036.jsonl +3 -0
  38. pubmed/pubmed23n0037.jsonl +3 -0
  39. pubmed/pubmed23n0038.jsonl +3 -0
  40. pubmed/pubmed23n0039.jsonl +3 -0
  41. pubmed/pubmed23n0040.jsonl +3 -0
  42. pubmed/pubmed23n0041.jsonl +3 -0
  43. pubmed/pubmed23n0042.jsonl +3 -0
  44. pubmed/pubmed23n0050.jsonl +3 -0
  45. pubmed/pubmed23n0053.jsonl +3 -0
  46. pubmed/pubmed23n0060.jsonl +3 -0
  47. pubmed/pubmed23n0062.jsonl +3 -0
  48. pubmed/pubmed23n0066.jsonl +3 -0
  49. pubmed/pubmed23n0068.jsonl +3 -0
  50. pubmed/pubmed23n0069.jsonl +3 -0
README.md CHANGED
@@ -11,28 +11,27 @@ tags:
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
@@ -44,7 +43,7 @@ Each row is a snippet of Wikipedia, which includes the following features:
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
@@ -60,7 +59,7 @@ git clone https://huggingface.co/datasets/MedRAG/wikipedia
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
 
 
11
  size_categories:
12
  - 10M<n<100M
13
  ---
14
+ # The PubMed Corpus in MedRAG
15
 
16
+ This HF dataset contains the snippets from the PubMed 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 "PMID" column is added.
20
 
21
  ## Dataset Details
22
 
23
  ### Dataset Descriptions
24
 
25
+ [PubMed](https://pubmed.ncbi.nlm.nih.gov/) is the most widely used literature resource, containing over 36 million biomedical articles.
26
+ For MedRAG, we use a PubMed subset of 23.9 million articles with valid titles and abstracts.
27
+ This HF dataset contains our ready-to-use snippets for the PubMed corpus, including 23,898,701 snippets with an average of 296 tokens.
 
28
 
29
  ### Dataset Structure
30
+ Each row is a snippet of PubMed, which includes the following features:
31
 
32
  - id: a unique identifier of the snippet
33
+ - title: the title of the PubMed article from which the snippet is collected
34
+ - content: the abstract of the PubMed article from which the snippet is collected
35
  - contents: a concatenation of 'title' and 'content', which will be used by the [BM25](https://github.com/castorini/pyserini) retriever
36
 
37
  ## Uses
 
43
  <!-- This section describes suitable use cases for the dataset. -->
44
 
45
  ```shell
46
+ git clone https://huggingface.co/datasets/MedRAG/pubmed
47
  ```
48
 
49
  ### Use in MedRAG
 
59
  "D": "paralysis of the facial muscles, loss of taste, lacrimation and decreased salivation."
60
  }
61
 
62
+ >> medrag = MedRAG(llm_name="OpenAI/gpt-3.5-turbo-16k", rag=True, retriever_name="MedCPT", corpus_name="PubMed")
63
  >> answer, snippets, scores = medrag.answer(question=question, options=options, k=32) # scores are given by the retrieval system
64
  ```
65
 
pubmed/pubmed23n0001.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6bd70117f34f7293a7e6e017b2abd3bd2fd0a508abfed4d9613d7616d599afca
3
+ size 34168949
pubmed/pubmed23n0002.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9cc02c8d9f4754e90f026c95efc334e51b2905d9b35a89f0e1d93852c86cb618
3
+ size 28563378
pubmed/pubmed23n0003.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bbcda43c42597be00b67f5a9fbac9faff376a2d23c2aff3baf899701da503533
3
+ size 25504059
pubmed/pubmed23n0004.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87624cb5ab57b8fcd7475161b9a3a380df718f535e9aea7b4f2a465ff2351825
3
+ size 30307519
pubmed/pubmed23n0005.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ac484b969d650bdb31f32fa112e06646c49448121c7daad6171c166edc5eb39
3
+ size 28204162
pubmed/pubmed23n0006.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:170d63dcd740aaa2acf283cb4042be5aa0f76f2f83129a379b2a99879a15e9e4
3
+ size 36014930
pubmed/pubmed23n0007.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f745d7a72a3bca55935c1284d21041b69bcfff8f281e9d144c334723213bed2
3
+ size 35699756
pubmed/pubmed23n0008.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b930d0435fd4cdff7f2262631947fc7af72ce8b8c78397499fbde92c8261694c
3
+ size 34301538
pubmed/pubmed23n0009.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:57a23230ef87ef04b7724bd1a3bf88f64818ac263bfec9ebc20f5dac2400cab3
3
+ size 10205645
pubmed/pubmed23n0010.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dbaae0ff700be034af2c73b5f9f2f2e499b15ff0ec771a4b22168b7348a92259
3
+ size 17597800
pubmed/pubmed23n0011.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:007e945f6efeb83e7444bd14481d39f166ecaa90d3ed1f274401f92fc25b98f1
3
+ size 27182240
pubmed/pubmed23n0012.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:90b030254b0e9778b4a99108d7f7468feac1fe886c9cd9e014f7c5e5ae90d052
3
+ size 22882784
pubmed/pubmed23n0013.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:802ce3af6c4dc5e0608ad0006560c783a944f1aefca591cc5dbd6766be14cde3
3
+ size 23550463
pubmed/pubmed23n0014.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:76a2e86653c872a98e20c08730b542e0128771ad5e2fa5153479210993630d09
3
+ size 29128752
pubmed/pubmed23n0015.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:58d3d983d114d8e3addeff826c2d671b3e4fbe4d3dff1514f540677b89dd6889
3
+ size 26508520
pubmed/pubmed23n0016.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c4c9ed4fb9597c6cfdd8c93021ca27883bb255bcb79a1624f2a0c1185d548f26
3
+ size 26843946
pubmed/pubmed23n0017.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:08186ae9825dbbc6158d89af8bcd71462df97cd3b23aad7d2c577b84d90051a6
3
+ size 24375824
pubmed/pubmed23n0018.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d368afa993505387a6e75874b6201f979f23b5156cede598bc2f94c49a14b6ba
3
+ size 21834093
pubmed/pubmed23n0019.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:22aedff2b1c3778cb83f4e778ebe11f7834f75eccb7584a5f4a4c05744de56b4
3
+ size 26350732
pubmed/pubmed23n0020.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d3ac44e1b0c94918f1a0bb5e06ffb348ed522c6b2c147b52fe38124048f0a55f
3
+ size 18730526
pubmed/pubmed23n0021.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:633cdbfadd5b0a1a2503c63b594fbca9968875219a6d44adc98b94c476a92582
3
+ size 23013893
pubmed/pubmed23n0022.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:273a89c2531c0213f10429df2e1e2070541891edefd361de458c577a24516f97
3
+ size 23770584
pubmed/pubmed23n0023.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8e0c31201f7871dd9e3160e14811899dc5159ad9cc2628384971560272c993d6
3
+ size 23062203
pubmed/pubmed23n0024.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f6c86dbf85fc80e782e3f72c0757763391218a117e0cb01bd2ea0382b1e89cc8
3
+ size 23459423
pubmed/pubmed23n0025.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c5fdcadcefafc2d2b482b44ceb3a4ab9f733f38cc8bbe036fc5b9da0229ddac
3
+ size 21514905
pubmed/pubmed23n0026.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7cb098c6592f4e5bc4b61ec8bc5cf418fcd8bccbf8058cec9220668231eaaaf9
3
+ size 24133272
pubmed/pubmed23n0027.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e527ca3db741d53cadb98f0b32587b84f836a42a51d4c365d810d5105cd81ee2
3
+ size 32110617
pubmed/pubmed23n0028.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2b882a507d8b045cdae607d72a544800c2bea0455de086bf3b862e506e17fee7
3
+ size 27949813
pubmed/pubmed23n0029.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:90e8cb6ef6fe669aa0c18086015cc3429b74196f36863cfd4128ef0bc8dcc971
3
+ size 24321978
pubmed/pubmed23n0030.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:34a2137c7aec6e0291b40b6b10ed2d6af302f9b98d2a373b55d7ad509f99b7f9
3
+ size 22141118
pubmed/pubmed23n0031.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c7a7444b9f03cc9a40f60b412ebb2b9997ca93647299ba6e6e52a30de404e3c1
3
+ size 25729092
pubmed/pubmed23n0032.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03c6a8da2734ea47942c4020374956fbc42c800eabfa974b10a4d465de7db32b
3
+ size 25787009
pubmed/pubmed23n0033.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c74c71be7f1033702aed66170367849548f719e86f9e6e2c54a53fcf182d5793
3
+ size 25723116
pubmed/pubmed23n0034.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:66cfa171e24748d7293673ed4c6809ee7cfaf02dd44a148e164172e92402a9bd
3
+ size 15425555
pubmed/pubmed23n0035.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:635a072d52f1bb76c0ef8e509daec9a10714e6b0a8f0bcecf197774eaf46b8f7
3
+ size 13238885
pubmed/pubmed23n0036.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14437eb17277d32801914956c40adb7c57020541bd6835a2cb3b0fd1328af020
3
+ size 23759082
pubmed/pubmed23n0037.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eadc78aa92f0458be53a1502eff77a518cd526db80bdba64a4d737448ab3f4e4
3
+ size 24703041
pubmed/pubmed23n0038.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ad8234e76b6a5d9abeb83cb2e40c8eb156c94466e6290e45b5cb28c4b1998cf
3
+ size 23697971
pubmed/pubmed23n0039.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3bf378c9d1c5b36f2182fa517221333f6970f8b7a56bd71671ed62aeb3fac62d
3
+ size 26575617
pubmed/pubmed23n0040.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a31269ba2f4988412a0df8293ba371861070cb7e675e545283844a42184c37d
3
+ size 21330026
pubmed/pubmed23n0041.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bb467a4c44254ec1dc3120e645e90065e41de459f34f62b17a47903977601b22
3
+ size 23165957
pubmed/pubmed23n0042.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ab0bd83fad259926bcab0bc03109407715327efe3ffc84be5a48abb7c153094
3
+ size 33481943
pubmed/pubmed23n0050.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:82ea6d2c6a57642c0c49f3a183944493c1b5cc938c80c25b15809aa88bf760b4
3
+ size 53768378
pubmed/pubmed23n0053.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8bf0a3d41cb9a769068266acfe1e1ec708fc50f9538cd9525cec66ddee4c847b
3
+ size 53472155
pubmed/pubmed23n0060.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ed896ec5879db34d54b8292da658d053a36f8f4a08cc2ed2df09c24ebb37bd0
3
+ size 46419602
pubmed/pubmed23n0062.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9dd640fecbf00720acca54c28e7df05dc3272c61e3d0e9c9be9cfceea35b215e
3
+ size 50298211
pubmed/pubmed23n0066.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3e8527883d39cf6b2f13132fbb53fe93372a93e5cdbf5ca4061070b32df778b0
3
+ size 53875670
pubmed/pubmed23n0068.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c2ead3b087090129531991e9464dd33dbde07a42d74b8cff2cb23d09a893bcd3
3
+ size 49949900
pubmed/pubmed23n0069.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85ee26be87ff1eb1b61d76d4a498994aa5a706e43f9dab5b63856555c0d3740a
3
+ size 47344563