CertKeen

Databricks Generative AI Engineer Associate · Free practice question 4 of 12

Keeping tables intact when chunking

Pellworth Grain's crop reports contain tables of yields by field and season. When the tables are split by a fixed character count, rows land in different chunks and answers mix up fields. What preparation step improves retrieval for these tables?

  1. A.Delete all tables because LLMs cannot read tabular data
  2. B.Serialize each table as text such as Markdown and keep it whole with its caption, splitting large tables by row groups with headers
  3. C.Embed each individual table cell as its own separate chunk, with the cell's row and column numbers stored as metadata so that the LLM can reassemble the table later
  4. D.Shuffle rows so each chunk contains a mix of seasons
Show answer and explanation

Correct answer: B. Serialize each table as text such as Markdown and keep it whole with its caption, splitting large tables by row groups with headers

Why: Keeping a table together with its caption and header, serialized as text, preserves the relationships between rows and columns; large tables can be split by row groups as long as each piece repeats the header. Deleting tables loses key facts, single-cell chunks lose context, and shuffling rows breaks their meaning.

More free Databricks Generative AI Engineer Associate questions