AI inputs / Practical field guide / November 29, 2026

Your AI skipped the table.

Before asking AI to summarize a Word document, inspect what your extraction step actually supplied. A paragraph-only export can leave the useful fact behind.

In this field note · 6 sections
  1. Run the Word table lab
  2. Inspect the missing table
  3. Make it your own
  4. Keep the evidence in scope
  5. Read the primary sources
  6. Get the practice and posting files

A workshop brief says how many seats are available. The number lives in a table. Your Python tool exports the surrounding paragraphs, hands those to an assistant, and asks for an invitation plan. The model never received the seat count.

This is a possible failure in a custom python-docx extraction workflow. It does not describe every AI product's Word importer. Check the input your own tool produces before changing your prompt.

What we ran. A fictional DOCX with two body paragraphs and one simple table, using Windows, CPython 3.13.15 and python-docx 1.2.0. We compared a paragraph-only view with an ordered body walk, then changed the table's seat count. No model, AI summary or performance test ran.
Cream portrait graphic with oversized heavy black headline, Your AI skipped the table, and a serif subheading, The document had it. The text export didn't. Two cream document cards stand on a pale stone tabletop in soft daylight. The left card, WORD DOCUMENT, has paragraph lines above and below a three-by-three grid with one burnt-orange cell. The right card, PARAGRAPHS ONLY, has the paragraph lines but an empty area where the table would be. An orange paper strip connects the highlighted cell toward that blank area. Subtle plant shadows fall across the background. The centered bottom lockup reads AI Anonymous, from JAB Systems, a short amber rule, and jabsystems.io.
Original AI-generated conceptual still life: the document includes a table; the paragraph-only export omits it. The illustrated grid is symbolic. The lab uses a three-row, two-column table.

01 / Reproduce

Run the Word table lab

Download the practice ZIP and extract its three files into a fresh folder: check_tables.py, requirements.txt and README.md. Use Python 3.10 or later. Open PowerShell in that folder:

py -3 -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements.txt
.\.venv\Scripts\python.exe .\check_tables.py create demo
.\.venv\Scripts\python.exe .\check_tables.py inspect .\demo\workshop.docx

The requirements pin python-docx 1.2.0, lxml 6.2.0 and typing_extensions 4.16.0. Installation needs internet; the exercise then uses local fictional files. It needs no Word installation, AI account or model download.

The create command requires a new directory and writes workshop.docx. Its first paragraph is Workshop brief (fictional). Next comes a table with Item / Value, Seats / 12 and Room / Cedar. The final paragraph says Confirm the room before sending invitations. Open the generated file in a compatible editor if you want to inspect the layout; the test itself does not launch Word.

The inspect command prints JSON containing the source SHA-256, the paragraph-only list and the body-block list. It checks the source bytes after reading and does not save the document.

02 / Inspect

Inspect the missing table

This familiar extraction line collects the document's body paragraphs. In our fixture, the table's cells do not become entries in that list:

paragraphs_only = [p.text for p in doc.paragraphs]

The observed paragraphs_only value is:

[
  "Workshop brief (fictional)",
  "Confirm the room before sending invitations."
]

There is no seat count and no room name. That absence means this export omitted the table; it does not mean the original file lacked those facts.

For this small fixture, walk paragraphs and tables together. This excerpt is taken from the downloadable script; Paragraph and Table are imported there:

blocks = []
for number, block in enumerate(doc.iter_inner_content(), start=1):
    if isinstance(block, Paragraph):
        blocks.append({'block': number, 'kind': 'paragraph', 'text': block.text})
    elif isinstance(block, Table):
        blocks.append({'block': number, 'kind': 'table', 'rows': [
            [cell.text for cell in row.cells] for row in block.rows
        ]})

The observed middle record in body_blocks is:

{
  "block": 2,
  "kind": "table",
  "rows": [
    ["Item", "Value"],
    ["Seats", "12"],
    ["Room", "Cedar"]
  ]
}

The surrounding records are paragraph blocks 1 and 3. This gives a downstream step the original body sequence and a visible table boundary. Gathering all paragraphs first and appending all tables afterward would put this table after the final paragraph.

Body order is not page position. The block numbers are local positions in this iteration, not Word page numbers, permanent document IDs or proof of layout. Keep the original file and its hash with your extraction record if you need to reconcile the output later.

03 / Adapt

Make it your own

Change only the fictional seat count. Use a new directory so the first file stays available:

.\.venv\Scripts\python.exe .\check_tables.py create demo-24 --seats 24
.\.venv\Scripts\python.exe .\check_tables.py inspect .\demo-24\workshop.docx

In our run, the paragraph-only list stayed identical. The table record changed to ["Seats", "24"]. An AI workflow receiving only those paragraphs would still receive neither number. The script accepts seat counts from 1 through 100.

For your own importer, make a fictional copy of a document shape you actually use. Put a distinctive test phrase inside a table, export it through the real extraction step, and look for that phrase before calling a model. Then check whether the text before and after the table remains in the right sequence. Inspect the exported evidence alongside the source.

If you later choose to test an assistant, a starting instruction could be:

Using only the supplied extraction, list the workshop seat count and room.
Cite the body block and table row for each value.
If a requested value is absent, say it is absent from this extraction.
Do not infer that it is absent from the original document.

This prompt is a proposed next step. We did not run it against a model or verify that a model would follow it. Review the extraction yourself first.

04 / Boundaries

Keep the evidence in scope

We tested the exact setup commands, both extraction views, body ordering, the 12-to-24 adaptation, source-byte preservation and refusal to overwrite an existing fixture directory. This is a deterministic document-reading exercise with authored data.

The code handles top-level body paragraphs and simple, unmerged rectangular tables. It is not a complete Word importer. Nested tables, merged or omitted cells, headers, footers, text boxes, tracked changes, pictures, formatting and page layout require separate handling and tests. A nested table's contents are not recovered by this simple cell.text loop. The official table guide explains why complex tables need more care.

No model quality, document truth, freshness, production integration, complex-file coverage, security audit or speed comparison was tested. A hash identifies the bytes inspected; it does not establish authorship or correctness. Use fictional documents for this lab and follow your organization's rules before sending real material to any AI service.

05 / Sources

Read the primary sources

Checked November 29, 2026. The documentation and exercised python-docx package are version 1.2.0. This is an established extraction API, applied to an AI input check.

06 / Take it with you

Get the practice and posting files

The practice ZIP includes the script, pinned requirements and instructions; its create command generates a fictional Word document locally. The posting ZIP contains the original portrait, teaser caption, alt text and full article URL. Social content is prepared for manual posting; it is not scheduled or published.

Did this help?

Please don't include personal or confidential information.

Ask or suggest

Please don't include personal or confidential information.

What would you like to send?

Share this post.

Found this useful? Pass it along. Download the artwork, add your own take, and tag @jabsystems.io so I can see your post.