{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vaquill-ai/json-schema/vaquill-ai-document-text-schema.json",
  "title": "DocumentText",
  "description": "The reassembled text of a document.\n\nReassembled from the ingested chunks rather than re-extracted from the\noriginal, so what a customer reads here is exactly what retrieval, drafting\nand review saw. Re-extracting would be a second implementation that could\nsilently disagree with the one the product actually uses.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vaquill-ai-documents-api-openapi.yml#/components/schemas/DocumentText",
  "properties": {
    "documentId": {
      "type": "string",
      "title": "Documentid",
      "description": "`doc_` identifier of the document this text came from."
    },
    "text": {
      "type": "string",
      "title": "Text",
      "description": "The document's full text, reassembled from the ingested chunks. This is exactly what retrieval, drafting and review saw, not a fresh extraction."
    },
    "chunkCount": {
      "type": "integer",
      "title": "Chunkcount",
      "description": "How many chunks were reassembled. Compare against the document's `chunkCount` to tell a partial read from a complete one."
    },
    "truncated": {
      "type": "boolean",
      "title": "Truncated",
      "description": "True when the text was cut at the published ceiling. Always check it before quoting the text as complete.",
      "default": false
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "documentId",
    "text",
    "chunkCount"
  ]
}