Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/NicolasHoyosDevss/MaternaQA-es/llms.txt

Use this file to discover all available pages before exploring further.

MaternaQA-es is a public Spanish-language question-and-answer dataset containing 5,727 synthetic Q&A pairs derived from 63 curated clinical PDFs on obstetrics and perinatal care. Of those 63 source documents, 57 contribute directly to the published splits. The dataset is written entirely in Spanish and targets the maternal and perinatal health domain, making it a purpose-built resource for Spanish-language NLP research, supervised fine-tuning of large language models, and retrieval-augmented generation (RAG) evaluation.

Dataset Splits

The 5,727 pairs are divided into three non-overlapping splits. Division is performed at the document level, so every Q&A pair in a split comes exclusively from PDFs that do not appear in any other split. This design guarantees zero cross-split contamination.
SplitQ&A PairsSource ChunksSource PDFs
Train5,0931,74452
Validation3061012
Test3281083
Total5,7271,95357
Splits are made at the document level to prevent data leakage. No PDF appears in more than one split, ensuring that train, validation, and test sets share zero source documents.

Corpus Statistics

The underlying document corpus from which all Q&A pairs are generated has the following characteristics:
MetricValue
PDFs processed63
Pages extracted5,856
Pages retained5,176 (88.4 %)
Final chunks audited2,268
Chunks in LM dataset2,223
Avg tokens per chunk879
Cross-split contamination0
Each retained chunk carries traceable metadata including source_pdf, pages, section_type, content_role, clinical_score, topics, and token_estimate.

Clinical Topic Coverage

The 18 annotated clinical topics span the full spectrum of obstetric and gynecological care: prenatal_care · postpartum · preterm_labor · labor_induction · vaginal_birth · cesarean · hemorrhage · preeclampsia · diabetes_gestational · infection · fetal_monitoring · newborn_care · ultrasound · genetics · contraception · infertility · menopause · gynecologic_oncology

Question Type Distribution

Questions are generated in six types to cover a range of cognitive demands, from direct fact retrieval to complex clinical reasoning:
TypeIntent
factualRetrieve specific clinical facts.
definicionExplain concepts, conditions, or procedures.
comparacionDifferentiate clinical entities or management decisions.
razonamientoJustify causal relationships, risks, or recommendations.
aplicacionApply knowledge to a described clinical situation.
hipoteticoExplore conditional scenarios or case variants.

Hugging Face

The published dataset variants are available on Hugging Face Hub. The Q&A dataset contains the three publication variants (SFT grounded, SFT closed-book, and flat JSONL). The LM dataset contains the underlying cleaned and segmented corpus chunks.

obstetrics-qa-synthetic-es

5,727 Q&A pairs across three publication variants (sft_grounded, sft_closed_book, qa_flat_jsonl).

obstetrics-lm-es

2,223 audited clinical corpus chunks used as the source for Q&A generation.

See Also

Dataset Variants

Compare sft_grounded, sft_closed_book, and qa_flat_jsonl formats and choose the right variant for your use case.

Quality Evaluation

Ragas faithfulness and answer relevancy results, grounding statistics, and quality methodology.

Build docs developers (and LLMs) love