The invention relates to the technical field of financial science and technology and
artificial intelligence cross fusion, in particular to a financial format file
processing method and device based on a large
language model, and the method comprises the steps: receiving a file uploading or generating instruction, responding to the uploading instruction, carrying out format recognition and integrity
verification, storing, and generating a ready
signal; and in response to the generation instruction, constructing a cue word containing financial scene parameters, calling a large
language model to generate content and generating a
signal. And extracting a text through an adaptive analyzer based on the
signal, filtering redundancy, converting into a standard
JSON format, and driving a large
language model to proofreading in combination with a special prompt word in the financial field to generate a compliant text. And after converting into a structured
HTML intermediate representation and checking, analyzing an
HTML matching template, filling placeholders, mapping into a Word format of a financial specification, and outputting a file which conforms to the business specification through special checking. Full-process
automation is achieved, efficiency is improved, compliance risks are reduced, and the method is suitable for multiple scenes.