query stringlengths 7 1.92k | positive stringlengths 30 11.7k | positive_score float64 0 1 | negatives listlengths 0 200 | negative_scores listlengths 0 200 |
|---|---|---|---|---|
هل يقدم الفندق عروض خاصة للعرسان؟ | بشكل عام، للعرسان ضيافة خاصة بالفندق. | 0.984863 | [
"نعم، من الأفضل ترتيب شهر العسل مسبقًا لضمان توافر الغرف والعروض الخاصة، في أفضل فنادق دبي للعرسان.",
"نعم يعتبر فندق سي في كي بارك البوسفور مناسب لقضاء شهر العسل للعرسان بحيث يحتوي على العديد من أجنحة العرسان والاجنحة الواسعة والكبيرة المطلة على البحر وعلى مضيق البسفور مباشرة وهي مناسبة للعرسان والازواج.",
"نو... | [
0.8134765625,
0.88525390625,
0.53857421875,
0.99853515625,
0.007965087890625,
0.0016422271728515625,
0.018646240234375,
0.0001767873764038086,
0.0033512115478515625,
0.0004322528839111328,
0.00007200241088867188,
0.006744384765625,
0.0002715587615966797,
0.95263671875,
0.3486328125,
0.... |
ماذا لو لم أكن راضياً عن برنامج الموزع؟ | "نقدم ضمان استعادة الأموال إذا لم تكن راضياً عن برنامج (...TRUNCATED) | 0.94873 | ["كما هو الحال مع اللعب في كازينو حقيقي، أساس لعبة بلاك (...TRUNCATED) | [0.00007486343383789062,0.000016033649444580078,0.000030934810638427734,0.0001647472381591797,0.0723(...TRUNCATED) |
كم تبعد مطار برج العرب الدولي عن وسط الإسكندرية؟ | "ستحتاج إلى السفر 38 كم للوصول إلى وسط مدينة الإسكندرية (...TRUNCATED) | 0.999023 | ["تقع قرية ماونتن فيو في الساحل الشمالي بمنطقة رأس الحك(...TRUNCATED) | [0.00634002685546875,0.020294189453125,0.00428009033203125,0.001979827880859375,0.01861572265625,0.0(...TRUNCATED) |
ما هي Magenta؟ | "تعد Magenta أحد مزودي خدمة الاتصال الصوتي عبر بروتوكول ال(...TRUNCATED) | 0.965332 | ["إذا كنت تريد ربط خدمة الاتصال الصوتي عبر بروتوكول الإ(...TRUNCATED) | [
0.0015010833740234375
] |
"في أيّ أعضاء تشعر المرأة الحامل بالألم أثناء حصول حمل (...TRUNCATED) | "في حالة الحمل خارج الرحم، تشعر المرأة بألمٍ شدید و مست(...TRUNCATED) | 0.995117 | ["يحدث الحمل خارج الرحم عندما يتطور الحمل خارج الرحم. 99% (...TRUNCATED) | [0.97802734375,0.162109375,0.6923828125,0.72265625,0.71923828125,0.03460693359375,0.056243896484375,(...TRUNCATED) |
كيف أقوم بإلغاء حساب المستخدم الخاص بي على ويجو؟ | "في الوقت الحالي ندعم إمكانية إلغاء كليّ للحساب وليس ال(...TRUNCATED) | 0.641602 | ["على موقع الويب بصيغة الحاسوب\nقم بتسجيل الدخول إلى حسا(...TRUNCATED) | [0.076416015625,0.00001621246337890625,0.048126220703125,0.0009112358093261719,0.02880859375,0.07080(...TRUNCATED) |
"ما الفرق بين الحليب كامل الدسم وقليل الدسم وخالي الدسم(...TRUNCATED) | "الحليب كامل الدسم يحتوي على نسبة دهن تصل إلى حوالي 3.5%، (...TRUNCATED) | 0.999512 | ["تناول الحليب ومنتجات الألبان يمكن أن يكون جزءًا من نظ(...TRUNCATED) | [0.70751953125,0.9990234375,0.779296875,0.9765625,0.69091796875,0.0272216796875,0.5341796875,0.71826(...TRUNCATED) |
ما هي فائدة الإستشارة النفسية ؟ | "تكمن فائدة الاستشارة النفسية في الحصول على حلول فعالة (...TRUNCATED) | 0.999512 | ["ج: في حال كان سبب ضعف الانتصاب متعلقاً بمشاكل نفسية أو (...TRUNCATED) | [0.38330078125,0.000015914440155029297,0.000016987323760986328,0.000036776065826416016,0.00014996528(...TRUNCATED) |
كيف أحسب سرعتي في الركض؟ | "لكي تحسب سرعتك في الركض، عليك ببساطة تقسيم وقت الركض ع(...TRUNCATED) | 0.999512 | ["عندما يشعر الغزال بالتهديد أو الخطر، فإنه يحاول الهرو(...TRUNCATED) | [0.0005660057067871094,0.00001621246337890625,0.01029205322265625,0.000614166259765625,0.00001925230(...TRUNCATED) |
"ظهرت حبوب صغيره فوق الثدي لوالدتي مع الم بالثدي فهل هذ(...TRUNCATED) | "ممكن ان يكون هذا سرطان ثدي. ولكن لا يمكن التأكد بدون فح(...TRUNCATED) | 0.623535 | ["غالبًا لا يعتبر ألم الثدي علامة على الإصابة بالسرطان (...TRUNCATED) | [0.6484375,0.58544921875,0.2237548828125,0.5869140625,0.151123046875,0.019561767578125,0.03408813476(...TRUNCATED) |
End of preview. Expand
in Data Studio
WebFAQ 2.0: Multilingual Hard Negatives
This dataset contains mined hard negatives derived from the WebFAQ 2.0 corpus. It includes approximately 1.3 million samples across 20 languages.
The dataset is designed to support robust training of dense retrieval models, specifically enabling:
- Contrastive Learning: Using strict hard negatives to improve discrimination.
- Knowledge Distillation: Using the provided cross-encoder scores to train with soft labels (e.g., MarginMSE).
Dataset Creation & Mining Process
To ensure high-quality training signals, we employed a two-stage mining pipeline. The full mining script is available in this repository: mining_script.py.
1. Lexical Retrieval (Recall)
We first retrieved the top-200 candidate answers for each query using BM25 (via Pyserini).
- Goal: Identify candidates with high lexical overlap (shared keywords) that are likely to be "hard" for a dense retriever to distinguish.
2. Semantic Reranking (Precision)
We reranked the top-200 candidates using the state-of-the-art cross-encoder model: BAAI/bge-m3.
- Goal: Assess the true semantic relevance of each candidate.
- Filtering: We applied a rigorous filtering strategy to remove False Negatives (high semantic scores) and Easy Negatives (low scores).
- Scoring: We retained the BGE-M3 relevance scores for every negative to enable knowledge distillation (MarginMSE).
Code & Reproduction
You can reproduce the mining process using the provided script:
python mining_hardnegatives_bge3.py \
--repo-id "PaDaS-Lab/webfaq-retrieval" \
--output-dir "./data/distilled_data" \
--k-negatives 200
## Dataset Structure
The data is stored in a **grouped format** (JSONL), where each line represents a single query paired with its positive answer and a list of mined hard negatives.
Each sample contains:
| Field | Type | Description |
| :--- | :--- | :--- |
| `query` | String | The user question. |
| `positive` | String | The ground-truth correct answer. |
| `positive_score` | Float | The **BGE-M3** relevance score for the positive answer. |
| `negatives` | List[String] | A list of mined hard negatives (non-relevant but similar). |
| `negative_scores`| List[Float] | The **BGE-M3** relevance scores corresponding to each negative. |
**Note:** This format is optimized for:
* **Contrastive Learning:** You can instantly sample 1 positive and $N$ negatives.
* **MarginMSE:** You have all the teacher scores (positive and negative) required to compute the margin loss.
## Languages & Distribution
The dataset covers **20 languages** with the following sample counts:
| ISO Code | Language | Samples |
| :--- | :--- | :--- |
| `ara` | Arabic | 32,000 |
| `dan` | Danish | 32,000 |
| `deu` | German | 96,000 |
| `eng` | English | 128,000 |
| `fas` | Persian | 64,000 |
| `fra` | French | 96,000 |
| `hin` | Hindi | 32,000 |
| `ind` | Indonesian | 32,000 |
| `ita` | Italian | 96,000 |
| `jpn` | Japanese | 96,000 |
| `kor` | Korean | 32,000 |
| `nld` | Dutch | 96,000 |
| `pol` | Polish | 64,000 |
| `por` | Portuguese | 64,000 |
| `rus` | Russian | 96,000 |
| `spa` | Spanish | 96,000 |
| `swe` | Swedish | 32,000 |
| `tur` | Turkish | 32,000 |
| `vie` | Vietnamese | 32,000 |
| `zho` | Chinese | 32,000 |
| **Total** | **All** | **~1,280,000** |
## Citation
- Downloads last month
- 186