Limai Docs
API ReferenceBenchmarks

Metrics

Get aggregated accuracy metrics for a benchmark execution

GET/api/v1/benchmarks/{executionId}/metrics

Returns aggregated accuracy metrics for a benchmark execution, broken down by overall, column, and table levels.

Parameters

NameTypeInRequiredDescription
executionIdstringpathYesThe benchmark execution ID

Request

const res = await fetch(
"https://app.limai.io/api/v1/benchmarks/exec_abc123/metrics",
{
  headers: {
    Authorization: "Bearer YOUR_API_TOKEN",
  },
}
);
const metrics = await res.json();

Response

Response200
{
  "executionId": "exec_abc123",
  "status": "COMPLETED",
  "aggregated": {
    "totalRows": 75,
    "totalDocuments": 25,
    "successRate": 0.94
  },
  "byColumn": [
    {
      "columnId": "col_001",
      "columnName": "Invoice Number",
      "columnSlug": "invoice_number",
      "successRate": 0.98,
      "totalCells": 25,
      "measurementType": "EXACT_MATCH"
    }
  ],
  "byTable": [
    {
      "tableId": "tbl_001",
      "tableName": "Invoices",
      "tableSlug": "invoices",
      "successRate": 0.94,
      "totalRows": 75
    }
  ]
}

On this page