The application provides a multimodal long document generation method and
system based on symbol reasoning and
anchor point propagation, and belongs to the field of document generation. A hierarchical BNF
syntax rule is compiled through
a domain knowledge base, a prompt word constraint template is generated, and a state
machine is initialized; a multimodal sample is obtained, entities are recognized, and a cross-
modal dependency graph is constructed, and an
anchor point dependency propagation network is further trained; a user document instruction and a
modal query are obtained, the document instruction is input into the state
machine and the
anchor point dependency propagation network, and an anchor point enhanced framework is generated; based on the
modal query, multimodal segments are retrieved from the
domain knowledge base, sorted according to the
dependency graph path, and a multimodal context
list is obtained; the multimodal context
list and the anchor point enhanced framework are fused to generate a super-long document. Through the symbol reasoning state
machine, the document structure is compiled into formal
syntax rules and the
generation process is constrained, and the cross-modal
dependency graph and the joint embedding space are established in combination with the anchor point dependency propagation network, so that the problems of long text out of control and multimodal fragmentation are effectively solved.