The present application relates to the technical field of
data governance, and particularly relates to an intelligent data grading and classifying method and
system based on data portrait, which comprises the following steps: extracting field information from a
database to be classified, and inputting a large
language model to extract field semantic features; determining a classification
system according to the field semantic features, and constructing a classification definition of the
database to be classified; obtaining a table creation statement, extracting grading data from the
database to be classified according to the table creation statement, grading the grading data according to the classification definition, and generating a grading data table corresponding to the table creation statement. In view of the problem that data grading and classifying rules are prone to failure, a large
language model is introduced to identify the field information in the database, so as to obtain the field semantic features of the database. In the subsequent grading process, the large
language model can be used to describe the role of each
field data in the database, so that the model can accurately determine the category and importance of the related data, thereby obtaining the corresponding grading data table.