Cohesive
  • 👋 Welcome!
  • ✨Getting Started
  • Reference
    • API Documentation
      • POST: upload
      • POST: upload_async
      • Guide: Having a custom response schema
        • Template: Metrics Data
        • Template: Order Data
      • Guide: Tabular Data
    • Workflow Documentation
      • Overview
      • Templates
        • Lists
        • Math Expressions
        • Date Expressions
      • Integrations
        • ERP Integrations
        • CRM Integrations
        • Communication Integrations
    • Security Policy
Powered by GitBook
On this page
  1. Reference
  2. API Documentation

Guide: Tabular Data

PreviousTemplate: Order DataNextWorkflow Documentation

Last updated 1 year ago

To parse documents that mainly contain tables, or to achieve higher accuracy when extracting data from tables with complex layouts (i.e: tables with many empty rows, or tables with multiple rows or columns merged together), we recommend setting tabularData to true

e.g:

Schema:

{
   shareholders: {
      name: string; // name of the shareholder
      common: string | null; // number of common shares the shareholder owns,
      null if not available
  }[]
}

Response:

[
    {
        "pageRange": "1",
        "extraction": {
            "shareholders": [
                {
                    "name": "Founder A",
                    "common": "250,000"
                },
                {
                    "name": "Founder B",
                    "common": "150,000"
                },
                {
                    "name": "Founder C",
                    "common": "80,000"
                },
                {
                    "name": "Founder D",
                    "common": "70,000"
                },
                {
                    "name": "Employee Shares Option Pool",
                    "common": "100,000"
                },
                {
                    "name": "Investors per stage",
                    "common": null
                }
            ]
        }
    }
]