Entity matching method and device based on block-level matching context for large language model
By using a block-level matching context method, shared and differential fields are extracted to generate block fingerprints, and historical contexts are retrieved and verified. This solves the problems of redundant calculations and error reuse in large-scale entity matching, and achieves efficient and accurate entity matching.
Patent Information
- Application Number
- CN202611296706.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-25
- Publication Date
- 2026-11-27
AI Technical Summary
In large-scale entity matching scenarios, existing technologies suffer from high costs of repetitive calculations, high risks of error reuse, and a lack of closed-loop mechanisms, resulting in low matching accuracy and efficiency.
By using a block-level matching context approach, shared and differential fields of candidate entity pairs are extracted to generate block fingerprints. Historical contexts are retrieved and verified, and knowledge is reused or supplemented only when conditions are met to input into a large language model for discrimination, outputting matching results and confidence scores.
It reduces redundant calculations, lowers the risk of error reuse, supports fine-grained updates of context, and improves the interpretability and accuracy of matching results.
Smart Images

Figure CN123178992A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of data governance and artificial intelligence technology, and in particular to a method and apparatus for matching entities in a large language model based on block-level matching context. Background Technology
[0002] Entity matching is a fundamental task in data governance and data integration, used to determine whether two records from different data sources point to the same real-world entity. With the continuous expansion of enterprise data scale and the increasing diversification of data sources, entity matching plays a crucial role in scenarios such as aligning product information, deduplicating academic documents, and integrating enterprise customer information.
[0003] In recent years, Large Language Models (LLMs) have demonstrated excellent semantic modeling capabilities in natural language understanding tasks. Some systems have begun to organize candidate entity pairs into text inputs for matching and discrimination within the LLM. To further improve discrimination accuracy, Retrieval-Augmented Generation (RAG) technology has also been introduced into entity matching tasks. Before discrimination, the system retrieves relevant background knowledge from external knowledge bases or knowledge graphs, and then inputs the candidate records and retrieval results together into the LLM.
[0004] However, the above solution has the following drawbacks: First, large-scale entity matching scenarios will generate a large number of similar record blocks. If knowledge retrieval and model reasoning are performed independently for each candidate entity pair, it will result in high repetitive computation costs.
[0005] Second, although historical search results can theoretically be reused for similar record blocks, direct reuse poses security risks. That is, two record blocks may be similar in macro features such as brand and category, but differ in key attributes such as model, capacity, year, and address. Incorrect reuse of historical context can easily lead to mismatches.
[0006] Third, the existing system lacks a closed-loop mechanism to adjust the block segmentation strategy in reverse based on the matching results, and record blocks with low confidence or frequent evidence conflicts cannot be automatically identified and optimized. Summary of the Invention
[0007] In view of the above-mentioned defects or deficiencies in the prior art, the present invention provides a method and apparatus for large language model entity matching based on block-level matching context, so as to solve the above-mentioned technical problems mentioned in the background art.
[0008] One aspect of the present invention provides a method for entity matching of a large language model based on block-level matching context, comprising the following steps: Obtain the records to be matched from the source database and the target database, and standardize the fields of the records to be matched; According to the preset segmentation rules, similar records after standardization are divided into the same record block, and within the record block, the records to be matched from the source database and the records to be matched from the target database are combined to generate candidate entity pairs. Analyze the candidate entity pairs within the record block, and extract the shared and difference fields for each candidate entity pair; generate the block fingerprint of the current record block based on the shared fields, difference fields, and feature information of the record block; Based on the block fingerprint, a block-level matching context that meets the preset conditions for feature similarity with the current record block is retrieved from the historical context cache. The block-level matching context includes shared fields, difference fields, and external retrieval knowledge of the historical record block. The retrieved block-level matching context is validated for availability to determine whether the shared fields, difference fields, and external retrieval knowledge of the historical record block meet the matching requirements of the current record block. If yes, the retrieved block-level matching context is directly input into the large language model for matching. Otherwise, external knowledge is retrieved from an external knowledge base, and a new block-level matching context is generated for the current record block based on the shared fields, difference fields, and the supplemented external knowledge of the candidate entity pair. The new block-level matching context is then input into the large language model for matching. The large language model outputs entity matching results, confidence scores, and discrimination criteria.
[0009] Another aspect of the present invention provides a large language model entity matching device based on block-level matching context, comprising: The record acquisition and standardization module is used to acquire records to be matched from the source database and the target database, and to standardize the fields of the records to be matched. The record segmentation and candidate pair generation module is used to divide similar records after standardization into the same record block according to a preset segmentation rule, and to combine the records to be matched from the source database and the records to be matched from the target database within the record block to generate candidate entity pairs. The field extraction and block fingerprint generation module is used to analyze candidate entity pairs within the record block, extract the shared fields and difference fields of each candidate entity pair, and generate the block fingerprint of the current record block based on the shared fields, difference fields, and feature information of the record block. The historical context retrieval module is used to retrieve, based on the block fingerprint, block-level matching contexts in the historical context cache that meet preset conditions in terms of feature similarity to the current record block. The block-level matching contexts include shared fields, difference fields, and external retrieval knowledge of historical record blocks. The availability verification and context management module is used to verify the availability of the retrieved block-level matching context to determine whether the shared fields, difference fields, and external retrieval knowledge of the historical record block meet the matching requirements of the current record block. If yes, the retrieved block-level matching context is directly input into the large language model for matching; otherwise, external knowledge is retrieved by supplementing the external knowledge base, and a new block-level matching context corresponding to the current record block is generated based on the shared fields, difference fields, and supplemented external knowledge of the candidate entity pair. The new block-level matching context is then input into the large language model for matching. The model discrimination and result output module is used to output entity matching results, confidence scores, and discrimination criteria from the large language model.
[0010] The entity matching method and apparatus for large language models based on block-level matching context provided by this invention have the following beneficial effects: First, it reduces redundant retrieval and inference. By reusing shared field evidence from the historical block-level matching context and external retrieval knowledge, similar record blocks avoid performing a complete retrieval and inference independently for each candidate entity pair, significantly reducing computational resource consumption.
[0011] Second, it reduces the risk of erroneous reuse. Through the availability verification mechanism, the field matching and knowledge validity of the historical context are judged before reuse. It is only reused directly if the judgment requirements are met; otherwise, field replacement and knowledge supplementation are performed, avoiding mismatches caused by blind reuse.
[0012] Third, it supports fine-grained updates of the context. When the historical context is partially available, the part that meets the requirements is retained, and only the fields of the current record block are used to replace the mismatched fields and supplement the missing knowledge for retrieval, thus realizing incremental updates of the context rather than a full reconstruction.
[0013] Fourth, it improves the interpretability of matching results. The large language model outputs confidence scores and discrimination criteria along with the matching results, including evidence supporting the match and evidence opposing the match, providing a traceable decision-making basis for manual review and subsequent analysis. Attached Figure Description
[0014] Other features, objects, and advantages of this application will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings: Figure 1This is a flowchart illustrating a large language model entity matching method based on block-level matching context provided in one embodiment of this application; Figure 2 This is a schematic diagram of the structure of a large language model entity matching device based on block-level matching context provided in one embodiment of this application; Figure 3 This is a schematic diagram of the structure of an electronic device provided in one embodiment of this application. Detailed Implementation
[0015] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0016] In this invention, unless otherwise expressly stated, the following terms have the following meanings: Entity matching: refers to the process of determining whether two records from different data sources point to the same real-world entity.
[0017] Record block: refers to the group of records obtained by dividing similar records according to preset block rules. Records within the same record block are similar in preset features.
[0018] Candidate entity pair: refers to a tuple consisting of a source database record and a target database record within the same record block, which serves as the basic unit for entity matching and discrimination.
[0019] Shared fields: These are fields that appear together in multiple candidate entity pairs within a record block or whose field values are similar enough to meet preset conditions. They are used to construct common background information for candidate entity pairs.
[0020] Difference fields: These are key fields within a record block used to distinguish whether candidate entity pairs point to the same entity. Differences in the values of these fields may affect the final conclusion of the matching judgment.
[0021] Block fingerprint: refers to the identification information generated based on the shared fields, difference fields and characteristic information of a record block, which is used to retrieve block-level matching contexts similar to the current record block in the historical context cache.
[0022] Block-level matching context: refers to the structured data set generated for a record block, which includes at least the shared fields, difference fields, external retrieval knowledge, evidence scores, conflict markers, and reasoning strategies of candidate entity pairs within the record block, and is used as the input basis for entity matching and discrimination by the large language model.
[0023] Availability verification: This refers to the process of determining whether the historical block-level matching context can be directly used for matching the current record block. This verification includes, but is not limited to, determining whether the field features of the historical record block and the current record block match, whether the historical external retrieval knowledge still supports the matching of the current candidate entity pair, and whether the knowledge source of the historical external retrieval knowledge is within its validity period.
[0024] External retrieval knowledge refers to background information retrieved from external knowledge bases or knowledge graphs to assist in entity matching and determination, including but not limited to entity description information, entity relationship information, knowledge graph triples, knowledge graph paths, community summary information, and topic summary information.
[0025] Conflict of evidence: refers to a situation in the matching process where there is evidence that supports the matching of entities and evidence that opposes the matching of entities.
[0026] Confidence: refers to the degree of certainty of a large language model in its output matching judgment results. The higher the value, the more certain the model is in its judgment results.
[0027] Method Implementation Examples The following is a detailed description of the large language model entity matching method based on block-level matching context provided by the present invention, with reference to the accompanying drawings.
[0028] like Figure 1 As shown, the method provided by the present invention includes the following steps: Step S101: Obtain the records to be matched and perform field standardization processing.
[0029] This step is used to obtain the records to be matched from the source database and the target database, and to standardize the fields of the records to be matched.
[0030] Specifically, the system reads records to be matched from the source and target databases. The sources of these records include, but are not limited to, relational databases, Excel files, application programming interfaces (APIs), or message queues. Each read record contains several fields, each with a field name and a corresponding field value, and these fields are then standardized.
[0031] Field standardization refers to performing at least one of the following operations on each field of each record to be matched: standardizing the case of field values, removing leading, trailing, and extra spaces from field values, converting field values with different units of measurement to a unified unit of measurement, processing aliases of field values to point to the same standard representation, and marking missing fields for identification in subsequent processing. The purpose of standardization is to reduce matching interference caused by format differences, so that the comparison of field values in subsequent steps can be based on semantic rather than formal levels.
[0032] Step S102: Divide into blocks and generate candidate entity pairs.
[0033] This step is used to divide similar records after standardization into the same record block according to preset block rules, and to combine the records to be matched from the source database and the records to be matched from the target database within the record block to generate candidate entity pairs.
[0034] Specifically, the segmentation rules include, but are not limited to: keyword-based segmentation rules, brand / model-based segmentation rules, q-gram similarity-based segmentation rules, hash-based segmentation rules, vector space similarity-based segmentation rules, and combinations of the above. The purpose of segmentation rules is to group potentially matching records into the same record block, avoiding full pairwise comparisons across the entire record set, thereby reducing the computational complexity of subsequent matching decisions.
[0035] Within the same record block, the system combines each record to be matched from the source database with each record to be matched from the target database to generate candidate entity pairs. For duplicate candidate entity pairs that already exist within the same record block, the system performs a deduplication operation, retaining only one instance of each unique candidate entity pair.
[0036] This step performs pairwise comparisons directly on the entire dataset, with a computational complexity of O(n log n). ,in and The numbers represent the number of records in the source and target databases, respectively. When the data size is large, the computational cost becomes unacceptable. By using block operations to limit the comparison range to within a block, the computational complexity is reduced to [value missing]. ,in and For the first The number of source records and the number of target records within each record block, and , Because the number of records in each block is much smaller than the number of records globally, the overall computational load is significantly reduced.
[0037] Step S103: Extract shared fields and difference fields to generate block fingerprints.
[0038] This step is used to analyze candidate entity pairs within the record block, extract the shared and difference fields of each candidate entity pair, and generate the block fingerprint of the current record block based on the shared fields, difference fields, and feature information of the record block.
[0039] Specifically, the system analyzes all candidate entity pairs within a record block and statistically analyzes the similarity of values for each field within the candidate entity pairs. For a given field, if the similarity of values for that field among candidate entity pairs exceeding a preset threshold within the record block meets a preset condition, then that field is marked as a shared field of the record block. If the values of a certain field differ among candidate entity pairs and this difference may affect the final conclusion of the matching judgment, then that field is marked as a differing field. Shared fields are used to construct common background information for candidate entity pairs, while differing fields serve as key attributes that require focused verification.
[0040] The system also extracts the following features from the record block: the number of candidate entity pairs, the missing status of each field, and the degree of field category mixing. The degree of field category mixing refers to the diversity of records within the record block on preset category attributes, which can be quantified using category entropy or Gini impurity.
[0041] The system combines and encodes or hashes multiple features from the shared fields, differing fields, and the aforementioned characteristics to generate a block fingerprint for the current record block. The block fingerprint uniquely identifies the characteristics of the current record block, providing an indexing basis for subsequent similar searches in the historical context cache.
[0042] This step extracts block fingerprints, compressing high-dimensional field feature information into searchable identifier information, providing a technical foundation for efficient retrieval of historical context.
[0043] Step S104: Retrieve historical block-level matching context.
[0044] This step is used to retrieve, based on the block fingerprint, a block-level matching context in the historical context cache that meets preset conditions for feature similarity with the current record block. The block-level matching context includes shared fields, difference fields, and external retrieval knowledge of historical record blocks.
[0045] Specifically, the historical context cache stores the block-level matching contexts corresponding to each record block previously processed by the system. Each context includes at least the block fingerprint, shared fields, difference fields, external retrieval knowledge, evidence score, conflict marker, and inference strategy for the corresponding record block. The system calculates the similarity between the block fingerprint of the current record block and the block fingerprints of each historical record block in the historical context cache. The similarity calculation can employ metrics such as vector space cosine similarity, Hamming distance, or Jaccard similarity coefficient. When the calculated similarity reaches a preset threshold, the historical block-level matching context is output as the retrieval result.
[0046] This step transforms the retrieval problem into a similarity search problem in a high-dimensional space through block fingerprint matching, thereby improving retrieval efficiency.
[0047] Step S105: Availability verification and context reuse decision.
[0048] This step is used to verify the availability of the retrieved block-level matching context to determine whether the shared fields, difference fields, and external retrieval knowledge of the historical record block meet the matching and discrimination requirements of the current record block.
[0049] Specifically, availability verification includes, but is not limited to, the following four checks: (1) Block similarity check The system determines whether the historical record block and the current record block meet preset similarity conditions in terms of overall features. Specifically, the system compares whether the block fingerprint similarity of the two record blocks reaches a preset availability threshold, which is higher than the retrieval threshold in step S104. If the block fingerprint similarity meets the threshold, the block similarity check is passed.
[0050] (2) Conflict validation of difference fields The system determines whether there is a conflict between the difference fields of the historical record block and the current record block. A conflict occurs when the field value represented by the historical record block and the field value of the current record block are inconsistent on the same difference field. For example, the capacity field value is 128G in the historical record block, while the same field value is 256G in the current record block. If no conflict is found, the system passes the difference field conflict check.
[0051] (3) Verification of supporting evidence The system determines whether the external retrieval knowledge in the historical record block still supports the matching of the current candidate entity pair. Specifically, the system verifies whether the evidence related to the shared field in the historical external retrieval knowledge is still valid, and whether the evidence related to the difference field in the historical external retrieval knowledge matches the current difference field value. If the historical evidence still supports the current candidate pair, the evidence support check is passed.
[0052] (4) Source version verification The system determines whether the knowledge source of the external retrieval knowledge in the historical record block is within its validity period. Specifically, the system checks the version number and update time of the knowledge source corresponding to the historical external retrieval knowledge. If the knowledge source has been updated or has exceeded the preset validity period, the source version verification is deemed to have failed.
[0053] When all four checks pass, the system determines that the historical block-level matching context meets the matching requirements of the current record block and executes a direct reuse strategy. This direct reuse strategy involves directly using the retrieved block-level matching context as input for the large language model's matching process. Direct reuse means directly using shared field evidence, difference field verification information, and external retrieval knowledge from the historical block-level matching context for the matching of the current record block, without needing to re-retrieve external knowledge or reorganize the context.
[0054] If any of the above four checks fails, the system determines that the historical block-level matching context does not meet the matching requirements of the current record block, and executes an update and reuse strategy, including: supplementing external knowledge by retrieving external knowledge from an external knowledge base, and generating a new block-level matching context corresponding to the current record block based on the shared fields, difference fields and supplemented external knowledge of the candidate entity pair, and inputting the new block-level matching context into the large language model for matching and discrimination.
[0055] Specifically, the system retains the portions of the shared and difference fields in the historical record block that meet the matching requirements of the current record block. It then replaces the corresponding fields in the historical record block that do not meet the matching requirements with the shared and difference fields from the current record block that meet the matching requirements. The updated historical record block, the current candidate entity pair, and the supplementally retrieved external knowledge are then associated and encapsulated to generate a new block-level matching context. Supplementary retrieval refers to submitting a retrieval request to an external knowledge base based on the specific values of the difference fields in the current record block to obtain external knowledge directly related to the difference fields.
[0056] This step establishes an availability verification mechanism that includes four checks. Before reuse, the applicability of the historical context is judged. It is only reused directly if the verification passes. Otherwise, the fields of the current record block are used to replace the mismatched parts in the historical context and supplement the missing knowledge to be retrieved. This reduces the computational cost while ensuring matching accuracy.
[0057] Step S106: Large language model matching and discrimination and result output.
[0058] This step is used to input the block-level matching context (directly reused historical context or new context generated after supplementation and update) determined in step S105 into the large language model for matching and discrimination, and the large language model outputs entity matching results, confidence and discrimination criteria.
[0059] Specifically, the block-level matching context comprises the following components: candidate entity pairs, shared fields, difference fields, external retrieval knowledge, evidence scores, conflict markers, source versions, and inference strategies. The system organizes these components into an input sequence for the large language model. After inputting into the large language model, the matching discrimination process includes the following sub-steps: Sub-step S1061: Field alignment.
[0060] The large language model performs semantic matching on the corresponding fields of the source and target records in candidate entity pairs. For semantically matched fields, a field correspondence is established; for fields that do not match semantically but have semantic relationships, the relationship type is labeled; and for fields that cannot be matched, they are marked as discrepancy fields to be further analyzed.
[0061] Sub-step S1062: Evidence extraction.
[0062] The large language model extracts evidence supporting entity matching and evidence opposing entity matching from the aligned fields. Evidence supporting matching comes from the similarity of shared fields and positive associations in external retrieval knowledge; evidence opposing matching comes from the inconsistency of dissimilar fields and negative associations in external retrieval knowledge.
[0063] For example: (1) Evidence supporting a match can come from the following sources: Source 1: Shared fields -- the brand field is "XX" and the model field is "X100", indicating that the two records are consistent in the core identification attributes and belong to the same product series.
[0064] Source 2: External knowledge retrieval -- The external knowledge base contains the description "XX brand X100 series was released in 2024, including 128GB, 256GB and 512GB storage capacity versions", indicating that the different storage capacities are legitimate configuration variations under the same model, rather than different products.
[0065] (2) Evidence against matching: Source 1: Difference fields -- The capacity field is "256GB" vs. "128GB", which is obviously inconsistent; the price field is "4999" vs. "3999", which exceeds the reasonable price difference range for the same model with different capacities.
[0066] Source 2: External knowledge search -- The external knowledge base contains price information such as "XX brand X100 256GB version official price 4999 yuan, 128GB version official price 3999 yuan". Although both are legitimate configurations of the model, the price difference itself constitutes evidence against matching.
[0067] Sub-step S1063: Handling of evidence conflicts.
[0068] When both evidence supporting and opposing entity matching exist, the system determines that there is an evidence conflict and executes a preset conflict resolution strategy. The specific process is as follows: Let the set of evidence supporting entity matching be... The set of evidence against entity matching is .statistics The first quantity is denoted as , The second quantity is denoted as .like and If so, then a conflict of evidence is determined.
[0069] For the set of evidence For each piece of evidence, the system calculates its weighted score based on a preset conflict resolution strategy. ,in This serves as the base score for the evidence. This is the weighting coefficient for the evidence. Preferably, the weighting coefficient can be determined based on the following factors: the reliability of the evidence source (the higher the reliability of the source, the greater the weight), the correlation strength between the evidence and the difference field (evidence directly related to the difference field has a higher weight than evidence indirectly related to it), the time validity of the evidence (evidence with higher timeliness has a higher weight), and the version of the knowledge source to which the evidence belongs (knowledge with a newer version has a higher weight than knowledge with an older version).
[0070] In one implementation, the evidence base score The weighting coefficient can be uniformly set to 1. Based on the weighted sum of the above factors: in, The reliability score for the source of evidence, with a value range of [0,1]; The score is used to determine the strength of the association between the evidence and the difference field, with a value range of [0,1]. The time validity score of the evidence is given, with a value range of [0,1]. The knowledge source version of the evidence is scored, with a value range of [0,1]. , , , For the corresponding weight coefficients, satisfying And all of them are non-negative real numbers.
[0071] The weighted scores are then aggregated separately to obtain the total weighted score for evidence supporting entity matching. The weighted total score of evidence matching the opposing entity. : in, It is a set of evidence that supports entity matching. The first in One piece of evidence; It is a set of evidence against entity matching. The first in One piece of evidence; It is evidence In one implementation, the base score is uniformly set to 1. It is evidence In one implementation, the base score is uniformly set to 1. It is evidence The weighting coefficients are determined based on factors such as the reliability of the evidence source, the strength of the correlation between the evidence and the difference field, the temporal validity of the evidence, and the version of the knowledge source to which the evidence belongs. It is evidence The weighting coefficients are determined based on factors such as the reliability of the evidence source, the strength of the correlation between the evidence and the difference field, the temporal validity of the evidence, and the version of the knowledge source to which the evidence belongs.
[0072] Calculate the difference in weighted total scores .like ,in If a preset threshold is set, the match result is determined by the side with the higher weighted total score. If... Then it is determined to be a match, if Then it is judged as a mismatch. If If the evidence conflict cannot be effectively resolved through weighted resolution, the current candidate entity pair will be marked as awaiting manual review.
[0073] Sub-step S1064: Output the result.
[0074] The large language model outputs entity matching results (match or no match), confidence score (a value in the range [0,1] that represents the degree of certainty of the model’s judgment result), and judgment basis (including the main evidence supporting the match and the main evidence opposing the match).
[0075] This step establishes a weighted evidence conflict resolution mechanism, assigning weights to supporting and opposing evidence based on multiple dimensions such as source reliability, relevance of differing fields, timeliness, and version. The decision is made based on the difference in the weighted total score, achieving a balance between the quantity and quality of evidence and improving accuracy. Furthermore, when the difference in the weighted total score is insufficient to make a reliable judgment, candidate pairs are marked for manual review, avoiding the forced output of unreliable results in cases of ambiguous evidence.
[0076] Step S107: Match quality feedback and block strategy adjustment.
[0077] This step is used to adjust the subsequent block-segmentation strategy based on the confidence level and evidence conflict situation of the matching discrimination result output in step S106, forming an adaptive feedback loop.
[0078] Specifically, the system counts the number of matching results with a confidence level below a preset threshold and the number of candidate entity pairs with conflicting evidence in the current record block. When the number of matching results with a confidence level below the preset threshold exceeds a preset allowed number threshold, or the number of candidate entity pairs with conflicting evidence exceeds a preset conflict number threshold, the system determines that the matching quality of the current record block does not meet the requirements and triggers a block segmentation strategy adjustment.
[0079] Block partitioning strategy adjustments include at least one of the following operations: Strategy 1: Split the current record block.
[0080] Since subclasses of different difference field value ranges within the current record block may be semantically far apart, the similarity of shared fields is insufficient to bridge the semantic gap between the difference fields. Therefore, mixing multiple subclasses within the same block for unified discrimination is equivalent to requiring the large language model to process multiple different judgment logics simultaneously within the same discrimination context, which increases the model's inference burden and the probability of misclassification. This strategy divides the current record block into several sub-blocks according to the value range of the difference fields, ensuring that records within the same sub-block have consistent values or similar semantic features in the difference fields, thus decomposing the original problem into multiple more cohesive sub-problems. This significantly reduces the semantic dispersion of candidate entity pairs within the block in terms of difference fields, making the matching discrimination task within each sub-block more internally consistent, thereby improving the discrimination accuracy of the large language model in each sub-block.
[0081] For example: In the current record block, the capacity field contains both 128GB and 256GB records. These two types of records are identical in shared fields such as brand and model, but the different capacities actually point to different product specifications. The system splits this record block into sub-blocks with capacities of 128GB and 256GB according to the value range of the capacity field, and performs subsequent matching and discrimination separately, avoiding interference between records configured with 128GB and records configured with 256GB within the same block.
[0082] Strategy 2: Reduce the batch size of the current record block.
[0083] Because the computational complexity of the attention mechanism in large language models is quadratically related to the length of the input sequence, and the attention weights of the model at each position in the sequence are diluted as the sequence grows, the effective attention resources allocated to each candidate entity pair decrease when a single input contains too many candidate entity pairs, leading to a decline in the model's ability to capture individual features. This strategy divides the candidate entity pairs in the current record block into multiple batches and performs the discrimination through multiple calls instead of a single call, reducing the length of the input sequence in each call. This allows for more sufficient attention resources to be allocated to each candidate entity pair, improving the model's discrimination accuracy for each candidate entity pair, and is particularly suitable for large-scale record blocks containing a large number of candidate entity pairs.
[0084] For example: The current record block contains 11,400 candidate entity pairs. If all candidate pairs are input into a large language model at once, the excessively long input sequence will make it difficult for the model to fully focus on the subtle differences between each candidate pair. The system divides the record block into 10 batches according to the source or target records, with each batch containing 1,140 candidate entity pairs, and inputs them sequentially into the large language model for discrimination, thereby ensuring that each candidate pair receives sufficient attention weights.
[0085] Strategy 3: Increase the granularity of external retrieval for the difference fields.
[0086] Because coarse-grained external knowledge retrieval typically returns only summary information related to the overall description of candidate entities, such as an overall introduction to a product series or a general description of the entity, this information can support the verification of shared fields but is insufficient to support the precise discrimination of the specific values of differing fields. Refined retrieval of differing fields refers to using the field name and its specific value as search criteria to retrieve attribute-level knowledge directly related to that field-value combination from an external knowledge base, such as technical specifications for specific parameters or proof of the existence of a specific configuration version. This strategy provides more accurate knowledge support for the discrimination of differing fields, improving the sufficiency of the model's reasoning basis and the reliability of the discrimination results when there are disagreements in the differing fields.
[0087] For example, the difference field for the current candidate entity pair is "capacity," specifically 256GB and 128GB. Coarse-grained retrieval yields external knowledge such as "XX brand X100 series includes multiple storage capacity versions." This knowledge only confirms the existence of different capacities and is insufficient to accurately determine whether "this model has two specific configurations: 256GB and 128GB." The system performs a refined retrieval of the difference field, using "XX brand X100 256GB" and "XX brand X100 128GB" as search criteria to obtain their respective specifications, official price, release date, and other attribute-level information to support an accurate judgment on whether capacity differences affect the matching conclusion.
[0088] Strategy 4: Mark the current record block as requiring manual review.
[0089] When a record block contains a large number of low-confidence discrimination results or frequent evidence conflicts, it indicates that the data quality or feature distribution of that record block may exceed the reliable discrimination capability of the large language model in the current context. Forcing the output of unreliable discrimination results may lead to a large number of mismatches, polluting the downstream data governance process. This strategy introduces human experts for review, allowing humans to make the final judgment based on more comprehensive business knowledge and external information. This provides a fallback mechanism for difficult samples that the system cannot reliably handle. At the same time, the results of human review can be used as sample data with real labels, which can be fed back into subsequent iterative training after annotation, improving the model's discrimination capability for such difficult samples and forming a continuous optimization closed loop of human-machine collaboration.
[0090] For example: If more than 3% of the judgment results in the current record block have a confidence level below the threshold of 0.75, the system determines that the overall matching quality of the record block does not meet the requirements, and marks all candidate entity pairs in the record block as awaiting manual review. Reviewers examine the source and target records of each candidate entity pair in the system, making a final judgment of matching or non-matching based on business rules. After the review is completed, the system stores the manually confirmed matching results in the historical context cache, serving as the block-level matching context with real labels corresponding to that record block. This context supports the reuse and discrimination of subsequent similar record blocks and also serves as training samples for subsequent fine-tuning of the large language model.
[0091] This step establishes a feedback loop of matching quality monitoring and adaptive adjustment of block segmentation strategy, enabling the system to learn from low-confidence or high-conflict record blocks and optimize subsequent processing strategies, thereby achieving continuous improvement in matching quality.
[0092] The following describes the complete implementation process of the method of the present invention in detail through a specific product entity matching scenario.
[0093] In this embodiment, the source database is a product information table from e-commerce platform A, and the target database is a product information table from another e-commerce platform B. Both databases contain fields such as product name, brand, model, capacity, color, and price, but the field naming and record format differ. Both databases contain millions of records.
[0094] Step S1: Record Acquisition and Standardization Phase.
[0095] The system reads records to be matched in batches from the source and target databases. Taking one source record and one target record as an example: Source record: Product name "XX brand X100 256GB black smartphone", brand "XX", model "X100", capacity "256G", color "black", price "4999".
[0096] Target record: Product name "XX brand X100 128G black smartphone", brand "XX", model "X100", capacity "128GB", color "Black", price "3999".
[0097] The system performs standardization processing: the capacity field is standardized to "256GB" and "128GB" formats (removing the difference between "G" and "GB"), the color field is standardized to "black" (mapping "Black" to "black"), and the currency symbol and extra spaces in the price field are removed.
[0098] Step S2: Blocking and candidate entity pair generation stage.
[0099] The system divides records according to the preset "brand + model" segmentation rule. Since both records have "XX" in the brand field and "X100" in the model field, the two records are divided into the same record block.
[0100] Within the same record block, the system combines source database records with target database records one by one to generate candidate entity pairs. In this embodiment, the record block contains 120 source records and 95 target records, generating a total of 11,400 candidate entity pairs.
[0101] Step S3: Extraction of shared and differential fields and generation of block fingerprints.
[0102] The system analyzed the similarity of values across various fields in the 11,400 candidate entity pairs within the record block. Statistical analysis revealed that the "Brand" field was identical across all candidate pairs (all "XX"), and the "Model" field was identical across all candidate pairs (all "X100"). Therefore, "Brand" and "Model" were marked as shared fields. The "Capacity" field differed in some candidate pairs ("256GB" and "128GB" appeared simultaneously), and the "Color" field differed in some candidate pairs ("Black" and "Other Colors"). Therefore, "Capacity" and "Color" were marked as differing fields.
[0103] The system extracted feature information from the record block: the number of candidate entity pairs was 11,400, the brand field had no missing entries, the model field had no missing entries, and the capacity field had a missing rate of 0.5%. The system calculated the degree of category mixing in the field: for the capacity field, "256GB" appeared in 65% of cases, "128GB" appeared in 35%, and the category entropy was... The calculation is as follows: Entropy of this category This is used to characterize the dispersion of values in the capacity field of the current record block. The higher the entropy value, the more mixed the values of the field, and the greater the divergence in the capacity attribute among the records within the block. In the subsequent manual review strategy (Strategy 4), the system integrates the category entropy values of each difference field within the block. When the entropy value exceeds a preset threshold, it indicates that the field lacks a dominant value within the record block and belongs to a highly ambiguous field with semantic ambiguity. Based on this, the system marks the difference field as a key review field, prompting manual reviewers to pay priority attention to the value differences of this field.
[0104] After feature extraction is complete, the system will share the fields (brand, model), the difference fields (capacity, color), the number of candidate entity pairs (11400), the missing rate of each field (brand 0%, model 0%, capacity 0.5%), and the category entropy value of each difference field (capacity). ,color The information such as ( ) is combined and encoded to generate the block fingerprint of the current record block.
[0105] Step S4: Historical Context Retrieval Stage.
[0106] The system uses the block fingerprint of the current record block as an index to perform a similarity search in the historical context cache. If a block fingerprint already exists in the historical context cache and its cosine similarity to the current block fingerprint is 0.92, exceeding the preset search similarity threshold of 0.80, the system outputs this historical block-level matching context as the search result.
[0107] The historical block-level matching context includes: the shared fields of the historical record block are "brand" and "model", the difference field is "capacity" (the historical record block does not contain the "color" difference field), and the external retrieval knowledge includes the product description of the XX brand X100 series and the statement that there are different storage capacity versions of this series.
[0108] Step S5: Availability verification phase.
[0109] The system performs the following four checks on the retrieved historical block-level matching context: Block similarity check: The similarity between the current block fingerprint and the historical block fingerprint is 0.92, which exceeds the preset usability similarity threshold of 0.85. The check is successful.
[0110] Conflict check for difference fields: The difference field for the history block is "Capacity" (only one item), while the difference fields for the current record block are "Capacity" and "Color". Regarding the "Capacity" field, the history block contains information on the coexistence of 128G and 256G capacity configurations, consistent with the difference in the capacity field of the current record block, and there is no conflict. However, the "Color" field in the current record block, as a difference field, is not marked in the history block; the check result for this item indicates a missing difference field.
[0111] Evidence support verification: The external retrieval knowledge in the historical block-level matching context contains a description that the XX brand X100 series has multiple storage capacity versions (128GB and 256GB). This knowledge supports the discrimination of capacity differences in the current candidate pair, and the verification passes.
[0112] Source version verification: The source version of the external retrieval knowledge in the historical block-level matching context is March 2025, which is less than 12 months from the current time and the verification is successful.
[0113] Since the color field was not covered by the historical context during the difference field conflict check, the system determined that the historical block-level matching context did not meet the full match requirement of the current record block and executed the update reuse strategy.
[0114] Step S6: Context update and reuse phase.
[0115] The system retains evidence from the historical record block for the shared fields "Brand" and "Model" that meet the current requirements, as well as relevant evidence for the difference field "Capacity". For the "Color" difference field not included in the historical record block, the system replaces the corresponding part in the historical block with the "Color" field of the current record block; that is, since the "Color" field does not exist in the historical block, it is equivalent to adding the difference field. The system submits a supplementary search request for "XX Brand X100 Color Configuration" to an external knowledge base to obtain external knowledge on color versions. The updated shared fields and difference fields, candidate entity pairs, and the supplementary retrieved external knowledge are associated and encapsulated to generate a new block-level matching context corresponding to the current record block.
[0116] Step S7: Large language model matching and discrimination stage.
[0117] The system inputs the new block-level matching context into the large language model. The input includes: all fields of the source and target records of the candidate entity pairs, comparison results of shared fields (brand, model), comparison of specific values of difference fields (capacity, color), and external retrieval knowledge (product specifications, storage capacity version description, and color configuration description of the XX brand X100 series).
[0118] Large language model performs field alignment: semantically matches the source record's "capacity" field value "256GB" with the target record's "capacity" field value "128GB" to confirm that they are different storage capacity configurations under the same model.
[0119] Evidence collected: Supporting evidence includes consistent brand, consistent model, and external knowledge indicating that the X100 series includes multiple capacity versions; opposing evidence includes different capacity values (256GB vs 128GB) and different prices (4999 vs 3999).
[0120] Conflict of evidence handling: The system counts the number of supporting pieces of evidence. Number of opposing evidence All values are greater than zero, indicating a conflict of evidence. The system calculates a weighted score for each piece of evidence based on the conflict resolution strategy. Among the supporting evidence, evidence of brand consistency has high reliability (database main field) and is not directly related to the difference field; evidence of model consistency has high reliability and is not directly related to the difference field; evidence of external knowledge version description has moderate reliability and is directly related to the difference field "capacity". Among the opposing evidence, evidence of different capacities is directly related to the difference field and has high weight; evidence of different prices is not directly related to the difference field and has low weight. The total weighted score for supporting evidence is calculated as follows: Weighted total score of opposing evidence Difference Exceeding the preset threshold The system uses the side with the higher weighted total score as the matching result and determines it as a match.
[0121] S8: Results Output and Quality Feedback Stage.
[0122] The large language model outputs a matching result: Match, with a confidence level of 0.88. The criteria for matching list the main evidence supporting the match (consistent brand, consistent model, external knowledge indicating that the model has multiple capacity versions) and the main evidence opposing the match (different capacity values, different prices).
[0123] The system analyzes the quality of the current record block's discrimination results: This record block contains 11,400 candidate entity pairs. 430 of these discriminant results (3.77%) have a confidence level below the preset threshold of 0.75, exceeding the preset allowable percentage threshold of 3%, thus triggering a block segmentation strategy adjustment. The system splits the current record block into sub-blocks with a capacity of 256GB and sub-blocks with a capacity of 128GB based on the value range of the "Capacity" field, performing independent matching and discrimination for each sub-block to avoid cross-class comparison interference between different capacity configurations.
[0124] This concludes the description of a complete implementation process of the present invention. After multiple rounds of iterative processing, the matching quality of each record block continues to improve, the proportion of low-confidence results gradually decreases to below the preset threshold, and the system achieves adaptive optimization convergence.
[0125] See Figure 2 Another embodiment of the present invention provides a large language model entity matching device 200 based on block-level matching context, including a record acquisition and standardization module 201, a record segmentation and candidate pair generation module 202, a field extraction and block fingerprint generation module 203, a historical context retrieval module 204, an availability verification and context management module 205, and a model discrimination and result output module 206. The large language model entity matching device 200 based on block-level matching context can execute the large language model entity matching method based on block-level matching context in the method embodiment.
[0126] Specifically, the large language model entity matching device 200 based on block-level matching context includes: The record acquisition and standardization module 201 is used to acquire the records to be matched from the source database and the target database, and to standardize the fields of the records to be matched. The record segmentation and candidate pair generation module 202 is used to divide similar records after standardization into the same record block according to a preset segmentation rule, and to combine the records to be matched from the source database and the records to be matched from the target database within the record block to generate candidate entity pairs. The field extraction and block fingerprint generation module 203 is used to analyze candidate entity pairs within the record block, extract the shared fields and difference fields of each candidate entity pair, and generate the block fingerprint of the current record block based on the shared fields, difference fields, and feature information of the record block. The historical context retrieval module 204 is used to retrieve, based on the block fingerprint, block-level matching contexts in the historical context cache that meet preset conditions in terms of feature similarity to the current record block. The block-level matching contexts include shared fields, difference fields, and external retrieval knowledge of historical record blocks. The availability verification and context management module 205 is used to verify the availability of the retrieved block-level matching context to determine whether the shared fields, difference fields, and external retrieval knowledge of the historical record block meet the matching requirements of the current record block. If yes, the retrieved block-level matching context is directly input into the large language model for matching. Otherwise, external knowledge is retrieved by supplementing the external knowledge base, and a new block-level matching context corresponding to the current record block is generated based on the shared fields, difference fields, and supplemented external knowledge of the candidate entity pair. The new block-level matching context is then input into the large language model for matching. The model discrimination and result output module 206 is used to output entity matching results, confidence scores and discrimination criteria from the large language model.
[0127] It should be noted that the technical solutions corresponding to the large language model entity matching device 200 based on block-level matching context provided in this embodiment, which can be used to execute various method embodiments, have similar implementation principles and technical effects to the methods, and will not be repeated here.
[0128] Figure 3 This is a schematic diagram of an electronic device 300 provided in another embodiment of the present invention. The electronic device 300 is used to implement the large language model entity matching method based on block-level matching context in the method embodiment. The electronic device 300 in the embodiments of the present invention may include, but is not limited to, smartphones, tablet computers, PCs, laptops, etc. Figure 3 The electronic device 300 shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.
[0129] like Figure 3As shown, the electronic device 300 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 301, which can perform various appropriate actions and processes to implement the methods of the embodiments described herein, based on a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 308 into a random access memory (RAM) 303. The RAM 303 also stores various programs and data required for the operation of the electronic device 300. The processing device 301, ROM 302, and RAM 303 are interconnected via a bus 305. An input / output (I / O) interface 304 is also connected to the bus 305.
[0130] Typically, the following devices can be connected to I / O interface 304: input devices 306 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 307 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 308 including, for example, magnetic tapes, hard disks, etc.; and communication devices 309. Communication device 309 allows electronic device 300 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 3 An electronic device 300 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0131] The above description is merely a preferred embodiment of the present invention. Those skilled in the art should understand that the scope of disclosure in this invention is not limited to the specific combination of the above-described technical features, but should also cover other technical solutions formed by any combination of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this invention.
Claims
1. A method for entity matching in a large language model based on block-level matching context, characterized in that, Includes the following steps: Obtain the records to be matched from the source database and the target database, and standardize the fields of the records to be matched; According to the preset segmentation rules, similar records after standardization are divided into the same record block, and within the record block, the records to be matched from the source database and the records to be matched from the target database are combined to generate candidate entity pairs. Analyze the candidate entity pairs within the record block, and extract the shared and difference fields for each candidate entity pair; generate the block fingerprint of the current record block based on the shared fields, difference fields, and feature information of the record block; Based on the block fingerprint, a block-level matching context that meets the preset conditions for feature similarity with the current record block is retrieved from the historical context cache. The block-level matching context includes shared fields, difference fields, and external retrieval knowledge of the historical record block. The retrieved block-level matching context is validated for availability to determine whether the shared fields, difference fields, and external retrieval knowledge of the historical record block meet the matching and discrimination requirements of the current record block. If so, the retrieved block-level matching context is directly input into the large language model for matching and discrimination. Otherwise, external knowledge is retrieved by supplementing external knowledge base, and a new block-level matching context corresponding to the current record block is generated based on the shared fields, difference fields and supplemented external knowledge of the candidate entity pair, and the new block-level matching context is input into the large language model for matching and discrimination; The large language model outputs entity matching results, confidence scores, and discrimination criteria.
2. The method for entity matching of a large language model based on block-level matching context as described in claim 1, characterized in that, The step of generating a new block-level matching context corresponding to the current record block based on the shared fields, difference fields, and supplementary retrieved external knowledge of the candidate entity pairs includes: The shared fields and difference fields of the historical record block that meet the matching and discrimination requirements of the current record block are retained, and the corresponding fields in the historical record block that do not meet the matching and discrimination requirements are replaced with the shared fields and difference fields in the current record block that meet the matching and discrimination requirements. The updated historical record block, the candidate entity pair, and the supplementary retrieved external knowledge are associated and encapsulated to generate a new block-level matching context.
3. The method for entity matching of a large language model based on block-level matching context as described in claim 1, characterized in that, The availability check includes: Block similarity check is used to determine whether the historical record block and the current record block meet preset similarity conditions; Difference field conflict check is used to determine whether there is a conflict between the difference field of the historical record block and the difference field of the current record block; Evidence support verification is used to determine whether the external retrieval knowledge of the historical record block still supports the matching and discrimination of the current candidate entity pair; Additionally, source version verification is used to determine whether the external retrieval knowledge of the historical record block is within its validity period.
4. The method for entity matching of a large language model based on block-level matching context as described in claim 1, characterized in that, The step of generating a block fingerprint for the current record block based on the shared fields, the difference fields, and the feature information of the record block includes: The block fingerprint is obtained by combining and encoding or hashing multiple pieces of information, including the shared fields, the difference fields, the number of candidate entity pairs, the field missing status, and the degree of field category mixing.
5. The method for entity matching of a large language model based on block-level matching context according to claim 1, characterized in that, Also includes: The retrieved external knowledge is scored based on the degree of association between external knowledge and candidate entity pairs in the current record block, the coverage of external knowledge to multiple candidate entity pairs, the explanatory power of external knowledge to the difference fields, the reliability of the source of external knowledge, and the noise level of external knowledge. External knowledge that meets the preset conditions is retained to generate the block-level matching context.
6. The method for entity matching of a large language model based on block-level matching context as described in claim 1, characterized in that, The step of directly inputting the retrieved block-level matching context into the large language model for matching and discrimination, or inputting the new block-level matching context into the large language model for matching and discrimination, includes: Candidate entity pairs, shared fields, differing fields, and external retrieval knowledge are used as inputs to the large language model; The fields of the candidate entity pairs are aligned using the large language model, and evidence supporting entity matching and evidence opposing entity matching are extracted from the aligned fields. The conflict resolution process for the evidence supporting entity matching and the evidence opposing entity matching includes: counting a first number of pieces of evidence supporting entity matching and a second number of pieces of evidence opposing entity matching; if both the first number and the second number are greater than zero, it is determined that there is an evidence conflict; calculating the weighted score of each piece of evidence according to a preset conflict resolution strategy, and summarizing the evidence supporting entity matching and the evidence opposing entity matching according to the weighted scores to obtain a first weighted total score for the evidence supporting entity matching and a second weighted total score for the evidence opposing entity matching; If the difference between the first weighted total score and the second weighted total score exceeds a preset threshold, the one with the higher weighted total score is used as the matching result. If the difference does not exceed the preset threshold, the candidate entity pair is marked as pending manual review.
7. The method for entity matching of a large language model based on block-level matching context according to claim 6, characterized in that, The conflict resolution strategies include: Evidence is weighted according to its source and reliability, with higher-reliability evidence having a higher weight. Evidence is weighted according to the strength of its association with the difference field, with evidence directly related to the difference field having a higher weight. Evidence is weighted according to its time validity, with evidence that is more time-sensitive having a higher weight. Furthermore, the evidence is weighted according to the version of the knowledge source to which it belongs, with newer versions of the knowledge having higher weights.
8. The method for entity matching of a large language model based on block-level matching context according to claim 7, characterized in that, Also includes: Count the number of matching results with a confidence level lower than a preset threshold in the current record block, and / or the number of conflicting evidence; When the number of matching results with confidence levels below a preset threshold or the number of conflicting pieces of evidence exceeds a preset threshold, the subsequent block segmentation strategy is adjusted, including at least one of the following: The current record block is split, the batch discrimination scale of the current record block is reduced, the granularity of external retrieval is increased for the difference fields, and the current record block is marked as to be transferred to manual review.
9. A large language model entity matching device based on block-level matching context, characterized in that, include: The record acquisition and standardization module is used to acquire the records to be matched from the source database and the target database, and to standardize the fields of the records to be matched. The record segmentation and candidate pair generation module is used to divide similar records after standardization into the same record block according to a preset segmentation rule, and to combine the records to be matched from the source database and the records to be matched from the target database within the record block to generate candidate entity pairs. The field extraction and block fingerprint generation module is used to analyze candidate entity pairs within the record block, extract the shared fields and difference fields of each candidate entity pair, and generate the block fingerprint of the current record block based on the shared fields, difference fields, and feature information of the record block. The historical context retrieval module is used to retrieve, based on the block fingerprint, block-level matching contexts in the historical context cache that meet preset conditions in terms of feature similarity to the current record block. The block-level matching contexts include shared fields, difference fields, and external retrieval knowledge of historical record blocks. The availability verification and context management module is used to verify the availability of the retrieved block-level matching context to determine whether the shared fields, difference fields and external retrieval knowledge of the historical record block meet the matching and discrimination requirements of the current record block. If so, the retrieved block-level matching context is directly input into the large language model for matching and discrimination. Otherwise, external knowledge is retrieved by supplementing external knowledge base, and a new block-level matching context corresponding to the current record block is generated based on the shared fields, difference fields and supplemented external knowledge of the candidate entity pair, and the new block-level matching context is input into the large language model for matching and discrimination; The model discrimination and result output module is used to output entity matching results, confidence scores, and discrimination criteria from the large language model.
10. The entity matching device for a large language model based on block-level matching context according to claim 9, characterized in that: The availability verification and context management module is further used to: take candidate entity pairs, shared fields, differential fields, and external retrieval knowledge as input to the large language model; align the fields of the candidate entity pairs through the large language model, and extract evidence supporting entity matching and evidence opposing entity matching from the aligned fields; The conflict resolution process for the evidence supporting and opposing entity matching includes: counting a first number of pieces of evidence supporting entity matching and a second number of pieces of evidence opposing entity matching; if both the first and second numbers are greater than zero, an evidence conflict is determined; calculating a weighted score for each piece of evidence according to a preset conflict resolution strategy, and summarizing the weighted scores for the evidence supporting and opposing entity matching to obtain a first weighted total score for the evidence supporting entity matching and a second weighted total score for the evidence opposing entity matching; if the difference between the first weighted total score and the second weighted total score exceeds a preset threshold, the one with the higher weighted total score is used as the matching result; if the difference does not exceed the preset threshold, the candidate entity pair is marked as awaiting manual review; and outputting the matching result, confidence level, and judgment criteria through the large language model. The conflict resolution strategy includes: weighting evidence based on the reliability of its source, with evidence of higher reliability having higher weight; weighting evidence based on the strength of its association with the difference field, with evidence directly related to the difference field having higher weight; weighting evidence based on its time validity, with evidence of higher timeliness having higher weight; and weighting evidence based on the version of the knowledge source to which it belongs, with newer versions of the knowledge having higher weight. The large language model entity matching device also includes a feedback adjustment module, used to count the number of matching results with confidence levels below a preset threshold and / or the number of evidence conflicts in the current record block; when the number of matching results with confidence levels below the preset threshold or the number of evidence conflicts exceeds the preset threshold, the subsequent block segmentation strategy is adjusted, including at least one of the following: splitting the current record block, reducing the batch discrimination scale of the current record block, increasing the granularity of external retrieval for the difference fields, and marking the current record block as requiring manual review.
