plsun commited on
Commit
cfa162d
·
verified ·
1 Parent(s): 453a9f4

Publish versioned PVK dataset files and loading configurations

Browse files
.gitattributes CHANGED
@@ -57,3 +57,10 @@ 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
+ PVK-Cite/citation_qa_v1.jsonl filter=lfs diff=lfs merge=lfs -text
61
+ PVK-Cite/long_citation_qa_v0.jsonl filter=lfs diff=lfs merge=lfs -text
62
+ PVK-Exp/experimental_analysis_v5.jsonl filter=lfs diff=lfs merge=lfs -text
63
+ PVK-KG/entities.jsonl filter=lfs diff=lfs merge=lfs -text
64
+ PVK-KG/relationships.jsonl filter=lfs diff=lfs merge=lfs -text
65
+ PVK-KG/text_chunks.jsonl filter=lfs diff=lfs merge=lfs -text
66
+ PVK-Sci/data.jsonl filter=lfs diff=lfs merge=lfs -text
PVK-Cite/citation_qa_v1.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f049612841246b609a7ca4b7f7604dae0679612722da2e30251327c7a4728d9
3
+ size 13715357
PVK-Cite/long_citation_qa_v0.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7abcbf33135e6cf35e89810dfeab5af94efe37ad74586d77ffa4b5876fd03987
3
+ size 78443982
PVK-Exp/experimental_analysis_v5.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5d69091a6486402b0cb1a1a2c2a6b9a6bdfbf8e80f42bd15b0da348c349fffef
3
+ size 18805847
PVK-KG/entities.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:040056fcd09add55e3cc5d896121ce00b20731a24fe01fdef18ad0b3a2366017
3
+ size 24566857
PVK-KG/relationships.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ff46481562df8369ec94234869e12aebddc6ca0d9b19ec5d1e356f49a8bd2c2
3
+ size 33228100
PVK-KG/text_chunks.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:850b5c5454d9c2f98c0694f9904460b456cfaa5f6ca51daab147049395406871
3
+ size 125561670
PVK-MCQ/data.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
PVK-QA/data.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
PVK-QA/source_articles.csv ADDED
The diff for this file is too large to render. See raw diff
 
PVK-Sci/data.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:94ea9780d26e872565393c11aa2edfb4e6d7489ddcd3165a3785e9b2d0f93519
3
+ size 161447471
README.md CHANGED
@@ -13,6 +13,42 @@ tags:
13
  - instruction-tuning
14
  - knowledge-graph
15
  - retrieval-augmented-generation
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  ---
17
 
18
  # PVK-Dataset
@@ -21,18 +57,65 @@ PVK-Dataset is a collection of scientific datasets for developing and evaluating
21
 
22
  The datasets accompany the manuscript **From Literature to Lab: Closed-Loop Advancement of Perovskite Solar Cells via Domain Knowledge Guided LLM**.
23
 
24
- ## Dataset collection
25
 
26
- | Dataset | Role | Content |
27
- | --- | --- | --- |
28
- | **PVK-Sci** | Foundational domain instruction tuning | Scientific questions and answers covering device structure, performance enhancement, interface engineering, stability, materials, defects and recombination, and photovoltaic metrics. |
29
- | **PVK-Cite** | Citation-grounded instruction tuning | Questions, supporting literature context, and answers with citations to the evidence used. |
30
- | **PVK-Exp** | Experimental analysis instruction tuning | Questions and reference answers based on scientific tables, including performance-metric extraction, comparison of experimental results, and interpretation of trends. |
31
- | **PVK-KG** | Structured knowledge retrieval | Domain entities, relations, and source information organized as a perovskite knowledge graph. |
32
- | **PVK-MCQ** | Multiple-choice evaluation | Questions with answer options, correct answers, explanations, and difficulty labels. |
33
- | **PVK-QA** | Open-ended question-answering evaluation | Scientific questions with supporting context and reference answers. |
34
 
35
- PVK-MCQ and PVK-QA each contain **1,103 evaluation examples**.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
 
37
  ## Data construction
38
 
@@ -48,9 +131,7 @@ PVK-Cite connects answers to supporting literature evidence. PVK-Exp pairs exper
48
 
