mattmorgis commited on
Commit
c2fe82e
·
verified ·
1 Parent(s): 62f0321

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +9 -6
README.md CHANGED
@@ -65,17 +65,20 @@ You can load the dataset using the Hugging Face `datasets` library:
65
  ```python
66
  from datasets import load_dataset
67
 
68
- # Load the entire dataset
69
  dataset = load_dataset("mattmorgis/bioasq-12b-rag-dataset")
70
 
71
- # Access the corpus
72
  corpus = dataset["corpus"]
73
 
74
- # Access the development questions
75
- dev_questions = dataset["dev"]
 
 
76
 
77
- # Access the test questions
78
- test_questions = dataset["test"]
 
79
  ```
80
 
81
  ### Example RAG Application
 
65
  ```python
66
  from datasets import load_dataset
67
 
68
+ # Load the dataset with specific configurations
69
  dataset = load_dataset("mattmorgis/bioasq-12b-rag-dataset")
70
 
71
+ # Access the corpus configuration
72
  corpus = dataset["corpus"]
73
 
74
+ # Access the questions configuration with its splits
75
+ questions = dataset["questions"]
76
+ dev_questions = questions["dev"]
77
+ test_questions = questions["test"]
78
 
79
+ # You can also access splits directly
80
+ dev_questions = dataset["questions"]["dev"]
81
+ test_questions = dataset["questions"]["test"]
82
  ```
83
 
84
  ### Example RAG Application