Why Token Splitters Destroy Financial & Schema Recall
Look at what happens when a 512-token splitter cuts a 65-row SEC 10-K Consolidated Statement of Operations at Row 32:
- Chunk 1 (Rows 1-31): Has the header
Three Months Ended Sept 30, 2026 vs 2025 ($ in thousands), plus Revenue and COGS. - Chunk 2 (Rows 32-65): Contains
| Diluted EPS | $1.84 | $1.41 |and| Weighted-average diluted shares | 148,920 | 146,110 |with zero document title, zero period dates, and zero$ in thousandsmultiplier.
The exact same failure hits 3,000-line OpenAPI 3.1 specifications when $ref: "#/components/schemas/CreateWireRequest" sits 2,200 lines below POST /v1/wires.
Tabular & Schema Serialization Benchmark (SEC 10-K + OpenAPI 3.1)
| Serialization Strategy | Tokens / 50-Row Table | Numeric Period Disambiguation (Top-1) |
OpenAPI Endpoint Recall (MRR@10) |
Maintenance Cost |
|---|---|---|---|---|
Fixed 512-token splitter on raw PDF text / YAML |
~620 |
39.4% (orphaned rows) |
44.1% (unresolved $refs) |
Brittle; corrupts multi-page grids |
Paid Vision-LLM OCR ($15-$40 / 1k pages) -> Markdown |
~890 |
68.2% (still loses headers >512 tok) |
N/A | Steep per-page OCR toll + LLM numeric drift |
| Header-Propagated Key-Value Row Group Serialization | ~1,140 |
84.7% |
82.9% (dereferenced $ref) |
Custom Python ETL per schema |
Voxell Forge Native Table AST + Max Reranking |
Managed AST | 91.0% SEC EDGAR Top-1 |
High-precision AST + MCP pruning | Zero glue code (from $39/mo annual) |
Runnable Fix: Header-Propagated Financial Grid & Dereferenced OpenAPI Serializer
Bind [Entity | Table Title | Units | Row Group > Row Label] directly onto every 8-row micro-batch and inline $ref JSON schemas per (path, method) operation before calling OpenAI or Gemini:
from typing import Any
def serialize_financial_grid(
entity: str,
table_title: str,
units_note: str,
col_headers: list[str],
rows: list[tuple[str, str, list[str]]], # (section_group, row_label, cell_values)
rows_per_chunk: int = 8,
) -> list[str]:
"""Produces self-contained, header-bound text blocks safe for any embedding model."""
chunks: list[str] = []
for i in range(0, len(rows), rows_per_chunk):
batch = rows[i : i + rows_per_chunk]
lines = [f"[{entity} | {table_title} | Units: {units_note}]"]
for group, label, vals in batch:
pairs = ", ".join(f"{col}: {val}" for col, val in zip(col_headers, vals))
prefix = f"{group} > {label}" if group else label
lines.append(f"- {prefix}: {pairs}")
chunks.append("\n".join(lines))
return chunks
def serialize_openapi_operations(spec: dict[str, Any]) -> list[str]:
"""Flattens each (METHOD, /path) with inlined component schema properties."""
schemas = spec.get("components", {}).get("schemas", {})
def resolve(node: Any, depth: int = 0) -> Any:
if depth > 4 or not isinstance(node, dict):
return node
if "$ref" in node:
ref_name = node["$ref"].split("/")[-1]
return resolve(schemas.get(ref_name, {}), depth + 1)
return {k: resolve(v, depth + 1) for k, v in node.items()}
docs: list[str] = []
title = spec.get("info", {}).get("title", "API")
for path, ops in spec.get("paths", {}).items():
for method, op in ops.items():
if method.lower() not in {"get", "post", "put", "patch", "delete"}:
continue
resolved_body = resolve(op.get("requestBody", {}))
docs.append(
f"API: {title} | Endpoint: {method.upper()} {path}\n"
f"Summary: {op.get('summary', '')} - {op.get('description', '')}\n"
f"Parameters: {resolve(op.get('parameters', []))}\n"
f"RequestBody Schema: {resolved_body}"
)
return docs
Retire Custom PDF & Table Parsers With Voxell Forge
Real-world PDF tables span page breaks, merge multi-level column headers (Three Months Ended spanning 2026 and 2025), and bury $ in millions, except per share data in bottom footnotes. Voxell Forge parses 30 MB PDFs, DOCX, PPTX, and Markdown natively, binding column/row headers in the AST (91.0% Top-1 accuracy on SEC EDGAR receipts) and pairing C_corpus conditioning with Max cross-encoder reranking (0.8849 nDCG@10). Test multi-segment financial disambiguation live right now:
curl -sS -X POST https://api.voxell.ai/api/v1/agent/bakeoff \
-H "Content-Type: application/json" \
-d '{
"documents": [
{"name": "10k-table-fy25.md", "text": "[Consolidated Operations | USD in Millions] Diluted EPS: FY2025: $1.41 | Weighted Diluted Shares: 146.1M."},
{"name": "10k-table-fy26.md", "text": "[Consolidated Operations | USD in Millions] Diluted EPS: FY2026: $1.84 | Weighted Diluted Shares: 148.9M."}
],
"queries": ["What was Diluted EPS in FY2026?"]
}'
Estimate index storage in the Vector RAM & TCO Calculator, read PDF Table Extraction vs Paid OCR, or open the Forge Console (v4.0 Pricing).