AB
AiBoss
project

Docmatix - A massive open-source dataset designed for visual question answering of documents.

Docmatix is a large-scale dataset designed for Document Visual Question Answering (DocVQA) tasks. It contains 2.4 million images and 9.5 million question-answer pairs...

What is DoCmatix?

Docmatix is a large-scale dataset designed for Document Visual Question Answering (DocVQA) tasks. It contains 2.4 million images and 9.5 million question-answer pairs, sourced from 1.3 million PDF documents. The Docmatix dataset is 240 times larger than previous datasets, providing abundant resources for training and optimizing Visual Language Models (VLMs).

Main functions of Docmatix

  • Large-scale data coverageDocmatix contains 2.4 million images and 9.5 million question-answer pairs, sourced from 1.3 million PDF documents, providing a rich resource for training and evaluating visual language models.
  • Diverse document contentThe dataset covers a variety of document types, including scanned images, PDF files, and digital documents containing both textual and visual features.
  • High-quality question and answer pairsThrough automated tools and human review, the quality and accuracy of questions and answers are ensured.
  • Supports model training and fine-tuningDoCmatix is used to train and fine-tune visual language models, improving their performance in understanding and answering questions related to document content.

The technical principles of Docomtix

  • Data source and OCR processingThe Doctmatix dataset is generated based on the PDFA dataset, which contains 2.1 million PDF documents. Optical Character Recognition (OCR) processing converts the image text into machine-readable text data.
  • Automatic question-and-answer pair generationThis tool automatically generates question-and-answer pairs from OCR-transcribed text based on the Phi-3-small model. The entire process is automated and aims to create a large number of question-and-answer pairs relevant to the document content.
  • Data cleaning and filteringThe creators of Doctatix filtered the question-answer pairs generated by the model, discarding those identified as inaccurate or irrelevant.
  • Dataset ConstructionWhen constructing the dataset, each row corresponds to a PDF file containing image paths and associated question-answer pairs. The original PDFs for all samples are traceable to the PDFA dataset, providing transparency and reliability.

Docmatix project address

How to use Docomtix

  • Visit Hugging Face HubGo to Hugging Face Hub to download the dataset.
  • Loading datasetsUsing Hugging Face datasets The library loads the dataset.
  • Explore DataExamine the samples in the dataset to understand its structure and content.
  • Fine-tuning modelFine-tune language models using datasets, such as Florence-2.
  • Performance evaluationEvaluate the model performance on the validation set to ensure that the expected goals are met.

Application scenarios of DoCmatix

  • Automated customer serviceDocmatix-trained models are used to automate customer service systems by understanding and answering questions about product manuals, terms of service, or frequently asked questions.
  • Intelligent document analysisIn the legal, financial, or medical fields, intelligent document analytics can help professionals quickly extract key information from large amounts of documents, such as extracting clauses from contracts or diagnostic information from medical records.
  • Education and academic researchIn education, Doctmatix helps develop learning aids, such as automatically generating questions and answers to help students better understand course materials. In academic research, it is used to automate the literature review process.
  • Business process automationIn enterprises, automating the processing of invoices, reports, application forms, and other documents significantly improves efficiency and reduces human intervention.
  • Information retrieval systemDoctmatix helps develop more advanced information retrieval systems that can understand user questions and retrieve information from a large number of documents.