Document Parsing and Chunking for Coke Intelligent Due Diligence Reports

Coke intelligent due diligence report data comes from quality inspection reports issued by coke quality inspection institutions, contract documents

What the Data for This Category Looks Like

Coke intelligent due diligence report data comes from quality inspection reports issued by coke quality inspection institutions, contract documents between trading parties, port inventory ledgers, monthly operation analysis from industry associations, and futures delivery standard documents. Update frequencies cover real-time (trade ledgers), daily (futures market documents), weekly (port inventory data), and monthly (industry analysis reports). Document structures are mostly structured tables, including indicator items such as coke ash content, sulfur content, volatile matter, crush strength, and wear resistance, supplemented by text analysis content. Some documents contain nested tables and annotations. For fields and units, most indicator items use units such as mass fraction, strength grade, and ton. Some fields include coded fields such as origin codes and delivery warehouse numbers.

First, there are many structured tables with nested structures. Parsing tools must support identifying and extracting nested tables to avoid losing the association between indicators and their corresponding values during chunking. Second, update frequencies vary widely. Some documents are time-sensitive, so document timestamp fields must be retained during chunking to avoid mixing data from different cycles. Third, fields mix coded and numerical types. Semantic grouping by field type must be performed during chunking to avoid splitting coded and numerical content into different chunks. Fourth, some documents include annotations and footnotes. Content must be distinguished between main text and auxiliary comments during parsing to avoid mixing annotation content into core chunks. Fifth, core indicators for coke due diligence have strong correlations. All relevant information for the same indicator must be kept in the same semantic chunk to improve the accuracy of subsequent retrieval.

How to Set Configurations

Configuration ItemRecommended ValueRationale
CHUNK_MAX_SIZE800–1200 charactersAligns with the average length of core indicator groups in coke due diligence reports, avoiding including too much irrelevant information in a single chunk
CHUNK_OVERLAP100–150 charactersRetains semantic association between adjacent chunks, preventing splitting of complete information for a single detection indicator
PARSE_NESTED_TABLEEnabledMost coke quality inspection reports contain nested tables for detection project hierarchies, requiring complete extraction of the association between indicators and their corresponding detection values
PARSE_TABLE_ENABLEEnabledCore data is stored in structured tables. Enabling table parsing directly retains the correspondence between fields and values
PARSE_TIMEOUT_SECONDS300 secondsAccommodates parsing time for large industry analysis reports, avoiding parsing failure due to timeout
FIELD_SELECTORMatch core coke indicators such as ash content, volatile matter, crush strengthFocuses on core fields required for due diligence, reducing chunking and storage of non-essential content

The parameter values provided on this page are common recommended starting points for configuration. Actual values are affected by material form, data volume, and business rules. Specific issues require individual analysis, and it is recommended to test on your own samples before finalizing settings.

Three Common Mistakes

  • Phenomenon: Parsed chunks do not include coke quality inspection indicator data from images, and relevant content cannot be recalled during question-and-answer testing. Cause: Image parsing configuration is not enabled, or text content from images is not extracted as retrievable text chunks.
  • Phenomenon: When calling the Playwright MCP service to parse dynamic web-based due diligence documents, service connection fails. Calling the Amap MCP service runs normally. Cause: The cross-domain whitelist for the Playwright MCP service is not configured correctly, or the service port is not open to the deployment environment network segment.
  • Phenomenon: When clicking to copy chunk content, the interface prompts "Unable to use browser automatic copy, please manually copy the content below". Cause: Cross-domain restrictions exist in the deployment environment, or the front-end copy script does not have corresponding page permissions.

How to Confirm the Configuration Is Correct

  • Upload a standard coke quality inspection report document, check the parsed chunk list to confirm that core indicators and their corresponding values are in the same chunk.
  • Upload an industry analysis document containing nested tables, check if the parsing result retains the table's hierarchical structure with no field misalignment.
  • Run a question-and-answer test, input a question containing coke quality inspection indicators, confirm that the chunk content can be correctly recalled.
  • Upload a large industry report, check if the parsing task completes within the preset timeout period with no timeout errors.

Question material comes from public community discussions. Configuration values are common starting points and should be measured against your own samples. Verified on 2026-09-14.