Hyukkyu commited on
Commit
dbe8a5f
·
verified ·
1 Parent(s): b8486e7

text2sql: re-mined candidates (100 to depth 1000); teacher scores to come

Browse files
README.md CHANGED
@@ -49,8 +49,8 @@ A seeded sample of [`gretelai/synthetic_text_to_sql`](https://huggingface.co/dat
49
  | Score values | 2 ×30,000 (2: the first positive, 1: any other) |
50
  | Layout | `queries` · `corpus` · `qrels` · `hard-negatives` · `teacher-scores`, split `train` |
51
  | Splits | `corpus`: train · `hard-negatives`: train · `qrels`: train · `queries`: train · `teacher-scores`: train |
52
- | Hard negatives | sources: `dense` · 1,769,501 rows |
53
- | Teacher scores | `jinaai/jina-embeddings-v5-text-small` (the miner's cosine, not a reranker) · 1,799,501 rows (positives included) |
54
  | Ids | `sha1(text)[:20]`; identical texts collapse to one document / query |
55
  | License | `apache-2.0` |
56
 
@@ -78,15 +78,14 @@ Files are Parquet, sorted by id, zstd-compressed, sharded at 500 MB. Every rule
78
 
79
  ## Hard negatives and teacher scores
80
 
81
- Filled by the owner's domain pipeline (`convert_domain.py`, `mine_domain.py`), not yet by the annotation pipeline of the other repositories in this collection:
82
 
83
- - **Corpus**: the source's own passages (its positives and the negatives it provides), not a larger collection.
84
- - **Candidates**: dense retrieval with `jinaai/jina-embeddings-v5-text-small` (full length) over that corpus to depth 300; 60 candidates per query drawn from the rank windows 1–30 (30), 31–100 (20), 101–300 (10), the query's positives excluded. `rank` is the dense rank; `source` is `dense` for a mined row and `dataset` for a negative the source labels itself (ranked after the mined ones).
85
- - **Teacher scores**: the miner's cosine between the query and passage embeddings, one row per (query, positive) and per (query, candidate), `teacher` = `jinaai/jina-embeddings-v5-text-small`. **Not a reranker**: the other repositories carry `jinaai/jina-reranker-v3.5` scores. Re-mining with the collection's plan (100 candidates to depth 1,000) and re-scoring with that reranker are under way; they will replace these two tables, and this section will say so.
86
 
87
  | configs | queries | hard negatives | teacher scores |
88
  |---|---:|---:|---:|
89
- | `hard-negatives` · `teacher-scores` | 30,000 (all) | 1,769,501 (1,769,501 dense) | 1,799,501 |
90
 
91
  ## Load it
92
 
 
49
  | Score values | 2 ×30,000 (2: the first positive, 1: any other) |
50
  | Layout | `queries` · `corpus` · `qrels` · `hard-negatives` · `teacher-scores`, split `train` |
51
  | Splits | `corpus`: train · `hard-negatives`: train · `qrels`: train · `queries`: train · `teacher-scores`: train |
52
+ | Hard negatives | sources: `dense` · 2,970,047 rows |
53
+ | Teacher scores | none yet (0 rows): `jinaai/jina-reranker-v3.5` scores come next |
54
  | Ids | `sha1(text)[:20]`; identical texts collapse to one document / query |
55
  | License | `apache-2.0` |
56
 
 
78
 
79
  ## Hard negatives and teacher scores
80
 
81
+ Filled by the collection's annotation pipeline (`annotation=jina35`). **Interim**: the candidates are final, the teacher scores are still to come.
82
 
83
+ - **Candidates**: dense retrieval with `jinaai/jina-embeddings-v5-text-small` over this corpus to depth 1,000; 100 candidates per query drawn from the rank windows 1–30 (30), 31–100 (30), 101–300 (20), 301–1000 (20), the query's labelled positives excluded. `rank` is the dense rank; `source` is `dense` for a mined row and `dataset` for a negative the source labels itself.
84
+ - **Teacher scores**: none yet. `teacher-scores` holds 0 rows until the `jinaai/jina-reranker-v3.5` scores (listwise, as in the other repositories) are filled in; `datasets` cannot return a 0-example split, so read that file with `pyarrow` / `pandas` meanwhile. The candidates stay.
 
85
 
86
  | configs | queries | hard negatives | teacher scores |
87
  |---|---:|---:|---:|
88
+ | `hard-negatives` · `teacher-scores` | 30,000 (all) | 2,970,047 (2,970,047 dense) | 0 |
89
 
90
  ## Load it
91
 
hard-negatives/train-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:73687cdf78d6269dde3db6bead258239d22539715190f670bc973c0838679d33
3
- size 6259488
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd5f03c4b33bcd7c286f360068e4f2b56a3365594864519207c175ce43cc00f1
3
+ size 10608876
provenance.json CHANGED
@@ -131,5 +131,26 @@
131
  }
132
  ]
133
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
134
  }
135
  }
 
131
  }
132
  ]
133
  }
134
+ },
135
+ "annotation": {
136
+ "namespace": "jina35-u2",
137
+ "stage": "mined; teacher scores to come",
138
+ "miner": "jinaai/jina-embeddings-v5-text-small",
139
+ "dense_top": 1000,
140
+ "sample": {
141
+ "dense_1_30": 30,
142
+ "dense_31_100": 30,
143
+ "dense_101_300": 20,
144
+ "dense_301_1000": 20
145
+ },
146
+ "stats": {
147
+ "queries": 30000,
148
+ "candidates": 2970047,
149
+ "by_source": {
150
+ "dense": 2970047
151
+ },
152
+ "scores": 0,
153
+ "positives": 30000
154
+ }
155
  }
156
  }
teacher-scores/train-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9a3e81b3c6d9c9b143e4de4c3d083fc8dbff48a8dab81e2b52bbe6792a2785d7
3
- size 11828501
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8316266e7cbe6867227eefc104eb93ee2252b885a6127a24b8e5c1982716406a
3
+ size 815