Model Access and Configuration for Coke Investment Research Knowledge Base Construction

Data primarily comes from the Dalian Commodity Exchange, China Coking Industry Association, coastal port spot trading platforms, steel enterprise

What the data for this category looks like

Data primarily comes from the Dalian Commodity Exchange, China Coking Industry Association, coastal port spot trading platforms, steel enterprise procurement ledgers, and public industry research reports. Three update schedules are used:

  • Futures market data is synchronized daily after market close
  • Spot quotes are updated daily
  • Industry supply, demand and capacity data is released weekly

Document formats primarily include structured tables (containing daily settlement prices, port inventories, capacity utilization rates), semi-structured research report paragraphs, and policy announcement text. Fields include settlement price, basis spread, coking coal blending ratio, and total inventory. Common units are yuan/ton, ten thousand tons, and %.

How these characteristics impose constraints on model access and configuration

The multi-source, heterogeneous nature of coke data requires configuring multi-format parsing and adaptation rules. Structured tables need field auto-mapping enabled. Semi-structured research reports need segment threshold configuration. Data sources with different update cadences need customized scheduled synchronization tasks: set high-frequency pull intervals for futures market data, and daily synchronization for industry supply and demand data. Multi-unit fields need unit standardization conversion rules to avoid model input confusion caused by unit differences across sources. Access to long-text research reports needs alignment with the model’s context window. Set reasonable segment lengths to prevent exceeding the model’s processing limits.

How to set configurations

Configuration ItemRecommended SettingRationale
PARSE_TABLE_AUTO_MAPEnabledMost coke data is in structured tables. Auto-mapping reduces manual field matching workload
SYNC_INTERVAL3600 seconds (futures data), 86400 seconds (industry data)Matches the update cadence of different data sources. Futures market data has high real-time requirements, while industry data is updated less frequently
UNIT_STANDARDIZE_RULESConfigure yuan/ton and ten thousand tons as standard units, automatically convert thousand yuan/ton and thousand tons to corresponding valuesUnifies coke data unit formats to avoid calculation deviations during model processing
TEXT_SEGMENT_LENGTH800–1200 charactersAdapts to the context window limits of mainstream large models, preventing long-text research reports from being truncated
RERANKER_MODEL_PATHCalibrate based on actual testingMatches the locally deployed reranker model version to ensure model call compatibility
MAX_CONTEXT_WINDOW16384 tokensAdapts to the standard context limit of general large models, matching the total length of segmented coke research reports

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. It is recommended to test on your own samples before finalizing settings.

Three common configuration errors

  • Phenomenon: After calling the MCP tool, the model context is cleared, and subsequent answers cannot associate previous coke data. Cause: The context retention parameter of the MCP tool is not configured, and the context window is reset by default each time the MCP is called.
  • Phenomenon: The reranker model deployment test passes, but the reranked retrieval result returns false. Cause: The input field matching rule of the reranker model is not configured, and the structured fields of coke data are not correctly passed to the reranker model.
  • Phenomenon: After calling the model, the response delay is high, and a single response exceeds the preset threshold. Cause: The appropriate recall threshold is not configured, and too much coke-related data is recalled, leading to excessive model processing load.

How to confirm the configuration is correct

  • Run a single data synchronization task, check whether the field mapping and unit conversion results in the synchronization log meet expectations, and verify whether the configured synchronization interval matches the update cadence of the corresponding data source.
  • Initiate a retrieval request for coke spot prices, check whether the ranking of the reranker model's returned results conforms to market logic, and confirm that the input parameter configuration of the reranker model is correct.
  • Call the MCP tool to obtain the latest coke inventory data, verify whether the context retains previous conversation content, and confirm that the context retention parameter configuration is effective.
  • Test the parsing and retrieval process of long-text research reports, check whether the segmented text does not exceed the configured context window, and confirm that the segment length configuration is reasonable.

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.