This invention discloses a requirement tracking method, apparatus, device, and medium based on a large
language model, relating to the field of
artificial intelligence technology. The method includes: performing hierarchical structure tracking and nested table
linearization on the document to be processed, and semantically segmenting it; submitting each text block in parallel to a large
language model to extract structured requirement items according to preset fields; calculating the
cosine similarity between requirement items using an embedding model to recall a candidate matching set; then using the large
language model to perform
semantic association matching and coverage determination to obtain
association mapping data; using the large language model to perform multi-level
semantic matching on the requirement items, constructing a multi-level tracking link that supports cross-level matching between non-adjacent documents; and
parsing the
test item result description text and mapping it to a completed state when the link ends and contains a
test document. This invention can improve the
automation and accuracy of requirement item extraction, association matching, coverage determination, and full-link tracking, and enhance the
fault tolerance of the tracking link.