Shah1st commited on
Commit
2a28112
·
verified ·
1 Parent(s): ee74243

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +85 -0
README.md CHANGED
@@ -1,3 +1,88 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ language:
4
+ - uk
5
+ - en
6
+ size_categories:
7
+ - 10K<n<100K
8
  ---
9
+ # Pretrain Dataset for Ukrainian Reranker/Embedder (80k EN→UK)
10
+
11
+ English retrieval dataset with pre-mined hard negatives, designed for translation to Ukrainian and use as a pretraining stage before fine-tuning on competition/domain-specific data.
12
+
13
+ ## Purpose
14
+
15
+ Stage 1 (pretrain) of a 3-stage training pipeline:
16
+ 1. **Pretrain** on this dataset (translated to Ukrainian) — teaches general retrieval mechanism
17
+ 2. **Finetune** on UA-SQuAD — adapts to Ukrainian QA patterns
18
+ 3. **Finetune** on competition train set — adapts to target domain (UNLP 2026)
19
+
20
+ ## Dataset Summary
21
+
22
+ | Source | Rows | Avg Positive Length | Negatives/Row | Domain |
23
+ |---|---|---|---|---|
24
+ | [Natural Questions](https://huggingface.co/datasets/tomaarsen/natural-questions-hard-negatives) | 30,000 | 611 chars | 3 | Wikipedia (broad coverage) |
25
+ | [HotpotQA](https://huggingface.co/datasets/sentence-transformers/hotpotqa) | 20,000 | 438 chars | 3 | Wikipedia (multi-hop reasoning) |
26
+ | [MS MARCO](https://huggingface.co/datasets/sentence-transformers/msmarco-co-condenser-margin-mse-sym-mnrl-mean-v1) | 20,000 | 348 chars | 1–3 | Web search (diverse queries) |
27
+ | [GooAQ](https://huggingface.co/datasets/tomaarsen/gooaq-hard-negatives) | 10,000 | 252 chars | 3 | Google answer boxes (lay explanations) |
28
+ | **Total** | **80,000** | **median 372 chars** | | |
29
+
30
+ ## Design Rationale
31
+
32
+ - **Passage length diversity**: 50-token Google snippets → 300-token multi-paragraph → 2000+ token Wikipedia sections. Matches variable chunking strategies (512-token chunks to full-page chunks).
33
+ - **Hard negatives only**: All sources have pre-mined hard negatives from dense retrievers or BM25 — no random/easy negatives.
34
+ - **Domain coverage**: Broad encyclopedic (NQ, HotpotQA), web search (MS MARCO), and informal Q&A (GooAQ) to generalize across unseen domains.
35
+
36
+ ## Format
37
+
38
+ Parquet file with columns:
39
+
40
+ | Column | Type | Description |
41
+ |---|---|---|
42
+ | `query` | str | Question or search query (English) |
43
+ | `positive` | str | Relevant passage (English) |
44
+ | `negative_1` | str | Hard negative passage #1 |
45
+ | `negative_2` | str | Hard negative passage #2 (may be empty for some MS MARCO rows) |
46
+ | `negative_3` | str | Hard negative passage #3 (may be empty for some MS MARCO rows) |
47
+ | `source` | str | Dataset origin: `nq`, `hotpotqa`, `msmarco`, `gooaq` |
48
+
49
+ ## Statistics
50
+
51
+ ```
52
+ Total rows: 80,000
53
+
54
+ Per source:
55
+ gooaq : 10000 rows | avg positive length: 252 chars | has neg_1: 100%
56
+ hotpotqa : 20000 rows | avg positive length: 438 chars | has neg_1: 100%
57
+ msmarco : 20000 rows | avg positive length: 348 chars | has neg_1: 100%
58
+ nq : 30000 rows | avg positive length: 611 chars | has neg_1: 100%
59
+
60
+ Query length: min=5, median=45, max=630
61
+ Positive length: min=10, median=372, max=9437
62
+ ```
63
+
64
+ ## Translation
65
+
66
+ This dataset is in English. For Ukrainian pretraining, translate using:
67
+ - [TranslateGemma-27B](https://huggingface.co/google/translategemma-27b-it) (self-hosted, best quality for EN→UK)
68
+ - [Lapa LLM v0.1.2](https://huggingface.co/lapa-llm/lapa-v0.1.2-instruct) (Ukrainian-optimized, efficient tokenizer)
69
+ - Claude Haiku 4.5 / GPT-5.4-mini Batch API (commercial alternative)
70
+
71
+ Translated columns (`query_uk`, `positive_uk`, `negative_1_uk`, etc.) will be added after translation.
72
+
73
+ ## Intended Use
74
+
75
+ Training bi-encoder (embedding) and cross-encoder (reranker) models for Ukrainian document retrieval, specifically for the [UNLP 2026 Shared Task on Multi-Domain Document Understanding](https://www.kaggle.com/competitions/unlp-2026-shared-task-on-multi-domain-document-understanding).
76
+
77
+ Compatible with:
78
+ - [FlagEmbedding](https://github.com/FlagOpen/FlagEmbedding) training format (convert to `{query, pos, neg}` JSONL)
79
+ - [Sentence Transformers](https://sbert.net/) triplet training
80
+ - Any contrastive learning framework
81
+
82
+ ## License
83
+
84
+ This dataset aggregates data from multiple sources. Please refer to the original dataset licenses:
85
+ - Natural Questions: [Apache 2.0](https://ai.google.com/research/NaturalQuestions)
86
+ - HotpotQA: [CC BY-SA 4.0](https://hotpotqa.github.io/)
87
+ - MS MARCO: [MIT](https://microsoft.github.io/msmarco/)
88
+ - GooAQ: [Apache 2.0](https://github.com/allenai/gooaq)