BIaoo commited on
Commit
c859e9a
·
verified ·
1 Parent(s): e809fd4

Publish final-stage LCA embedding training dataset

Browse files
Files changed (8) hide show
  1. .gitattributes +1 -0
  2. README.md +144 -0
  3. checksums.json +29 -0
  4. corpus.jsonl +3 -0
  5. queries.jsonl +0 -0
  6. relations.jsonl +0 -0
  7. retention.jsonl +0 -0
  8. sampling.jsonl +0 -0
.gitattributes CHANGED
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ corpus.jsonl filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: [en, zh]
3
+ task_categories: [text-retrieval]
4
+ tags: [lca, life-cycle-assessment, embeddings, graded-relevance]
5
+ size_categories: [1K<n<10K]
6
+ configs:
7
+ - config_name: queries
8
+ default: true
9
+ data_files:
10
+ - split: train
11
+ path: queries.jsonl
12
+ - config_name: relations
13
+ data_files:
14
+ - split: train
15
+ path: relations.jsonl
16
+ - config_name: corpus
17
+ data_files:
18
+ - split: train
19
+ path: corpus.jsonl
20
+ - config_name: sampling
21
+ data_files:
22
+ - split: train
23
+ path: sampling.jsonl
24
+ - config_name: retention
25
+ data_files:
26
+ - split: train
27
+ path: retention.jsonl
28
+ ---
29
+
30
+ # LCA Embedding Training
31
+
32
+ Graded query–document supervision for **pure embedding retrieval of life-cycle
33
+ inventory (LCI) process datasets**, released by Tiangong-LCA.
34
+
35
+ This snapshot contains the **final-stage training data** used for
36
+ [LCA-Nemotron-Embed-1B](https://huggingface.co/Tiangong-LCA/LCA-Nemotron-Embed-1B).
37
+ It is not the complete data or optimizer state from all prior fine-tuning stages.
38
+ The separate evaluation resource is
39
+ [LCA Retrieval Benchmark](https://huggingface.co/datasets/Tiangong-LCA/LCA-Retrieval-Benchmark).
40
+
41
+ ## Contents
42
+
43
+ | Configuration | Rows | Meaning |
44
+ |---|---:|---|
45
+ | `queries` | 1,256 | Unique training queries, with Chinese companion text and scenario metadata |
46
+ | `relations` | 12,605 | 12,408 primary relations and 197 additional-positive relations |
47
+ | `corpus` | 6,228 | Documents referenced by supervision or query anchors |
48
+ | `sampling` | 2,048 | Training draw inventory for one epoch; repeated queries are intentional |
49
+ | `retention` | 11,848 | Frozen teacher cosine scores for 1,200 unchanged training queries |
50
+
51
+ The relation grade distribution is: grade 4 = 2,486; grade 3 = 549;
52
+ grade 2 = 470; grade 1 = 8,262; grade 0 = 838.
53
+
54
+ ## Loading
55
+
56
+ ```python
57
+ from datasets import load_dataset
58
+
59
+ repo = "Tiangong-LCA/LCA-Embedding-Training"
60
+ # Replace main with the dataset commit SHA for reproducible work.
61
+ queries = load_dataset(repo, "queries", split="train", revision="main")
62
+ relations = load_dataset(repo, "relations", split="train", revision="main")
63
+ corpus = load_dataset(repo, "corpus", split="train", revision="main")
64
+
65
+ documents = {r["document_id"]: r["text"] for r in corpus}
66
+ questions = {r["query_id"]: r["text"] for r in queries}
67
+ example = relations[0]
68
+ print(questions[example["query_id"]])
69
+ print(documents[example["document_id"]])
70
+ print(example["grade"], example["label"])
71
+ ```
72
+
73
+ The files are UTF-8 JSONL and can also be read with Python's standard `json` module.
74
+ `checksums.json` fixes every published payload file; hashes cover uncompressed bytes.
75
+
76
+ ## Schema and label semantics
77
+
78
+ - `queries`: `query_id`, English `text`, companion `text_zh`, `scenario_group`,
79
+ `retrieval_style`, `anchor_document_id`, and `source_family`.
80
+ **Training consumed `text`, not both languages as separate examples.**
81
+ An anchor records query provenance; its presence alone does not create a positive label.
82
+ - `corpus`: stable `document_id`, exact `text`, `source_database`, UTF-8 `text_sha256`.
83
+ Do not replace text with a regenerated or benchmark serialization when reproducing this snapshot.
84
+ - `relations`: joins by query/document IDs. `label` is `direct`, `acceptable`,
85
+ `hard_negative`, or `negative`; `grade` preserves the numeric supervision.
86
+ Grades 3/4 are direct positives at different preference levels; 2 is acceptable;
87
+ 1 is a hard negative; 0 is a negative. Higher positive grade is preferred;
88
+ equal grades do not imply a strict order. `rank` is retained annotation metadata.
89
+ `role` distinguishes `primary` from `additional_positive`; `position` preserves
90
+ ordering within each role. Explanations, evidence and explicit preferences are included.
91
+ - `sampling`: `draw_id`, `query_id`, `role`, and `position`. This is the pre-shuffle
92
+ draw inventory, not a timestamped optimizer-step exposure log.
93
+ - `retention`: teacher cosine similarities, **not relevance probabilities**, used
94
+ to preserve pairwise margins for unchanged queries. These are not new relevance labels.
95
+
96
+ Sampling retains every primary candidate. At most two additional positives per
97
+ query are exposed in an epoch: positions 0–1, 2–3, then 4–5; if an epoch slice is
98
+ empty, positions 0–1 are reused. The released model uses an early selected checkpoint,
99
+ so availability in this dataset does not mean every additional relation was seen by that checkpoint.
100
+ The graded objective separates direct/acceptable positives from negatives and orders
101
+ unequal-grade positives; unlisted query–document pairs are **unjudged**, not negatives.
102
+
103
+ ## Source and construction
104
+
105
+ Process documents are processed retrieval-text representations of Tiangong LCA
106
+ records, BAFU 2025 v2, ELCD 3.2, USLCI / Federal LCA Commons, PlasticsEurope
107
+ Eco-profiles and worldsteel LCI data. The `source_database` and stable document ID
108
+ retain origin information. For BAFU, source attribution is: Life Cycle Inventory
109
+ database of the Swiss Federal Administration, BAFU:2025.
110
+ These text representations are not the original inventory databases and do not
111
+ replace their structured exchange data or methodological documentation.
112
+
113
+ Queries and relevance/preference annotations were constructed and reviewed with
114
+ language-model assistance. They are operational training judgments, not guaranteed
115
+ ground truth or proof of LCA methodological equivalence. Grade and evidence fields
116
+ have been preserved rather than regenerated for this publication.
117
+
118
+ ## Use and limitations
119
+
120
+ Use for domain embedding fine-tuning, graded retrieval experiments and supervision
121
+ analysis. No online reranker is required. Build a new document index with the same
122
+ embedding checkpoint used for queries.
123
+
124
+ This is a train-only resource; do not randomly split its relation rows and claim
125
+ independent query/family generalization. Hold out source families and queries for
126
+ new experiments. Shared corpus documents between training and evaluation are not
127
+ the same as unseen-corpus evaluation. No exact benchmark query text occurs here;
128
+ that check does not prove absence of semantic or scenario overlap.
129
+
130
+ Synthetic query style, model-label bias, restricted candidate pools and truncated
131
+ document inputs limit transfer. The published model used query/document limits of
132
+ 512/2048 tokens, including prefixes and special tokens; this dataset retains full
133
+ stored text and must not be silently truncated during loading.
134
+
135
+ ## Citation
136
+
137
+ ```bibtex
138
+ @misc{tiangong_lca_embedding_training_2026,
139
+ title = {LCA Embedding Training},
140
+ author = {{Tiangong-LCA}},
141
+ year = {2026},
142
+ url = {https://huggingface.co/datasets/Tiangong-LCA/LCA-Embedding-Training}
143
+ }
144
+ ```
checksums.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "files": {
4
+ "README.md": {
5
+ "sha256": "f4738408eb06d91d79f324716aecd53d17a6851e6cd26b66cb155de35254a5bd",
6
+ "bytes": 6625
7
+ },
8
+ "corpus.jsonl": {
9
+ "sha256": "b1db410317793f00b2d19fb465992234997a8b413fb000a0225c9c76cb67b303",
10
+ "bytes": 14282575
11
+ },
12
+ "queries.jsonl": {
13
+ "sha256": "19bc3e5bd027cf8febbdeadc4e5a8a075e0cf86587450b027b9cb6c3cc522044",
14
+ "bytes": 874487
15
+ },
16
+ "relations.jsonl": {
17
+ "sha256": "ab58a06a9e9a7981f995f6cf852fe05c0993c1f8dd5d53a7aa30e941b82a395f",
18
+ "bytes": 9384417
19
+ },
20
+ "retention.jsonl": {
21
+ "sha256": "5146dec0fda83d9958bf45b5362288a7e05a7220c8ec66f32420a0e59d447686",
22
+ "bytes": 2496582
23
+ },
24
+ "sampling.jsonl": {
25
+ "sha256": "e33068a4041ca84cb9ff06a12ddf5e3f626d4dcdbc1b1c2a085789805c3881cf",
26
+ "bytes": 191402
27
+ }
28
+ }
29
+ }
corpus.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1db410317793f00b2d19fb465992234997a8b413fb000a0225c9c76cb67b303
3
+ size 14282575
queries.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
relations.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
retention.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
sampling.jsonl ADDED
The diff for this file is too large to render. See raw diff