49
  ## Availability
50
 
51
- The current repository release contains this dataset card. Dataset files are pending upload.
52
-
53
- See [Files and versions](https://huggingface.co/datasets/plsun/PVK-Dataset/tree/main) for the files available in the repository.
54
 
55
  ## Related resources
56
 
 
13
  - instruction-tuning
14
  - knowledge-graph
15
  - retrieval-augmented-generation
16
+ configs:
17
+ - config_name: pvk-sci
18
+ default: true
19
+ data_files:
20
+ - split: data
21
+ path: PVK-Sci/data.jsonl
22
+ - config_name: pvk-cite
23
+ data_files:
24
+ - split: data
25
+ path:
26
+ - PVK-Cite/citation_qa_v1.jsonl
27
+ - PVK-Cite/long_citation_qa_v0.jsonl
28
+ - config_name: pvk-exp
29
+ data_files:
30
+ - split: data
31
+ path: PVK-Exp/experimental_analysis_v5.jsonl
32
+ - config_name: pvk-mcq
33
+ data_files:
34
+ - split: data
35
+ path: PVK-MCQ/data.jsonl
36
+ - config_name: pvk-qa
37
+ data_files:
38
+ - split: data
39
+ path: PVK-QA/data.jsonl
40
+ - config_name: pvk-kg-entities
41
+ data_files:
42
+ - split: data
43
+ path: PVK-KG/entities.jsonl
44
+ - config_name: pvk-kg-relationships
45
+ data_files:
46
+ - split: data
47
+ path: PVK-KG/relationships.jsonl
48
+ - config_name: pvk-kg-chunks
49
+ data_files:
50
+ - split: data
51
+ path: PVK-KG/text_chunks.jsonl
52
  ---
53
 
54
  # PVK-Dataset
 
57
 
58
  The datasets accompany the manuscript **From Literature to Lab: Closed-Loop Advancement of Perovskite Solar Cells via Domain Knowledge Guided LLM**.
59
 
60
+ ## Dataset collection — release v0.1
61
 
62
+ | Dataset | Included records | Content and files |
63
+ | --- | ---: | --- |
64
+ | **PVK-Sci** | 55,101 QA records | [Scientific questions and answers](PVK-Sci/data.jsonl) covering device structure, performance enhancement, interface engineering, stability, materials, defects and recombination, and photovoltaic metrics. |
65
+ | **PVK-Cite** | 5,819 QA records | [Citation QA v1](PVK-Cite/citation_qa_v1.jsonl): 1,416 records; [long-citation QA v0](PVK-Cite/long_citation_qa_v0.jsonl): 4,403 records. Each record includes supporting context and an answer with citations. |
66
+ | **PVK-Exp** | 4,194 QA records | [Experimental analysis v5](PVK-Exp/experimental_analysis_v5.jsonl): questions and reference answers based on scientific tables, including performance-metric extraction and interpretation of experimental results. |
67
+ | **PVK-KG** | 50,208 entity records; 75,521 directed relationship records; 69,130 text chunks | LightRAG retrieval snapshot: [entities](PVK-KG/entities.jsonl), [relationships](PVK-KG/relationships.jsonl), and [source text chunks](PVK-KG/text_chunks.jsonl). |
68
+ | **PVK-MCQ** | 1,103 questions | [Multiple-choice benchmark](PVK-MCQ/data.jsonl) with answer options, correct answers, explanations, and difficulty labels. |
69
+ | **PVK-QA** | 1,103 QA records | [Open-ended benchmark](PVK-QA/data.jsonl) with supporting context, reference answers, and source DOIs covering 691 publications. |
70
 
71
+ Release v0.1 packages the source versions identified in [dataset_manifest.json](dataset_manifest.json). The PVK-Sci, PVK-Cite, and PVK-Exp counts in this release differ from the totals reported in the manuscript. The PVK-KG files contain the available LightRAG retrieval snapshot; they are not the manuscript's 23,789-node/22,272-relationship snapshot.
72
+
73
+ The graph export preserves the stored entity names, source and target names, and text chunks. Relationship records do not include explicit predicates. Embedding matrices are omitted from this export.
74
+
75
+ ## Loading the data
76
+
77
+ All main data files use UTF-8 JSON Lines, with one record per line. Each configuration exposes a single split named `data`, preserving the source record order.
78
+
79
+ ```python
80
+ from datasets import load_dataset
81
+
82
+ mcq = load_dataset("plsun/PVK-Dataset", "pvk-mcq", split="data")
83
+ print(mcq[0])
84
+
85
+ qa = load_dataset("plsun/PVK-Dataset", "pvk-qa", split="data")
86
+ cite = load_dataset("plsun/PVK-Dataset", "pvk-cite", split="data")
87
+ ```
88
+
89
+ Available configurations are `pvk-sci`, `pvk-cite`, `pvk-exp`, `pvk-mcq`, `pvk-qa`, `pvk-kg-entities`, `pvk-kg-relationships`, and `pvk-kg-chunks`.
90
+
91
+ To download the repository:
92
+
93
+ ```python
94
+ from huggingface_hub import snapshot_download
95
+
96
+ snapshot_download(
97
+ repo_id="plsun/PVK-Dataset",
98
+ repo_type="dataset",
99
+ local_dir="PVK-Dataset",
100
+ )
101
+ ```
102
+
103
+ ## Record formats
104
+
105
+ | Configuration | Fields |
106
+ | --- | --- |
107
+ | `pvk-sci` | `record_id`, `messages` |
108
+ | `pvk-cite` | `record_id`, `source_version`, `messages` |
109
+ | `pvk-exp` | `record_id`, `id`, `problem`, `answer`, `markdown` |
110
+ | `pvk-mcq` | `record_id`, `question`, `options`, `correct_answer`, `explanation`, `difficulty` |
111
+ | `pvk-qa` | `record_id`, `messages`, `source_doi` |
112
+ | `pvk-kg-entities` | `__id__`, `entity_name` |
113
+ | `pvk-kg-relationships` | `__id__`, `src_id`, `tgt_id` |
114
+ | `pvk-kg-chunks` | `chunk_id`, `content`, `source_id` |
115
+
116
+ `messages` is a list of objects with `role` and `content` fields. Roles are `system`, `user`, and `assistant`. Scientific prompts, reference answers, citation context, answer keys, and original record order are preserved. For PVK-Exp, `id` retains the original source identifier, while `record_id` identifies the released row. Graph relationship endpoints are stored entity names.
117
+
118
+ The [PVK-QA source table](PVK-QA/source_articles.csv) links each QA record to its DOI, article title, publication year, and journal. The [dataset manifest](dataset_manifest.json) provides record counts, source-version filenames, transformation descriptions, file sizes, and SHA-256 checksums.
119
 
120
  ## Data construction
121
 
 
131
 
132
  ## Availability
133
 
134
+ The data files listed above are included in this release. See [Files and versions](https://huggingface.co/datasets/plsun/PVK-Dataset/tree/main) for downloads and the commit history. Pin a repository revision when citing or reproducing results from a particular release.
 
 
135
 
136
  ## Related resources
137
 
dataset_manifest.json ADDED
@@ -0,0 +1,195 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "release": "v0.1",
3
+ "format": "JSON Lines (UTF-8)",
4
+ "files": [
5
+ {
6
+ "dataset": "PVK-Sci",
7
+ "path": "PVK-Sci/data.jsonl",
8
+ "records": 55101,
9
+ "bytes": 161447471,
10
+ "sha256": "94ea9780d26e872565393c11aa2edfb4e6d7489ddcd3165a3785e9b2d0f93519",
11
+ "fields": [
12
+ "record_id",
13
+ "messages"
14
+ ],
15
+ "source_file": "1108_train.json",
16
+ "source_sha256": "e67bd6a659a7cbdcca463361d41df8459f7d204a5d315f51fdc3c28a23ffaeaa",
17
+ "transformation": "Unwrap instances; retain all messages and source order; add stable record_id."
18
+ },
19
+ {
20
+ "dataset": "PVK-Cite",
21
+ "path": "PVK-Cite/citation_qa_v1.jsonl",
22
+ "records": 1416,
23
+ "bytes": 13715357,
24
+ "sha256": "5f049612841246b609a7ca4b7f7604dae0679612722da2e30251327c7a4728d9",
25
+ "fields": [
26
+ "record_id",
27
+ "source_version",
28
+ "messages"
29
+ ],
30
+ "source_file": "perovskite_cite_sharegpt_format_v1.json",
31
+ "source_sha256": "344bfc869a1427fea12e404cd73bd2c857be570983f48516426ac0376e5a5a16",
32
+ "transformation": "Map ShareGPT role names to system/user/assistant; preserve all message text and order."
33
+ },
34
+ {
35
+ "dataset": "PVK-Cite",
36
+ "path": "PVK-Cite/long_citation_qa_v0.jsonl",
37
+ "records": 4403,
38
+ "bytes": 78443982,
39
+ "sha256": "7abcbf33135e6cf35e89810dfeab5af94efe37ad74586d77ffa4b5876fd03987",
40
+ "fields": [
41
+ "record_id",
42
+ "source_version",
43
+ "messages"
44
+ ],
45
+ "source_file": "perovskite_long_cite_v0.json",
46
+ "source_sha256": "4a20eb2ba784d4a6092b8486713c22aa61c47584a071832ab1a5e44f1171324b",
47
+ "transformation": "Represent system_prompt, query_text and answer_with_references as messages; preserve all text and order."
48
+ },
49
+ {
50
+ "dataset": "PVK-Exp",
51
+ "path": "PVK-Exp/experimental_analysis_v5.jsonl",
52
+ "records": 4194,
53
+ "bytes": 18805847,
54
+ "sha256": "5d69091a6486402b0cb1a1a2c2a6b9a6bdfbf8e80f42bd15b0da348c349fffef",
55
+ "fields": [
56
+ "record_id",
57
+ "id",
58
+ "problem",
59
+ "answer",
60
+ "markdown"
61
+ ],
62
+ "source_file": "experimental_analysis_v5.json",
63
+ "source_sha256": "141c79f840f533058edbcb20d04544011c34c26d992ac80cfaeb63fa4aba95fa",
64
+ "transformation": "Retain all original fields and record order; add stable record_id."
65
+ },
66
+ {
67
+ "dataset": "PVK-MCQ",
68
+ "path": "PVK-MCQ/data.jsonl",
69
+ "records": 1103,
70
+ "bytes": 1038933,
71
+ "sha256": "cfcd5063d7e708a8123d60cd1488f684a5f682c540bc113e08fbf250b922c985",
72
+ "fields": [
73
+ "record_id",
74
+ "question",
75
+ "options",
76
+ "correct_answer",
77
+ "explanation",
78
+ "difficulty"
79
+ ],
80
+ "source_file": "val_MCQ_balanced.json",
81
+ "source_sha256": "90fdc8cc16d9a0d50524d23e5c5af6abe6216c205f18c1bb6734084776b9a250",
82
+ "transformation": "Unwrap mcqs; retain questions, options, answer keys, explanations, difficulty and order; add stable record_id."
83
+ },
84
+ {
85
+ "dataset": "PVK-QA",
86
+ "path": "PVK-QA/data.jsonl",
87
+ "records": 1103,
88
+ "bytes": 3467992,
89
+ "sha256": "46c86633c8755acfb1f2a6b5b77501198e2c3b4596eb6fdb916c17d72a6bf353",
90
+ "fields": [
91
+ "record_id",
92
+ "messages",
93
+ "source_doi"
94
+ ],
95
+ "source_file": "1029_val.json",
96
+ "source_sha256": "dd93cff59e7a5007764e4b3c7a9422bd1ab57681a539e4791ed6725caee31bde",
97
+ "transformation": "Unwrap instances; retain messages and order; add stable record_id and recovered source DOI."
98
+ },
99
+ {
100
+ "dataset": "PVK-QA",
101
+ "path": "PVK-QA/source_articles.csv",
102
+ "records": 1103,
103
+ "unique_source_dois": 691,
104
+ "bytes": 187861,
105
+ "sha256": "07e6113499b53cd9988dff5190c8e7513b70744fc92adeada8238bb29b3420b3",
106
+ "fields": [
107
+ "record_id",
108
+ "doi",
109
+ "title",
110
+ "publication_year",
111
+ "journal"
112
+ ],
113
+ "source_file": "qa_article_mapping.csv",
114
+ "source_sha256": "4d9fa1fc18b6812737b45f6b2b95cf2b932bb9bf291e9e2f6b14f36033aab39f",
115
+ "transformation": "Select publication metadata and link it to stable QA record IDs."
116
+ },
117
+ {
118
+ "dataset": "PVK-KG",
119
+ "path": "PVK-KG/entities.jsonl",
120
+ "records": 50208,
121
+ "bytes": 24566857,
122
+ "sha256": "040056fcd09add55e3cc5d896121ce00b20731a24fe01fdef18ad0b3a2366017",
123
+ "fields": [
124
+ "__id__",
125
+ "entity_name"
126
+ ],
127
+ "source_file": "vdb_entities.json",
128
+ "source_sha256": "090bbfee3291e058ed98167f85442b1988487cb87f701f9f528bcca5f13f61b7",
129
+ "transformation": "Export every original data record in order; omit the embedding matrix and store-level embedding_dim."
130
+ },
131
+ {
132
+ "dataset": "PVK-KG",
133
+ "path": "PVK-KG/relationships.jsonl",
134
+ "records": 75521,
135
+ "bytes": 33228100,
136
+ "sha256": "1ff46481562df8369ec94234869e12aebddc6ca0d9b19ec5d1e356f49a8bd2c2",
137
+ "fields": [
138
+ "__id__",
139
+ "src_id",
140
+ "tgt_id"
141
+ ],
142
+ "source_file": "vdb_relationships.json",
143
+ "source_sha256": "ab54030eb1d79cd83b4b8bca977f8d123a9744436fbe606e83f2dffdb5ef66d1",
144
+ "transformation": "Export every original data record in order; omit the embedding matrix and store-level embedding_dim."
145
+ },
146
+ {
147
+ "dataset": "PVK-KG",
148
+ "path": "PVK-KG/text_chunks.jsonl",
149
+ "records": 69130,
150
+ "bytes": 125561670,
151
+ "sha256": "850b5c5454d9c2f98c0694f9904460b456cfaa5f6ca51daab147049395406871",
152
+ "fields": [
153
+ "chunk_id",
154
+ "content",
155
+ "source_id"
156
+ ],
157
+ "source_file": "kv_store_text_chunks.json",
158
+ "source_sha256": "06816848b892c57cee560c285565961c202e82a8246675685ad8e34884979bf1",
159
+ "transformation": "Export every text chunk with its original dictionary key as chunk_id; retain content and source_id."
160
+ }
161
+ ],
162
+ "datasets": {
163
+ "PVK-Sci": {
164
+ "records": 55101,
165
+ "source_version": "1108_train"
166
+ },
167
+ "PVK-Cite": {
168
+ "records": 5819,
169
+ "citation_qa_v1": 1416,
170
+ "long_citation_qa_v0": 4403
171
+ },
172
+ "PVK-Exp": {
173
+ "records": 4194,
174
+ "source_version": "experimental_analysis_v5"
175
+ },
176
+ "PVK-KG": {
177
+ "entity_records": 50208,
178
+ "directed_relationship_records": 75521,
179
+ "text_chunks": 69130,
180
+ "source_version": "LightRAG_annotate retrieval snapshot",
181
+ "predicate_field_available": false,
182
+ "embedding_matrices_included": false
183
+ },
184
+ "PVK-MCQ": {
185
+ "records": 1103,
186
+ "source_version": "val_MCQ_balanced"
187
+ },
188
+ "PVK-QA": {
189
+ "records": 1103,
190
+ "source_articles": 691,
191
+ "source_version": "1029_val"
192
+ }
193
+ },
194
+ "version_note": "Counts describe the files in release v0.1. PVK-Sci, PVK-Cite and PVK-Exp are the source versions identified above. PVK-KG is the available LightRAG retrieval snapshot, not the 23,789-node/22,272-relationship snapshot reported in the manuscript."
195
+ }