brijeshvadi/eprocure-product-embeddings
Sentence Similarity • Updated • 17
Error code: DatasetGenerationCastError
Exception: DatasetGenerationCastError
Message: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 5 new columns ({'rfq_text_ar', 'rfq_id', 'matched_sku', 'relevance_score', 'rfq_text_en'}) and 11 missing columns ({'unit', 'certifications', 'price_sar', 'supplier', 'name_en', 'name_ar', 'subcategory', 'sku', 'brand', 'lead_time_days', 'min_order_qty'}).
This happened while the csv dataset builder was generating data using
hf://datasets/brijeshvadi/eprocure-product-catalog/data/rfq_pairs.csv (at revision 4311c354d2eb59ce1962ebea36cfb85d4be04f72), [/tmp/hf-datasets-cache/medium/datasets/64009885906580-config-parquet-and-info-brijeshvadi-eprocure-prod-d607f005/hub/datasets--brijeshvadi--eprocure-product-catalog/snapshots/4311c354d2eb59ce1962ebea36cfb85d4be04f72/data/rfq_pairs.csv (origin=hf://datasets/brijeshvadi/eprocure-product-catalog@4311c354d2eb59ce1962ebea36cfb85d4be04f72/data/rfq_pairs.csv)]
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1890, in _prepare_split_single
writer.write_table(table)
File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 760, in write_table
pa_table = table_cast(pa_table, self._schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2272, in table_cast
return cast_table_to_schema(table, schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2218, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
rfq_id: string
rfq_text_en: string
rfq_text_ar: string
matched_sku: string
relevance_score: double
category: string
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 984
to
{'sku': Value('string'), 'name_en': Value('string'), 'name_ar': Value('string'), 'category': Value('string'), 'subcategory': Value('string'), 'brand': Value('string'), 'price_sar': Value('float64'), 'unit': Value('string'), 'supplier': Value('string'), 'lead_time_days': Value('int64'), 'min_order_qty': Value('int64'), 'certifications': Value('string')}
because column names don't match
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1347, in compute_config_parquet_and_info_response
parquet_operations = convert_to_parquet(builder)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 980, in convert_to_parquet
builder.download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 884, in download_and_prepare
self._download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 947, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1739, in _prepare_split
for job_id, done, content in self._prepare_split_single(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1892, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 5 new columns ({'rfq_text_ar', 'rfq_id', 'matched_sku', 'relevance_score', 'rfq_text_en'}) and 11 missing columns ({'unit', 'certifications', 'price_sar', 'supplier', 'name_en', 'name_ar', 'subcategory', 'sku', 'brand', 'lead_time_days', 'min_order_qty'}).
This happened while the csv dataset builder was generating data using
hf://datasets/brijeshvadi/eprocure-product-catalog/data/rfq_pairs.csv (at revision 4311c354d2eb59ce1962ebea36cfb85d4be04f72), [/tmp/hf-datasets-cache/medium/datasets/64009885906580-config-parquet-and-info-brijeshvadi-eprocure-prod-d607f005/hub/datasets--brijeshvadi--eprocure-product-catalog/snapshots/4311c354d2eb59ce1962ebea36cfb85d4be04f72/data/rfq_pairs.csv (origin=hf://datasets/brijeshvadi/eprocure-product-catalog@4311c354d2eb59ce1962ebea36cfb85d4be04f72/data/rfq_pairs.csv)]
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
sku string | name_en string | name_ar string | category string | subcategory string | brand string | price_sar float64 | unit string | supplier string | lead_time_days int64 | min_order_qty int64 | certifications string |
|---|---|---|---|---|---|---|---|---|---|---|---|
EP-CON-001 | Portland Cement OPC 42.5N | أسمنت بورتلاندي عادي 42.5 | Construction Materials | Cement | Yamama Cement | 18.5 | 50kg bag | Al Rajhi Building Materials | 3 | 100 | SASO ISO 9001 |
EP-CON-002 | Steel Rebar 12mm Grade 60 | حديد تسليح 12مم درجة 60 | Construction Materials | Steel | SABIC | 2,850 | ton | Saudi Steel Industries | 7 | 5 | ASTM A615 |
EP-CON-003 | Ready Mix Concrete C30 | خرسانة جاهزة C30 | Construction Materials | Concrete | Saudi Readymix | 285 | cubic meter | Saudi Readymix Co | 1 | 10 | BS EN 206 |
EP-CON-004 | Gypsum Board 12.5mm Standard | ألواح جبس 12.5مم قياسي | Construction Materials | Gypsum | Knauf | 32 | sheet | Gulf Gypsum Trading | 5 | 200 | EN 520 |
EP-CON-005 | Waterproofing Membrane 4mm SBS | عازل مائي 4مم | Construction Materials | Waterproofing | MAPEI | 45 | sqm roll | Jotun Saudi Arabia | 10 | 50 | EN 13707 |
EP-ELE-001 | MCB Circuit Breaker 32A 3P | قاطع دائرة 32 أمبير 3 قطب | Electrical Equipment | Circuit Breakers | Schneider Electric | 189 | piece | Al Fanar Electrical | 5 | 20 | IEC 60898 |
EP-ELE-002 | LED Panel Light 60x60 40W 4000K | لوحة إضاءة LED 60x60 40 واط | Electrical Equipment | Lighting | Philips | 125 | piece | Philips Saudi LLC | 7 | 50 | CE IEC 62722 |
EP-ELE-003 | Cable Tray 300mm Hot Dip Galvanized | حامل كابلات 300مم مجلفن | Electrical Equipment | Cable Management | OBO Bettermann | 85 | meter | Saudi Cable Company | 14 | 100 | IEC 61537 |
EP-ELE-004 | Distribution Board 24-Way TPN | لوحة توزيع 24 مخرج | Electrical Equipment | Distribution | ABB | 1,450 | piece | ABB Saudi Arabia | 10 | 5 | IEC 61439 |
EP-ELE-005 | UPS System 10kVA Online | جهاز يو بي إس 10 كيلو فولت | Electrical Equipment | Power Protection | APC by Schneider | 12,500 | piece | Schneider Electric SA | 21 | 1 | IEC 62040 |
EP-HVC-001 | Split AC Unit 2.5 Ton Inverter | مكيف سبليت 2.5 طن إنفرتر | HVAC Systems | Air Conditioning | Daikin | 4,200 | unit | Daikin Saudi Arabia | 14 | 3 | SEER 21 |
EP-HVC-002 | Ducted Fan Coil Unit 2400 CFM | وحدة مراوح مجاري 2400 | HVAC Systems | Fan Coil Units | Carrier | 8,900 | unit | Carrier Saudi | 21 | 2 | AHRI 440 |
EP-HVC-003 | Chilled Water Pipe 4inch Insulated | أنابيب مياه مبردة 4 بوصة | HVAC Systems | Piping | Armacell | 165 | meter | Gulf Insulation Group | 10 | 50 | ASTM C534 |
EP-PLM-001 | PPR Pipe 25mm PN20 | أنبوب PPR 25مم | Plumbing Supplies | Pipes | Wavin | 12.5 | meter | Saudi Plastic Products | 3 | 200 | DIN 8077 |
EP-PLM-002 | Ball Valve Brass 1 inch | محبس كروي نحاس 1 بوصة | Plumbing Supplies | Valves | Giacomini | 45 | piece | Binladin Plumbing | 5 | 50 | EN 13828 |
EP-PLM-003 | Water Heater 50L Electric | سخان مياه كهربائي 50 لتر | Plumbing Supplies | Water Heaters | Ariston | 650 | piece | Ariston Thermo ME | 7 | 10 | IEC 60335 |
EP-SAF-001 | Safety Helmet with Chin Strap | خوذة سلامة مع حزام ذقن | Safety Equipment | Head Protection | 3M | 42 | piece | 3M Saudi Arabia | 3 | 100 | EN 397 |
EP-SAF-002 | Hi-Vis Safety Vest Class 2 | سترة سلامة عاكسة | Safety Equipment | Visibility | Honeywell | 28 | piece | Honeywell Safety ME | 5 | 200 | EN ISO 20471 |
EP-SAF-003 | Safety Boots S3 Steel Toe | حذاء سلامة مع مقدمة فولاذ | Safety Equipment | Foot Protection | Caterpillar | 320 | pair | CAT Safety Saudi | 10 | 25 | EN ISO 20345 |
EP-SAF-004 | Fire Extinguisher 6kg ABC | طفاية حريق 6 كجم | Safety Equipment | Fire Protection | NAFFCO | 185 | piece | NAFFCO Saudi | 7 | 20 | EN 3-7 |
EP-SAF-005 | Disposable Nitrile Gloves Box/100 | قفازات نتريل صندوق 100 | Safety Equipment | Hand Protection | Ansell | 65 | box | Ansell Healthcare ME | 3 | 50 | EN 374 |
Bilingual (English/Arabic) B2B procurement product catalog from the Saudi Arabian construction and industrial supply chain.
Contains 2,400 product listings across 5 categories with English and Arabic descriptions, pricing tiers, and supplier metadata. Paired with 800 RFQ (Request for Quotation) matching pairs for training similarity models.
| Category | Products | Suppliers | Avg Price (SAR) |
|---|---|---|---|
| Construction Materials | 680 | 24 | 4,250 |
| Electrical Equipment | 540 | 18 | 8,900 |
| HVAC Systems | 420 | 12 | 15,600 |
| Plumbing Supplies | 380 | 15 | 2,100 |
| Safety Equipment | 380 | 20 | 850 |
| Column | Description |
|---|---|
sku |
Unique product SKU |
name_en |
English product name |
name_ar |
Arabic product name |
description_en |
English description |
description_ar |
Arabic description |
category |
Product category |
subcategory |
Product subcategory |
brand |
Manufacturer brand |
price_sar |
Price in SAR |
unit |
Unit of measure |
supplier |
Supplier company name |
lead_time_days |
Delivery lead time |
min_order_qty |
Minimum order quantity |
certifications |
Quality certifications |
from datasets import load_dataset
ds = load_dataset("brijeshvadi/eprocure-product-catalog")
products = ds["train"]
rfq_pairs = ds["validation"]
electrical = products.filter(lambda x: x["category"] == "Electrical Equipment")