Inspection and Process Record Audit for Foundry (Sand Casting, Precision Casting, Die Casting): Source Citation and Traceability

This category of data primarily comes from ERP material master data, melting furnace thermometers, spectrometers, MES heat records, mold management

What data for this category looks like

This category of data primarily comes from ERP material master data, melting furnace thermometers, spectrometers, MES heat records, mold management systems, and customer drawings and technical specifications. Update frequency is per heat, per batch, or daily. Daily documents include casting process cards, batching lists, heat records, mold histories, first-piece inspection records, material reports, and nonconforming product review forms. Core fields include heat number, alloy batching ratio, pouring temperature, mold number, defect type and corresponding mold times. Units include degrees Celsius, mass percentage, kilograms, and others.

What constraints these characteristics impose on the "source citation and traceability" workflow

The high-frequency update nature of this category requires citation traceability to bind to real-time generated heat and batch identifiers, to avoid referencing expired data. The existence of multiple types of structured documents requires precise matching of core fields such as heat number and mold number during traceability, to avoid false associations caused by generalized matching. The feature of homologous data across multiple systems requires clear association of unique identifier fields for each system during configuration, to ensure a complete traceability chain. At the same time, nonconforming products flowing to downstream processes can cause serious losses, so traceability results must directly correspond to original records of specific heat and mold times, rather than using vague associations.

How to set configurations

Configuration ItemRecommended SettingRationale
Maximum citation token count1000–1500 tokenSingle heat records, material reports and other documents for foundry have relatively long length, and this range covers core field content required for complete traceability
Citation detail displayFullAll valid content of cited documents must be displayed, to facilitate verification of the correspondence between defects, heat numbers and mold times
Force return citation sourcesEnabledEnsure each response includes associated original document information, to avoid results without traceability data
Single recall limitTop 5–7 entriesFoundry business core data revolves around heat numbers and mold times. Too many recalled entries will interfere with core matching
Recall timeout threshold25–35 secondsData upload from foundry workshop equipment has minor delays, so this range covers normal upload duration
Chunk overlap length100–200 charactersIdentifiers such as heat numbers and mold numbers are usually short, so overlap length must cover complete identifiers across chunks

Three common configuration errors

  • Symptom: Citation content is returned even after the citation display setting is disabled. Cause: The global citation switch and independent model call configuration were not updated synchronously, leaving residual citation logic enabled by default.
  • Symptom: Recalled cited documents are unrelated to the current query, such as matching records from heat A to a query for heat B. Cause: Matching fields were not limited to exclusive identifiers such as heat number and mold number, and full-text matching alone led to false associations.
  • Symptom: Citation content truncates core fields, making it impossible to trace to specific heat or mold times. Cause: The quoteMaxToken setting is too small, or the responseData and detail configurations are not enabled, leading to filtering or truncation of key information from original documents.

How to confirm correct configuration

  • Access the test query interface of FastGPT v4.17.0, enter a query that includes a specific heat number, and check whether the returned results include associated original document information.
  • Adjust the single recall limit to 3 entries, initiate a test query, and confirm that the number of returned cited documents does not exceed the set limit.
  • Review the completeness of cited content, and confirm that core fields such as heat number and mold number are fully displayed without truncation.
  • Disable the citation display switch, initiate a test query, and confirm that no content related to citation sources appears in the returned results.

All listed configuration values are common starting points. Adjust them based on your own specific samples and use cases.