The invention relates to an RAG-based
voucher classification method, a medium and equipment, and the method comprises the steps: receiving
digital image data of a to-be-classified
voucher, carrying out the multi-
modal optical character recognition processing to generate a structured OCR result, extracting a text
semantic feature vector and a visual
layout feature vector based on the structured OCR result, carrying out the fusion of the text
semantic feature vector and the visual
layout feature vector to generate a multi-
modal query vector, and carrying out the classification of the to-be-classified
voucher. Similar samples and
semantic similarity scores and category
metadata thereof are obtained through approximate nearest neighbor retrieval, after an initial candidate category
list is generated, key field values are extracted for each candidate category, evidence credibility scores are calculated, comprehensive confidence scores are generated by fusing the
semantic similarity scores and the evidence credibility scores, reordering is conducted, and a candidate category
list is obtained. And finally, selecting a classification decision path according to the
score distribution, and outputting a
classification result and an
interpretability report. The accuracy and robustness of voucher classification are effectively improved, and complex voucher scenes with changeable formats and fuzzy
semantics can be processed; and the
interpretability and reliability of the classification decision are enhanced.