Datasets:
Upload README.md with huggingface_hub
Browse files
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
|
69 |
dataset = load_dataset("mattmorgis/bioasq-12b-rag-dataset")
|
70 |
|
71 |
-
# Access the corpus
|
72 |
corpus = dataset["corpus"]
|
73 |
|
74 |
-
# Access the
|
75 |
-
|
|
|
|
|
76 |
|
77 |
-
#
|
78 |
-
|
|
|
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
|