The invention relates to the technical field of logistics large models, and discloses a testing method and
system based on the context of a
large model in the logistics field, and the method comprises the steps: 1, preparing a single-round successful testing
record of an entity and an intention which need to be generated, guaranteeing that the corresponding entity or intention is inherited and switched for
assembly when a plurality of rounds of use cases are generated, the prepared single-round successful test records form a basic
data set; step 2, determining parameters required for generating multiple rounds of use cases; 3, filtering and classifying single-round test records; step 4, generating a multi-round use case; 5, converting the multi-round use cases into
executable tasks, and calculating a model success rate; and step 6, counting failure distribution and feeding back. The test method and
system can accurately capture the performance of the model in complex interactions such as intention inheritance and switching, assist in rapidly improving the capture and understanding ability of the logistics
large model for context information, and reduce intelligent dialogue errors caused by context faults.