File size: 7,344 Bytes
453a9f4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cfa162d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
453a9f4
 
 
 
 
 
 
 
cfa162d
453a9f4
cfa162d
 
 
 
 
 
 
 
453a9f4
cfa162d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
453a9f4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cfa162d
453a9f4
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
---
pretty_name: PVK-Dataset
language:
  - en
task_categories:
  - question-answering
  - text-generation
tags:
  - perovskite
  - solar-cells
  - materials-science
  - scientific-question-answering
  - instruction-tuning
  - knowledge-graph
  - retrieval-augmented-generation
configs:
  - config_name: pvk-sci
    default: true
    data_files:
      - split: data
        path: PVK-Sci/data.jsonl
  - config_name: pvk-cite
    data_files:
      - split: data
        path:
          - PVK-Cite/citation_qa_v1.jsonl
          - PVK-Cite/long_citation_qa_v0.jsonl
  - config_name: pvk-exp
    data_files:
      - split: data
        path: PVK-Exp/experimental_analysis_v5.jsonl
  - config_name: pvk-mcq
    data_files:
      - split: data
        path: PVK-MCQ/data.jsonl
  - config_name: pvk-qa
    data_files:
      - split: data
        path: PVK-QA/data.jsonl
  - config_name: pvk-kg-entities
    data_files:
      - split: data
        path: PVK-KG/entities.jsonl
  - config_name: pvk-kg-relationships
    data_files:
      - split: data
        path: PVK-KG/relationships.jsonl
  - config_name: pvk-kg-chunks
    data_files:
      - split: data
        path: PVK-KG/text_chunks.jsonl
---

# PVK-Dataset

PVK-Dataset is a collection of scientific datasets for developing and evaluating large language models in perovskite solar-cell research. The collection supports domain instruction tuning, literature-grounded question answering, experimental data analysis, and knowledge retrieval.

The datasets accompany the manuscript **From Literature to Lab: Closed-Loop Advancement of Perovskite Solar Cells via Domain Knowledge Guided LLM**.

## Dataset collection — release v0.1

| Dataset | Included records | Content and files |
| --- | ---: | --- |
| **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. |
| **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. |
| **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. |
| **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). |
| **PVK-MCQ** | 1,103 questions | [Multiple-choice benchmark](PVK-MCQ/data.jsonl) with answer options, correct answers, explanations, and difficulty labels. |
| **PVK-QA** | 1,103 QA records | [Open-ended benchmark](PVK-QA/data.jsonl) with supporting context, reference answers, and source DOIs covering 691 publications. |

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.

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.

## Loading the data

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.

```python
from datasets import load_dataset

mcq = load_dataset("plsun/PVK-Dataset", "pvk-mcq", split="data")
print(mcq[0])

qa = load_dataset("plsun/PVK-Dataset", "pvk-qa", split="data")
cite = load_dataset("plsun/PVK-Dataset", "pvk-cite", split="data")
```

Available configurations are `pvk-sci`, `pvk-cite`, `pvk-exp`, `pvk-mcq`, `pvk-qa`, `pvk-kg-entities`, `pvk-kg-relationships`, and `pvk-kg-chunks`.

To download the repository:

```python
from huggingface_hub import snapshot_download

snapshot_download(
    repo_id="plsun/PVK-Dataset",
    repo_type="dataset",
    local_dir="PVK-Dataset",
)
```

## Record formats

| Configuration | Fields |
| --- | --- |
| `pvk-sci` | `record_id`, `messages` |
| `pvk-cite` | `record_id`, `source_version`, `messages` |
| `pvk-exp` | `record_id`, `id`, `problem`, `answer`, `markdown` |
| `pvk-mcq` | `record_id`, `question`, `options`, `correct_answer`, `explanation`, `difficulty` |
| `pvk-qa` | `record_id`, `messages`, `source_doi` |
| `pvk-kg-entities` | `__id__`, `entity_name` |
| `pvk-kg-relationships` | `__id__`, `src_id`, `tgt_id` |
| `pvk-kg-chunks` | `chunk_id`, `content`, `source_id` |

`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.

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.

## Data construction

The collection is constructed from scientific literature on perovskite solar cells. A domain-specific research taxonomy guides the extraction and organization of scientific information. The data-generation pipeline combines information extraction, quality validation, and answer synthesis to produce task-specific instruction data.

PVK-Cite connects answers to supporting literature evidence. PVK-Exp pairs experimental tables with questions about quantitative results and their interpretation. PVK-KG organizes extracted knowledge and its sources for retrieval-augmented generation.

## Intended use

- **Model development:** use PVK-Sci, PVK-Cite, and PVK-Exp for domain instruction tuning and task-specific capability development.
- **Knowledge retrieval:** use PVK-KG to retrieve structured scientific knowledge and supporting sources.
- **Benchmark evaluation:** use PVK-MCQ for multiple-choice accuracy and PVK-QA for reference-based assessment of open-ended answers. Keep these evaluation benchmarks separate from model-training data.

## Availability

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.

## Related resources

- [Project website](https://sites.google.com/view/pvk-llm)
- [Dataset repository](https://huggingface.co/datasets/plsun/PVK-Dataset)

## Questions and feedback

Please use the repository's [Community tab](https://huggingface.co/datasets/plsun/PVK-Dataset/discussions) to report data issues or ask questions about the collection.