Regulation retrieval method and system based on fact level and basis level mixed evidence graph
By constructing a hybrid evidence graph that combines factual and evidentiary evidence, the semantic gap between user descriptions and applicable legal provisions in multi-round legal consultations was resolved, resulting in more accurate legal retrieval and noise reduction, thus improving the reliability of the legal intelligent question-and-answer and retrieval system.
Patent Information
- Application Number
- CN202611329113.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-28
- Publication Date
- 2026-11-20
AI Technical Summary
Existing legal retrieval methods struggle to effectively connect colloquial user descriptions with the applicable conditions of formal legal provisions during multiple rounds of legal consultations, leading to semantic gaps, noise issues, and a lack of supporting intermediate evidence.
A legal retrieval method based on a hybrid evidence graph of fact-level and basis-level is constructed. The method generates a query representation by obtaining user questions and their historical dialogue context, and constructs a hybrid evidence graph based on historical legal case information, including fact nodes, basis-level nodes, case nodes and legal provision nodes. It performs a full-scale dense legal retrieval, a fact-level and basis-level case support retrieval, and integrates multi-level sorting to generate the final legal provision sorting.
It improves the accuracy of legal retrieval, reduces case noise caused by fact matching, maintains the retrieval capability of the full legal corpus, enhances the matching capability of abstract legal application patterns, and provides more reliable legal provisions support for legal intelligent question answering and legal retrieval systems.
Smart Images

Figure CN123138281A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the fields of artificial intelligence and legal information retrieval technology, specifically to legal retrieval, legal knowledge graphs, case evidence modeling, and retrieval enhancement generation technologies for multi-round legal consultations. More specifically, it relates to a legal retrieval method and system based on a hybrid evidence graph of fact-level and evidence-level. Background Technology
[0002] With the development of legal intelligent question answering and legal retrieval systems, accurately retrieving applicable legal provisions from large-scale legal corpora has become a key issue in legal artificial intelligence systems. Especially in multi-round legal consultation scenarios, users often describe facts in a colloquial and unprofessional manner, and the factual information is constantly supplemented and changed with each round of dialogue; while laws and regulations typically use abstract, formal, and standardized language to express applicable conditions. Therefore, there is a significant semantic gap between user questions and legal texts, making it difficult for query-legal provision retrieval methods based directly on term matching or semantic vector similarity to reliably capture the applicability of legal provisions.
[0003] Existing legal retrieval methods mainly include sparse retrieval, dense retrieval, hybrid retrieval, re-ranking, and graph propagation methods based on legal structure. These methods can improve the matching quality between queries and legal texts to some extent, but most still primarily compare user queries with the legal texts themselves, lacking intermediate evidence that connects colloquial factual descriptions with the formal conditions for the application of legal provisions. Legal cases contain specific facts, points of contention, legal basis for judgment, and applicable legal provisions, providing intermediate evidence for legal retrieval. However, directly using case retrieval results to assist in legal provision retrieval also introduces noise: cases with similar facts may involve different legal issues, and cases with different apparent facts may share the same legal basis for application. Therefore, a case evidence modeling approach is needed that can distinguish between factual similarity and legal basis for application, enabling case evidence to serve as supplementary supporting signals rather than directly limiting or replacing the entire legal retrieval process. Summary of the Invention
[0004] To address the aforementioned issues, this disclosure proposes a regulatory retrieval method and system, a computing system, and a computer-readable storage medium based on a hybrid evidence graph of fact-level and basis-level evidence.
[0005] According to one aspect of this disclosure, a legal retrieval method based on a hybrid evidence graph of fact-level and basis-level elements is provided. The method includes: obtaining the current user question and its historical dialogue context, and generating a query representation for legal retrieval based on the current user question and its historical dialogue context; constructing a hybrid evidence graph based on historical legal case information, the hybrid evidence graph including fact nodes, basis-level nodes, case nodes, and legal provision nodes, wherein the fact nodes represent factual information of the case, the basis-level nodes represent the basis pattern of legal application, the case nodes connect the fact nodes, basis-level nodes, and legal provision nodes of the corresponding case, and the legal provision nodes store the legal provision number and text; and executing all relevant legal provisions based on the query representation. Dense retrieval, fact-level case support retrieval, and basis-level case support retrieval are used to obtain a first legal provision ranking, a second legal provision ranking, and a third legal provision ranking. Specifically, the full-volume dense retrieval of regulations is used to retrieve legal provisions in the regulatory corpus that are semantically related to the query representation; the fact-level case support retrieval is used to retrieve fact nodes matching the factual information represented by the query in the mixed evidence graph and extend them to related legal provisions; the basis-level case support retrieval is used to retrieve basis-level nodes matching the legal elements represented by the query in the mixed evidence graph and extend them to related legal provisions; a graph support ranking is determined based on the second legal provision ranking and the third legal provision ranking; and a final legal provision ranking is determined based on the first legal provision ranking and the graph support ranking.
[0006] Optionally, the steps of constructing a hybrid evidence graph based on historical legal case information include: normalizing each historical legal case information into a unified case record using a large language model. The case record includes a case identifier, legal domain, fact summary, atomic basis elements, related legal provisions, and case metadata. The fact summary represents the main factual content of the case; the atomic basis elements represent the smallest legal judgment unit related to the application of legal provisions in the historical legal case information; the related legal provisions represent the legal provisions explicitly cited or inferred to be related in the case; and the case metadata includes cause of action, charge, or other case attribute information. For each case record, corresponding case nodes and fact nodes are established, and the association between the case nodes and fact nodes is established. For each atomic basis element in the case record, a basis node is established, and the association between the case node and the basis node is established. For each related legal provision, a corresponding legal provision node is established, and the association between the case node and the legal provision node is established. Finally, based on multiple basis nodes, a multi-level basis-level hierarchical structure is constructed to obtain a hybrid evidence graph.
[0007] Optionally, the step of constructing a multi-level basis-level hierarchical structure based on multiple basis nodes includes: inputting each atomic basis element into a semantic embedding encoder, and pooling and normalizing the output of the semantic embedding encoder to generate a semantic embedding representation vector; clustering the atomic basis elements based on the similarity of the semantic embedding representation vectors, and generating a leaf basis pattern node for each cluster, wherein the leaf basis pattern node stores a member list and a center vector obtained by normalizing the mean of the member vectors; and recursively merging the leaf basis pattern nodes based on the semantic similarity between them to form the multi-level basis-level hierarchical structure.
[0008] Optionally, the step of performing the fact-level case support retrieval to obtain the second legal provision ranking includes: extracting factual information from the query representation to generate a fact query vector; retrieving a predetermined number of fact nodes with the highest similarity to the fact query vector in the fact embedding index of the hybrid evidence graph; extending the case nodes connected via the predetermined number of fact nodes to the associated legal provision nodes; and generating the second legal provision ranking based on the similarity between the associated legal provision nodes and the fact query vector.
[0009] Optionally, the step of performing the basis-level case support retrieval to obtain the third legal provision ranking includes: generating one or more basis-based tags based on the query representation; matching basis-level nodes corresponding to the one or more basis-based tags in the basis-level node index of the hybrid evidence graph; determining the legal provision nodes associated with the matched basis-level nodes; and generating the third legal provision ranking based on the degree of matching between the associated legal provision nodes and the basis-based tags.
[0010] Optionally, the step of determining the graph support ranking based on the second and third legal provision rankings includes: for each legal provision in the legal corpus, in response to the legal provision appearing in both the second and third legal provision rankings, determining its graph support score using a reciprocal ranking fusion method based on the ranking of the corresponding legal provision in both the second and third legal provision rankings; in response to the legal provision appearing in only one of the second and third legal provision rankings, determining its graph support score based on the ranking of the corresponding legal provision in the corresponding ranking; in response to the legal provision not appearing in either the second or third legal provision ranking, determining its graph support score as zero; and generating the graph support ranking based on the graph support score of each legal provision.
[0011] Optionally, the step of determining the final legal provision ranking based on the first legal provision ranking and the graph support ranking includes: for each legal provision in the legal corpus, in response to the legal provision appearing in the graph support ranking, determining its final score using a reciprocal ranking fusion method based on the legal provision's rank in the first legal provision ranking and its rank in the graph support ranking; in response to the legal provision not appearing in the graph support ranking, determining its final score based on the legal provision's rank in the first legal provision ranking; and generating the final legal provision ranking based on the final score of each legal provision.
[0012] According to another aspect of this disclosure, a legal retrieval system based on a hybrid evidence graph of fact-level and basis-level elements is provided. The legal retrieval system includes: a query acquisition and representation unit configured to acquire the current user question and its historical dialogue context, and generate a query representation for legal retrieval based on the current user question and its historical dialogue context; a hybrid evidence graph construction unit configured to construct a hybrid evidence graph based on historical legal case information, the hybrid evidence graph including fact nodes, basis-level nodes, case nodes, and legal provision nodes, wherein the fact nodes represent factual information of the case, the basis-level nodes represent the basis pattern of legal application, the case nodes connect the fact nodes, basis-level nodes, and legal provision nodes of the corresponding case, and the legal provision nodes store the legal provision number and text; and a retrieval unit configured to, based on the query representation, respectively... The system performs a full-scale dense legal retrieval, a fact-level case support retrieval, and a basis-level case support retrieval to obtain a first legal provision ranking, a second legal provision ranking, and a third legal provision ranking. The full-scale dense legal retrieval is used to retrieve legal provisions in the legal corpus that are semantically related to the query representation. The fact-level case support retrieval is used to retrieve fact nodes matching the factual information in the mixed evidence graph and extend them to related legal provisions. The basis-level case support retrieval is used to retrieve basis-level nodes matching the legal elements in the mixed evidence graph and extend them to related legal provisions. A first legal provision ranking unit is configured to determine a graph support ranking based on the second and third legal provision rankings. A second legal provision ranking unit is configured to determine a final legal provision ranking based on the first legal provision ranking and the graph support rankings.
[0013] Optionally, the hybrid evidence graph construction unit is further configured to: normalize each historical legal case information into a unified case record using a large language model; the case record includes a case identifier, legal domain, fact summary, atomic basis elements, related legal provisions, and case metadata; wherein the fact summary represents the main factual content of the case; the atomic basis elements represent the smallest legal judgment unit related to the application of legal provisions in the historical legal case information; the related legal provisions represent the legal provisions explicitly cited or inferred to be related by the case; and the case metadata includes cause of action, charge, or other case attribute information; establish corresponding case nodes and fact nodes for each case record, and establish the association between the case nodes and the fact nodes; establish basis nodes for each atomic basis element in the case record, and establish the association between the case nodes and the basis nodes; establish corresponding legal provision nodes for the related legal provisions, and establish the association between the case nodes and the legal provision nodes; and construct a multi-level basis-level hierarchical structure based on multiple basis nodes to obtain a hybrid evidence graph.
[0014] Optionally, the hybrid evidence graph construction unit is further configured to: input each atomized basis element into a semantic embedding encoder, and pool and normalize the output of the semantic embedding encoder to generate a semantic embedding representation vector; cluster the atomized basis elements based on the similarity of the semantic embedding representation vectors, and generate a leaf basis pattern node for each cluster, wherein the leaf basis pattern node stores a member list and a center vector obtained by normalizing the mean of the member vectors; and recursively merge the leaf basis pattern nodes based on the semantic similarity between them to form the multi-level basis-level hierarchical structure.
[0015] Optionally, the retrieval unit is further configured to: extract factual information from the query representation to generate a factual query vector; retrieve a predetermined number of factual nodes with the highest similarity to the factual query vector in the factual embedding index of the hybrid evidence graph; extend the case nodes connected by the predetermined number of factual nodes to the associated legal provision nodes; and generate the second legal provision ranking based on the similarity between the associated legal provision nodes and the factual query vector.
[0016] Optionally, the retrieval unit is further configured to: generate one or more basis-based tags based on the query representation; match basis-level nodes corresponding to the one or more basis-based tags in the basis-level node index of the hybrid evidence graph; determine the legal provision nodes associated with the matched basis-level nodes; and generate the third legal provision ranking based on the degree of matching between the associated legal provision nodes and the basis-based tags.
[0017] Optionally, the first legal provision sorting unit is further configured to: for each legal provision in the legal corpus, in response to the legal provision appearing simultaneously in the second legal provision sorting and the third legal provision sorting, determine its graph support score based on the ranking of the corresponding legal provision in the second legal provision sorting and the third legal provision sorting by using a reciprocal sorting fusion method; in response to the legal provision appearing only in one of the second legal provision sorting and the third legal provision sorting, determine its graph support score based on the ranking of the corresponding legal provision in the corresponding sorting; in response to the legal provision not appearing in the second legal provision sorting and the third legal provision sorting, determine its graph support score as zero; and generate the graph support sorting based on the graph support score of each legal provision.
[0018] Optionally, the second legal provision sorting unit is further configured to: for each legal provision in the legal corpus, in response to the legal provision appearing in the graph support sorting, determine its final score using a reciprocal sorting fusion method based on the legal provision's rank in the first legal provision sorting and its rank in the graph support sorting; in response to the legal provision not appearing in the graph support sorting, determine its final score based on the legal provision's rank in the first legal provision sorting; and generate the final legal provision sorting based on the final score of each legal provision.
[0019] According to another aspect of this disclosure, a computing system is provided that includes at least one computing device and at least one storage device of instructions, wherein, when the instructions are executed by the at least one computing device, they cause the at least one computing device to perform the regulatory retrieval method based on a hybrid evidence graph of fact-level and basis-level as described above.
[0020] According to another aspect of this disclosure, a computer-readable storage medium for storing instructions is provided, wherein when the instructions are executed by at least one computing device, the at least one computing device causes the at least one computing device to perform the regulatory retrieval method based on a hybrid evidence graph of fact-level and basis-level as described above.
[0021] By adopting this disclosure, it is possible to simultaneously utilize fact-level similarity and basis-level applicability evidence, thereby reducing case noise caused by simple fact matching; it is possible to maintain the ability to search the full legal corpus even when the coverage of graph evidence is incomplete, avoiding rigidly limiting the search scope to the legal provisions covered by the graph; it is possible to improve the matching ability of abstract legal application patterns through the basis-level hierarchical structure; and it is possible to provide more reliable legal provision support for legal intelligent question answering, legal retrieval, and legal retrieval enhancement generation systems. Attached Figure Description
[0022] The above and / or other objects and advantages of this disclosure will become clearer from the following description of embodiments in conjunction with the accompanying drawings, wherein: Figure 1This is a flowchart illustrating a regulatory retrieval method based on a hybrid evidence graph of fact-level and basis-level evidence according to an exemplary embodiment of the present disclosure; Figure 2 This is a schematic diagram illustrating the overall framework of a hybrid evidence graph based on fact-level and basis-level evidence according to an embodiment of this disclosure; Figure 3 This is a schematic diagram illustrating the principle of applying a multi-round legal consultation and regulatory retrieval scenario according to an embodiment of this disclosure; Figure 4 This is a block diagram illustrating a regulatory retrieval system based on a hybrid evidence graph of fact-level and basis-level evidence according to an exemplary embodiment of the present disclosure; Figure 5 This is a block diagram illustrating a computing system including at least one computing device and at least one storage device of storage instructions according to an exemplary embodiment of the present disclosure. Detailed Implementation
[0023] The following description, in conjunction with the accompanying drawings, provides specific embodiments to aid the reader in gaining a comprehensive understanding of the methods, apparatus, and / or systems described herein. However, upon understanding this disclosure, various changes, modifications, and equivalents of the methods, apparatus, and / or systems described herein will become apparent. For example, the order of operations described herein is merely illustrative and is not limited to those orders set forth herein, but may be altered as will become clear upon understanding this disclosure, except for operations that must occur in a specific order. Furthermore, for clarity and conciseness, descriptions of features known in the art may be omitted.
[0024] The purpose of this disclosure is to provide a multi-round legal consultation and regulatory retrieval method and system based on a hybrid evidence graph of fact-level and basis-level elements, to address the problems of existing regulatory retrieval methods, such as difficulty in utilizing intermediate evidence in cases, the easy introduction of noise in direct case expansion, and the potential limitation of the retrieval scope when the graph evidence coverage is incomplete. To achieve the above objective, this disclosure constructs a case-derived hybrid evidence graph, representing external legal cases as a unified case record containing fact summaries, atomic basis elements, related legal provisions, and case metadata. The hybrid evidence graph uses case nodes as hubs, connecting fact nodes, basis-level nodes, and legal provision nodes. Fact nodes are used to characterize the similarity of facts in cases, while basis-level nodes are used to characterize the applicable conditions of legal provisions and the legal application pattern. Atomized basis elements are clustered into leaf basis pattern nodes and further organized into a multi-level basis hierarchy structure. During the retrieval phase, this disclosure simultaneously performs full-scale regulatory dense retrieval, fact-level case support, and basis-level case support. Fact-level case support allows for the retrieval of similar case facts through fact embedding indexes, extending to related legal provisions. Basis-level case support allows for the matching of relevant basis patterns through basis hierarchy indexes and inverted indexes, extending to atomic basis elements, source cases, and related legal provisions. Subsequently, a calibrated inverse sorting fusion method is used to merge the fact-level and basis-level support into a graph support sort, which is then merged with the dense retrieval sort of all regulations to generate the final legal provision sort.
[0025] Figure 1 This is a flowchart illustrating a regulatory retrieval method based on a hybrid evidence graph of fact-level and basis-level evidence according to an exemplary embodiment of the present disclosure.
[0026] like Figure 1 As shown, in step S101, the current user question and its historical dialogue context are obtained, and a query representation for regulatory retrieval is generated based on the current user question and its historical dialogue context.
[0027] In step S102, a hybrid evidence graph is constructed based on historical legal case information. The hybrid evidence graph includes fact nodes, basis-level nodes, case nodes, and legal provision nodes. Fact nodes are used to represent the factual information of the case, basis-level nodes are used to represent the basis pattern of the application of law, case nodes are used to connect the fact nodes, basis-level nodes, and legal provision nodes of the corresponding case, and legal provision nodes are used to store the legal provision number and text.
[0028] In this example, a large language model is used to normalize the information of each historical legal case into a unified case record. The case record includes a case identifier, legal domain, fact summary, atomic basis elements, related legal provisions, and case metadata. The fact summary represents the main factual content of the case; the atomic basis elements represent the smallest legal judgment unit related to the application of legal provisions in the historical legal case information; the related legal provisions represent the legal provisions explicitly cited or inferred to be related to the case; and the case metadata includes the cause of action, charge, or other case attribute information. For each case record, corresponding case nodes and fact nodes are established, and the relationships between case nodes and fact nodes are established. For each atomic basis element in the case record, a basis node is established, and the relationships between case nodes and basis nodes are established. For related legal provisions, corresponding legal provision nodes are established, and the relationships between case nodes and legal provision nodes are established. Based on multiple basis nodes, a multi-level basis-level hierarchical structure is constructed to obtain a hybrid evidence graph. For example, for each legal case, it is normalized into a unified case record. The case record includes a case identifier, legal domain, fact summary, atomic basis elements, related legal provisions, and case metadata. The facts summary represents the main facts of the case; the atomized basis elements represent the smallest legal judgment unit related to the application of legal provisions in the case, such as "contract established and effective," "payment obligation fulfilled," "seller fails to fulfill delivery obligation," "failure to fulfill after being urged," and "refund of price after contract termination"; the associated legal provisions represent the legal provisions explicitly cited or inferred to be related in the case; and the case metadata records the cause of action, charge, or other case attribute information. For example, after obtaining a unified case record, a hybrid evidence graph G=(V,E) is constructed as follows: First, the case identifier and legal provision number are unified, and the same legal provision is merged into a unique legal provision node; second, a case node C is established for each case i. i and fact node F i First, establish an edge for "case - containing facts - fact node"; second, establish a basis node R for each atomized basis element j in the case. ij Fourth, establish an edge for "case - containing basis - basis node"; and establish or reuse legal provision nodes S for legal provisions s that are explicitly cited or verified and retained in the case. s Fifth, connect the atomized basis nodes to their respective leaf basis pattern nodes, and then connect the leaf nodes to form a multi-level basis hierarchy structure through parent-child edges.
[0029] In the example, each atomized basis element is input into the semantic embedding encoder, and the output of the semantic embedding encoder is pooled and normalized to generate a semantic embedding representation vector. Based on the similarity of the semantic embedding representation vectors, the atomized basis elements are clustered, and each cluster generates a leaf basis pattern node. The leaf basis pattern node stores the member list and the center vector obtained by normalizing the mean of the member vectors. Based on the semantic similarity between the leaf basis pattern nodes, the leaf basis pattern nodes are recursively merged to form a multi-level basis-level hierarchical structure.
[0030] In step S103, based on the query representation, a full-scale dense legal retrieval, a fact-level case support retrieval, and a basis-level case support retrieval are performed respectively to obtain a first legal provision ranking, a second legal provision ranking, and a third legal provision ranking. The full-scale dense legal retrieval is used to retrieve legal provisions semantically related to the query representation from the legal corpus. The fact-level case support retrieval is used to retrieve fact nodes matching the factual information in the mixed evidence graph and extend them to associated legal provisions. The basis-level case support retrieval is used to retrieve basis-level nodes matching the legal elements in the mixed evidence graph and extend them to associated legal provisions. In the example, factual information is extracted from the query representation to generate a fact query vector; a predetermined number of fact nodes with the highest similarity to the fact query vector are retrieved from the fact embedding index of the mixed evidence graph; case nodes connected via the predetermined number of fact nodes are extended to associated legal provision nodes; and a second legal provision ranking is generated based on the similarity between the associated legal provision nodes and the fact query vector. In the example, based on the query representation, one or more basis-based tags are generated; in the basis-level node index of the hybrid evidence graph, basis-level nodes corresponding to one or more basis-based tags are matched; legal provision nodes associated with the matched basis-level nodes are determined; and a third legal provision ranking is generated based on the degree of matching between the basis-based tags of the associated legal provision nodes. This results in a comprehensive ranking of dense retrieval of all regulations, a fact-based case support ranking, and a basis-based case support ranking. These three rankings provide regulatory retrieval signals for the current consultation input from three perspectives: similarity of regulatory texts, similarity of case facts, and similarity of applicable legal basis.
[0031] In step S104, a graph support ranking is determined based on the second and third legal provision rankings. In the example, for each legal provision in the legal corpus, in response to the provision appearing in both the second and third legal provision rankings, its graph support score is determined by a reciprocal ranking fusion method based on its ranking in both rankings; in response to the provision appearing in only one of the rankings, its graph support score is determined based on its ranking in the corresponding ranking; in response to the provision not appearing in either the second or third legal provision ranking, its graph support score is set to zero; a graph support ranking is generated based on the graph support score of each legal provision. In step S105, the final legal provision ranking is determined based on the first legal provision ranking and the graph support ranking. In the example, for each legal provision in the legal corpus, in response to the provision appearing in the graph support ranking, its final score is determined by a reciprocal ranking fusion method based on its rank in the first legal provision ranking and its rank in the graph support ranking; in response to the provision not appearing in the graph support ranking, its final score is determined based on its rank in the first legal provision ranking; and a final legal provision ranking is generated based on the final score of each legal provision. In the fusion ranking stage, the fact-level case support ranking and the basis-level case support ranking are first merged into a graph support ranking, and then the graph support ranking is finally merged with the dense retrieval ranking of the entire legal corpus. For an example of fusion ranking, please refer to [link to example]. Figure 2 and Figure 3 The description is as follows. Through the above two-level fusion method, the full-scale legal dense search can maintain coverage of the complete legal corpus, the fact-level case support can improve the ranking of the legal provisions associated with cases similar to the current consultation facts, and the basis-level case support can improve the ranking of the legal provisions associated with cases consistent with the legal application basis of the current consultation.
[0032] By employing the legal retrieval method based on a hybrid evidence graph of fact-level and basis-level according to exemplary embodiments of this disclosure, it is possible to simultaneously utilize fact-level similarity and basis-level applicability evidence, reducing case noise caused by simple fact matching; it is possible to maintain the ability to retrieve the full legal corpus even when the graph evidence coverage is incomplete, avoiding rigidly limiting the retrieval scope to the legal provisions covered by the graph; it is possible to improve the matching ability of abstract legal application patterns through the basis-level hierarchical structure; and it is possible to provide more reliable legal provision support for legal intelligent question answering, legal retrieval, and legal retrieval enhancement generation systems.
[0033] Figure 2 This is a schematic diagram illustrating the overall framework of a hybrid evidence graph based on fact-level and basis-level evidence according to an embodiment of this disclosure. Figure 2The diagram illustrates the offline evidence graph construction phase and the online evidence support legal retrieval phase. The offline phase includes legal case data input, LLM-assisted structured normalization, generation of graph-ready case evidence records, and hybrid evidence graph construction. The online phase includes multi-round consultation query input, query understanding, full-scale legal dense retrieval, fact-level case support, basis-level case support, calibration, sorting, and fusion, and final legal provision output. Figure 3 This is a schematic diagram illustrating the principle of applying a multi-round legal consultation and regulatory retrieval scenario according to an embodiment of this disclosure. Figure 3 This paper illustrates the differences between direct query-legal provision matching, direct case retrieval support, and legal retrieval methods based on factual and legal basis evidence. Direct text matching may deviate from the true applicability of legal provisions due to inconsistencies between user statements and legal language, while direct case retrieval may introduce noise due to similar facts but different legal applications. This disclosure improves the accuracy of legal retrieval by using both factual and legal basis evidence to support the ordering of legal provisions.
[0034] like Figure 3 As shown, in multi-round legal consultation scenarios, users typically describe facts in colloquial language, while legal provisions usually express application conditions in abstract, formal legal language. Therefore, directly matching user questions with legal texts may not accurately reflect the applicability of the provisions. Furthermore, directly searching for existing cases with similar facts may introduce noise, as cases with similar facts may involve different legal issues, and cases with different apparent facts may share the same applicable legal basis. To address these issues, this disclosure decomposes case evidence into factual evidence and legal basis evidence, organizing them into a hybrid evidence diagram to assist in legal retrieval during multi-round legal consultations.
[0035] like Figure 2 As shown, the regulatory retrieval method based on a hybrid evidence graph of fact-level and basis-level according to an embodiment of this disclosure includes an offline hybrid evidence graph construction stage and an online regulatory retrieval stage.
[0036] In the offline hybrid evidence graph construction phase, external legal case data and regulatory corpora are first acquired. For each legal case, it is normalized into a unified case record. The case record includes a case identifier, legal domain, fact summary, atomic basis elements, related legal provisions, and case metadata. Among them, the fact summary is used to represent the main factual content of the case; the atomic basis elements are used to represent the smallest legal judgment unit related to the application of legal provisions in the case, such as "contract established and effective", "payment obligation fulfilled", "seller failed to fulfill delivery obligation", "failed to fulfill after being urged", "refund of price after contract termination", etc.; related legal provisions are used to represent the legal provisions explicitly cited in the case or inferred to be related through verification; case metadata is used to record the cause of action, charge, or other case attribute information.
[0037] For example, for criminal case data, the data source used in this embodiment already provides fields such as facts, charges, reasoning, judgment, and cited legal provisions. Therefore, the corresponding fields can be directly mapped to case facts, atomic basis elements, and case-legal provision associations. The term "provided fields" here only describes the organizational form of the data source and does not imply that criminal cases are inherently more structured than civil or commercial cases. For civil or commercial cases mainly provided with claims and factual statements, a unified structure is adopted: first, the parties, legal relationships, actions, time, subject matter, and results are identified to generate a fact summary; then, the points of contention and atomic basis elements are extracted, and candidate related legal provisions are generated based on the citation of case texts or the application of legal provisions. For example, a case where "the buyer has paid 5,000 yuan, the seller has not delivered the goods and refuses to refund, and the buyer requests to terminate the contract and return the payment" can be summarized as follows: The fact summary is "the buyer has paid, the seller has not fulfilled its delivery obligation and refuses to refund," the point of contention is "whether the conditions for contract termination and payment refund are met," and the atomized supporting elements are "the contract is validly established," "the buyer has fulfilled its payment obligation," "the seller has not fulfilled its delivery obligation," and "the received payment should be refunded after termination." Candidate related legal provisions include Articles 563 and 566 of the Civil Code of the People's Republic of China. For candidate legal provisions inferred by the model but not explicitly cited in the case text, the fact summary, the point of contention, the atomized supporting elements, the text of the candidate legal provision, and the judgment conclusion are all input into the verification model. The verification model outputs an overall confidence level from 0 to 100 based on the degree of factual support, the degree to which the conditions for the application of the legal provision are met, and the consistency of the judgment conclusion. The score and reasons are recorded in a fixed field. In this embodiment, 60 points is set as the retention threshold, and only cases with a confidence level of not less than 60 points are retained in relation to the legal provisions. The threshold can be selected between the accuracy and coverage of the graph evidence by developing data or manual sampling, and can also be adjusted according to the application scenario.
[0038] After obtaining a unified case record, a hybrid evidence graph G=(V,E) is constructed as follows: First, unified case identifiers and legal provision numbers are used, and the same legal provision is grouped into a unique legal provision node; Second, a case node C is established for each case i. i and fact node F i First, establish an edge for "case - containing facts - fact node"; second, establish a basis node R for each atomized basis element j in the case. ij Fourth, establish an edge for "case - containing basis - basis node"; and establish or reuse legal provision nodes S for legal provisions s that are explicitly cited or verified and retained in the case. s The process involves several steps: First, establishing an edge connecting "Case - Citation or Support - Legal Provision"; second, connecting atomized basis nodes to their respective leaf basis pattern nodes, with the leaf nodes then connected by parent-child edges to form a multi-layered basis-level hierarchical structure. Fact nodes and basis-level nodes store text, vectors, and source case identifiers, respectively. Case nodes store metadata such as legal domain and cause of action, while legal provision nodes store the legal provision number and text. Simultaneously, an index is established for "Fact Vector - Case" and "Basis Node - Atomized Basis - Case - Legal Provision," enabling edge-based expansion during the online phase. Taking the aforementioned undelivered case as an example, the case node simultaneously connects to the fact node "Buyer has paid but seller has not delivered," the basis nodes "Seller has not fulfilled delivery obligations," "Refund of price after termination," and the legal provision nodes of Articles 563 and 566 of the Civil Code.
[0039] In the stage of constructing the hierarchical structure based on legal grounds, to enable effective retrieval of applicable legal grounds, this disclosure further constructs a hierarchical structure based on legal grounds. Specifically, atomic legal grounds from multiple cases are aggregated, the text of each legal grounds element is input into a semantic embedding encoder E, and the encoding results are pooled and L2 normalized to obtain a vector v. i =Norm(E(text i For example, inputting "The seller fails to deliver the subject matter after receiving payment, constituting a breach of contract" into the encoder yields a fixed-length vector representing the semantics of this legal judgment. Subsequently, using 1-cos(v i ,v jUsing vector distance as a criterion, hierarchical clustering, density clustering, or other cosine similarity-based clustering methods are employed to group semantically similar atomic criteria elements into the same cluster. Each cluster generates a leaf criterion pattern node, which stores a list of members and a center vector obtained by normalizing the mean of the member vectors. For example, "seller failed to deliver goods after receiving payment," "the other party has not delivered goods after payment," and "failure to fulfill the agreed delivery deadline" can enter the same cluster due to their high vector similarity, forming the leaf criterion pattern node "seller failed to fulfill delivery obligations." Each leaf criterion pattern node represents a fine-grained legal application pattern, such as contract termination and restitution due to non-performance, property loss due to fraud, and economic compensation after termination of an employment contract.
[0040] For each leaf node based on a pattern, several representative basis elements closest to the cluster center are first selected, and high-frequency legal concepts are statistically analyzed. Then, labels, keywords, query aliases, and applicability descriptions are generated according to a fixed field pattern. These fields can be generated using rule templates, or the representative basis elements can be input into a large language model for generation and format validation. Taking the aforementioned leaf node as an example, its label could be "contract termination and return due to non-delivery of goods," keywords could be "non-delivery, non-receipt, contract termination, refund, return of payment," query aliases could include "can the contract be terminated if I paid but didn't receive the goods," "how to get a refund if the merchant doesn't deliver the goods," and applicability descriptions could be "a sales contract has been established, the buyer has paid, the seller has failed to deliver after the performance period expires, and there are statutory or agreed conditions for termination." Furthermore, based on the similarity of the leaf node center vectors and the semantic relevance of the labels, a multi-level basis hierarchy structure is formed, including "non-performance of delivery obligations—contract non-performance—contract performance disputes." Each atomized basis element retains its connection to the source case, so after the online search matches any level node, it can continue to expand to the next level leaf node, atomized basis element, source case, and related legal provisions.
[0041] During the online legal retrieval phase, the system receives the current user's question and its historical dialogue context from multiple rounds of legal consultation. Let the current user's question be q. t The historical dialogue context is H t The legal corpus is S={s1,s2,...,s...} N The goal of the system is to generate a ranking of legal provisions in the legal corpus S that is applicable to the current consultation input.
[0042] First, the system addresses the current user's question q. t and the historical dialogue context H arranged in chronological order tThe process involves query comprehension. Specifically, it involves dissolving the referents in historical rounds, merging still valid facts, correcting information that has been negated or updated with newer rounds, and extracting four categories of fields from the merged consultation text: "key facts, points of contention, legal relationships, and legal elements," forming a fixed-structured legal element query representation. For example, if the historical round is "I bought a computer from an online store and have already paid," and the current question is "The other party has not shipped the goods, can I get a refund?", the query comprehension result can be represented as: Key facts "The sales contract has been established, the buyer has paid, and the seller has not delivered"; Points of contention "Can the contract be terminated and the price refunded?"; Legal relationship "Sales contract relationship"; Legal elements "Contract non-performance, contract termination, return of property." The structured result can be generated by a rule and entity relationship extraction model or by a large language model according to preset JSON fields and validated, for subsequent three-way retrieval.
[0043] Subsequently, a full-scale, dense legal retrieval is performed. Specifically, the same semantic embedding encoder E is used to encode the query and legal provisions; in this embodiment, a gte-Qwen2-1.5B class text embedding model can be used. The query side concatenates the above fields in the order of "Legal Consultation: Key Facts; Points of Contention; Legal Relationship; Legal Elements," for example, "Legal Consultation: Buyer has paid, seller has not delivered; Can the contract be terminated and the price refunded; Sales Contract; Contract Non-Performance, Termination, Refund." This is followed by word segmentation, length truncation, forward encoding, pooling, and L2 normalization to obtain the query vector. e q The legal provision side concatenates the legal provision name, article number, and text in the format "Legal Provision: Name; Article Number; Text", for example, "Legal Provision: Civil Code of the People's Republic of China; Article 566; Termination of performance of unfulfilled obligations after contract termination...", and encodes it in the same way to obtain the legal provision vector. e s All legal vectors can be pre-computed and cached offline. For any legal element s, its dense retrieval score is represented as: .
[0044] Where cos(·,·) represents cosine similarity. Based on the dense retrieval score, the basic legal provisions ranking on the full legal corpus can be obtained. Since this ranking is performed directly on the complete legal corpus, even if some legal provisions are not covered by the mixed evidence graph, the system can still recall those provisions through dense retrieval of the full legal corpus.
[0045] While achieving a comprehensive, densely ranked legal database, it also enables retrieval of fact-level cases. Specifically, it retains objective fact fields from the legal element query representation and generates fact query text according to a template of "Case Facts: Subject, Action, Subject Matter, Time, Result"; for example, mapping the above consultation to "Case Facts: The buyer has paid the price, the seller has failed to deliver the goods within the agreed period and refuses to refund." It then uses the same embedding encoder as the fact nodes to encode them into fact query vectors. In a pre-built fact embedding index, using cosine similarity Search before K f Each case has a fact node. For a matched fact node, the relationship is extended to related legal provisions along the "fact node—case node—legal provision node" path. In one specific sorting method, the maximum factual similarity among all related matched cases is taken as the score for each legal provision s. fact (s), i.e., score fact (s)=max{ sim_f(q,F i ) | F i The relevant legal provisions for the case are listed below, then click on the score. fact (s) Sorted from highest to lowest; in case of a tie, the best case ranking takes precedence. A weighted sum of the similarities of multiple matching cases can also be performed. The resulting factual case support ranking quantifies the similarity between the current consultation facts and existing case facts, primarily providing candidate expansion and factual evidence support for the final legal retrieval.
[0046] Furthermore, it supports case retrieval at the basis level. Specifically, it generates one or more basis-based tags from the legal element query representation. For example, for a query about "payment received but seller not delivering, requesting a refund," tags such as "sales contract," "failure to fulfill delivery obligations," "contract termination," and "refund of purchase price" can be generated. The system first uses tags, keywords, and query aliases to perform term matching to recall candidate basis nodes. Then, it encodes each query tag into a vector, calculates the cosine similarity with the center vector of the candidate nodes, and selects the top K nodes with the highest matching scores. a The above example can sequentially match the "Contract Performance Dispute" upper-level node and the "Non-delivery of Goods Leading to Termination and Return" leaf node. When a matching upper-level node is found, the process expands along the parent-child edges to the leaf node; when a matching leaf node is found, the process expands through the inverted index to the atomic basis element, source case, and associated legal provision. For each matching node j, its matching is categorized into m parts. j The length of the extended path from this node to the legal provision s is d. j A specific legal provision is used to score points. rationale (s)=Σ[m j / (1+dj The algorithm sums all matching paths that lead to legal provision s and sorts them from highest to lowest score. Legal provisions reached repeatedly by the same case or path are removed first. This forms a case support ranking based on the legal basis, reflecting the consistency between current consultations and existing cases in terms of legal basis and application patterns.
[0047] Through the above process, we obtain rankings based on the density of all legal documents, factual case support, and legal basis. These three rankings provide legal retrieval signals for the current consultation input from the perspectives of similarity of legal texts, similarity of case facts, and similarity of applicable legal basis.
[0048] In the fusion and ranking phase, the fact-level case support ranking and the basis-level case support ranking are first merged into a graph support ranking. Let... This indicates the ranking of legal provision 's' in the factual case support order. This indicates the ranking of legal provision s in the order of support for cases at the level of legal basis, w f and w a k represents the weights of fact-based support and evidence-based support, respectively. g The graph support fusion parameter represents a smoothing parameter; weights are used to adjust the relative contribution of the two rankings to the graph support score, with larger values indicating a greater contribution from the corresponding ranking; the smoothing parameter is used to avoid excessive dominance by individual top-ranking results and to reduce score fluctuations between adjacent rankings. Weights do not need to be normalized, as they are only used to determine the relative ranking. This embodiment selects parameters through development data or grouped cross-validation. w f =0.3、 w a =0.6、 k g =30, then the graphical support score of legal provision s is expressed as: .
[0049] If legal provision s does not appear in the factual case support ranking, then the first term in the formula will be... w f / ( k g + r f ( s Set it directly to zero, instead of letting... r f ( s If the legal provision s does not appear in the ranking of cases supported at the basis level, then the second term in the formula will be 0; w a / (k g +r a(s)) Set it directly to zero. Based on the graph support score, a graph support ranking can be obtained. This graph support ranking comprehensively utilizes evidence of case facts and evidence of legal application to indicate the degree to which a legal provision is supported by existing case evidence.
[0050] Subsequently, the graph-supported ranking and the dense retrieval ranking of the full set of regulations are finally merged. Let... r d (s) This indicates the ranking of legal provision 's' in the dense search of all laws and regulations. r g (s) This indicates the rank of legal provision 's' in the graph's supported sorting. w l This indicates the weight of the full-scale regulatory dense search. w g The weights that indicate whether the graph supports sorting. k This represents the smoothing parameter in the final fusion; where the weights are used to control the relative contributions of the full-scale regulatory dense retrieval and graph support ranking, and the smoothing parameter is used to control the impact of ranking differences on the reciprocal score. This embodiment selects the parameters through development data or grouped cross-validation. w l =1.0、 w g =0.65、 k =20, then the final ranking score of legal provision s is expressed as: .
[0051] If the legal provision s does not appear in the graph support sorting, then the second term in the final fusion formula will be... w g / (k+r g (s)) Set directly to zero; the first item corresponding to the full-scale regulatory dense search. w l / (k+r d (s)) Retained. The system is based on score. final (s) Sort the legal provisions in the legal corpus and output the final sorting result.
[0052] Through the aforementioned two-level fusion approach, the full-scale dense legal retrieval maintains coverage of the complete legal corpus, fact-level case support improves the ranking of legal provisions associated with cases similar to the current consultation facts, and basis-level case support improves the ranking of legal provisions associated with cases consistent with the current consultation's applicable legal basis. Since the mixed evidence diagram only participates in the ranking as an auxiliary supporting signal and not as a hard filtering condition, this disclosure can maintain the robustness of legal retrieval even when the diagram evidence coverage is incomplete, while simultaneously utilizing case-derived evidence to improve the quality of legal provision ranking.
[0053] To demonstrate the effectiveness of the method disclosed herein, a multi-round legal consultation and regulation retrieval dataset is used to verify this disclosure in the embodiments. The corresponding regulatory corpus contains 17,229 regulatory provisions, and the test set contains 5,065 multi-round legal consultations, of which 4,781 consultation rounds have at least one labeled applicable legal provision, and 284 consultation rounds do not contain any labeled applicable legal provisions. During evaluation, all legal provisions in the regulatory corpus are used as candidate search objects, the current user question and its historical dialogue context are input, and the ranking of legal provisions is output. Recall@K (abbreviated as R@K in the table) represents the proportion of the top K search results that cover the applicable legal provisions. For a single query q, it can be expressed as |G_q∩TopK_q| / |G_q|, and then averaged over the queries to measure recall capability. NDCG@K represents the normalized cumulative gain up to the Kth position. It is calculated by first determining DCG@K = Σ(rel_i / log2(i+1)) based on the legal provision's ranking, and then dividing by the ideally ranked IDCG@K. This measure simultaneously assesses recall and whether the relevant legal provisions are ranked highly. Higher values for both metrics indicate better search performance.
[0054] Table 1 presents the graph coverage statistics in this embodiment. RAW_ALL indicates the main evaluation scope containing at least one applicable legal provision; A-Full Coverage means all labeled legal provisions in this round are accessible via the graph; B-Partial Coverage means only some labeled legal provisions are accessible via the graph; C-No Coverage means all labeled legal provisions are inaccessible via the graph; B-Covered Labels and B-Uncovered Labels represent labeled legal provisions in group B that are accessible and inaccessible via the graph, respectively, and are used only for diagnosis. In the table, "Number of Queries" represents the number of consultation rounds within the corresponding scope, and "Number of Labels" represents the total number of applicable legal provisions within the corresponding scope. This statistic is used to illustrate the coverage of the mixed evidence graph and is not used for routing or screening during the reasoning stage.
[0055] Table 1. Statistics on Map Coverage
[0056] In this embodiment, this disclosure uses external legal cases to construct a hybrid evidence graph. There are a total of 262,940 external legal cases, including 55,192 criminal cases and 207,748 civil and commercial cases. After structured normalization, the hybrid evidence graph contains 262,940 case fact nodes, 1,249,624 atomized basis nodes, 12,465 basis leaf clusters, 26,894 basis hierarchy nodes, and 17,229 legal provision nodes. The case-legal provision evidence association covers 1,244 legal provisions; therefore, this hybrid evidence graph does not completely cover the entire legal corpus. This disclosure uses graph evidence as auxiliary supporting signals rather than as hard filtering conditions.
[0057] Table 2 shows the overall regulatory search results of this disclosure and various baseline methods across the main evaluation scope. It can be seen that this disclosure achieved superior results across different recall positions and ranking quality metrics, indicating that factual and evidence-based evidence can effectively supplement the comprehensive regulatory dense search.
[0058] In the "Methods" column of Table 2, BM25 is a sparse retrieval based on term frequency and inverse document frequency; QLD is a query likelihood language model retrieval; Direct dense retrieval is a general dense method that directly calculates the similarity between the query vector and the legal provision vector; LegalDense is the legal domain dense retrieval backbone adopted in this embodiment; BM25+Dense RRF is a fusion of sparse retrieval and dense retrieval through inverse sorting; BM25+Dense+BGE is a BGE reordering model added to the candidate sets of both; Regulatory graph retrieval is a propagation or reordering of the structural relationships between legal provisions; Pure case expansion is a retrieval of only similar cases and an expansion of their associated legal provisions; BM25+Dense+Case is a combination of sparse, dense and case expansion signals simultaneously; and FR-MEG of this disclosure is a combination of full-volume regulatory dense retrieval with fact-level and basis-level case support according to the two-level fusion method of this disclosure. In the table, R@1, R@3, R@5, R@10, R@30, R@50, and R@100 represent Recall@K at different truncation positions, and NDCG@10 represents the normalized cumulative gain of the first 10 bits.
[0059] Table 2 Comparison of Overall Regulatory Search Results
[0060] Experimental results show that this disclosure improves the effectiveness of legal retrieval compared to methods using only full-scale dense legal retrieval. When using LegalDense as the basic dense retrieval method, Recall@10 was 38.83% and NDCG@10 was 25.64%; after adopting the method of this disclosure, Recall@10 increased to 43.81% and NDCG@10 increased to 28.23%. Furthermore, Recall@1 increased from 13.84% to 14.84%, Recall@5 from 30.17% to 33.97%, and Recall@100 from 67.54% to 69.47%. These results demonstrate that by introducing factual and legal basis evidence, the system can more accurately map colloquial factual descriptions from multiple rounds of legal consultation to applicable legal provisions.
[0061] Table 3 further illustrates the search results under different graph coverage conditions. In Table 3, "All R@10" corresponds to the RAW_ALL range; "Group A R@10", "Group B R@10", and "Group C R@10" correspond to Recall@10 for consultation rounds with full coverage, partial coverage, and no coverage, respectively; "Group B Covered R@10" and "Group B Uncovered R@10" are calculated diagnostically using only the covered or uncovered annotations in Group B as relevant items; "All NDCG@10" corresponds to NDCG@10 within the RAW_ALL range. This table is used to illustrate the differences in the effectiveness of this disclosure under conditions of graph evidence accessibility, partial accessibility, and inaccessibility, and to verify the necessity of graph evidence as an auxiliary supporting signal rather than a hard filtering condition.
[0062] Table 3 Comparison of Key Results in Map Coverage Perception
[0063] In the graph coverage analysis, when all applicable legal provisions are covered by mixed evidence graphs, this disclosure increases Recall@10 from 46.11% for LegalDense to 62.79%, indicating that when case evidence reaches the correct legal provisions, fact-level and basis-level graph evidence can significantly improve the quality of legal provision ranking. When some marked legal provisions are covered by graphs, this disclosure increases overall Recall@10 from 24.70% to 30.70%, with the improvement mainly concentrated on the marked legal provisions covered by graphs. When the applicable legal provisions are not covered by graphs, the full-scale regulatory dense search still provides basic recall capability, indicating that this disclosure, by using graph evidence as an auxiliary supporting signal rather than a hard search constraint, can maintain search robustness even when graph evidence coverage is incomplete.
[0064] Table 4 Ablation Results of Fact-Level and Evidence-Level Evidence Paths
[0065] In Table 4, R@1, R@10, and R@100 represent the recall rates of the top 1, top 10, and top 100, respectively, and NDCG@10 represents the ranking quality of the top 10. Group A R@10 and Group C R@10 represent the Recall@10 in the fully covered group and the group with no coverage, respectively, and Group A NDCG@10 represents the NDCG@10 in the fully covered group. Ablation analysis of different evidence paths shows that fact-based case support and evidence-based case support have complementary effects. After adding fact-level case support to the basic dense search method, Recall@10 increased from 38.83% to 42.94%, and NDCG@10 increased from 25.64% to 27.68%. Adding basis-level case support further increased Recall@10 to 43.59% and NDCG@10 to 28.19%. Using both fact-level and basis-level case support simultaneously further increased Recall@10 to 43.81% and NDCG@10 to 28.23%. This indicates that fact-level case support is more effective in expanding candidate legal provisions similar to the current consultation facts, while basis-level case support is more effective in capturing legal application patterns and improving the accuracy of top-ranking results. Combining the two creates a complementary effect.
[0066] Figure 4 This is a block diagram illustrating a regulatory retrieval system based on a hybrid evidence graph of fact-level and basis-level evidence according to an exemplary embodiment of the present disclosure.
[0067] like Figure 4As shown, a legal retrieval system 400 based on a hybrid evidence graph of fact-level and basis-level according to an exemplary embodiment of this disclosure includes: a query acquisition and representation unit 401, configured to acquire the current user question and its historical dialogue context, and generate a query representation for legal retrieval based on the current user question and its historical dialogue context; a hybrid evidence graph construction unit 402, configured to construct a hybrid evidence graph based on historical legal case information, the hybrid evidence graph including fact nodes, basis-level nodes, case nodes, and legal provision nodes, wherein fact nodes are used to represent factual information of a case, basis-level nodes are used to represent the basis pattern of legal application, case nodes are used to connect the fact nodes, basis-level nodes, and legal provision nodes of a corresponding case, and legal provision nodes are used to store the legal provision number and text; and a retrieval unit 403, configured to retrieve based on the query... The system performs a full-scale dense legal retrieval, a fact-level case support retrieval, and a basis-level case support retrieval to obtain a first legal provision ranking, a second legal provision ranking, and a third legal provision ranking. The full-scale dense legal retrieval retrieves legal provisions semantically related to the query from the legal corpus. The fact-level case support retrieval retrieves fact nodes matching the factual information in the mixed evidence graph and extends them to related legal provisions. The basis-level case support retrieval retrieves basis-level nodes matching the legal elements in the mixed evidence graph and extends them to related legal provisions. The first legal provision ranking unit 404 is configured to determine the graph support ranking based on the second and third legal provision rankings. The second legal provision ranking unit 405 is configured to determine the final legal provision ranking based on the first legal provision ranking and the graph support ranking.
[0068] In the example, the hybrid evidence graph construction unit 402 is further configured to: normalize each historical legal case information into a unified case record using a large language model. The case record includes a case identifier, legal domain, fact summary, atomic basis elements, related legal provisions, and case metadata. The fact summary represents the main factual content of the case, the atomic basis elements represent the smallest legal judgment unit related to the application of legal provisions in the historical legal case information, the related legal provisions represent the legal provisions explicitly cited or inferred to be related to the case, and the case metadata includes cause of action, charge, or other case attribute information; establish corresponding case nodes and fact nodes for each case record, and establish the association between case nodes and fact nodes; establish basis nodes for each atomic basis element in the case record, and establish the association between case nodes and basis nodes; establish corresponding legal provision nodes for related legal provisions, and establish the association between case nodes and legal provision nodes; and construct a multi-level basis-level hierarchical structure based on multiple basis nodes to obtain a hybrid evidence graph.
[0069] In the example, the hybrid evidence graph construction unit 402 is further configured to: input each atomized basis element into the semantic embedding encoder, and pool and normalize the output of the semantic embedding encoder to generate a semantic embedding representation vector; cluster the atomized basis elements based on the similarity of the semantic embedding representation vectors, and generate a leaf basis pattern node for each cluster, wherein the leaf basis pattern node stores a member list and a center vector obtained by normalizing the mean of the member vectors; and recursively merge the leaf basis pattern nodes based on the semantic similarity between them to form a multi-level basis-level hierarchical structure.
[0070] In the example, the retrieval unit 403 is further configured to: extract factual information from the query representation to generate a factual query vector; retrieve a predetermined number of factual nodes with the highest similarity to the factual query vector in the factual embedding index of the hybrid evidence graph; extend the case nodes connected by the predetermined number of factual nodes to the associated legal provision nodes; and generate a second legal provision ranking based on the similarity between the associated legal provision nodes and the factual query vector.
[0071] In the example, retrieval unit 403 is further configured to: generate one or more basis tags based on the query representation; match basis-level nodes corresponding to one or more basis tags in the basis-level node index of the hybrid evidence graph; determine the legal provision nodes associated with the matched basis-level nodes; and generate a third legal provision order based on the degree of matching between the associated legal provision nodes and the basis tags.
[0072] In the example, the first legal provision sorting unit 404 is further configured to: for each legal provision in the legal corpus, in response to the legal provision appearing in both the second and third legal provision sorting, determine its graph support score using a reciprocal sorting fusion method based on the legal provision's rank in both the second and third legal provision sorting; in response to the legal provision appearing in only one of the second and third legal provision sorting, determine its graph support score based on the legal provision's rank in the corresponding sorting; in response to the legal provision not appearing in either the second or third legal provision sorting, determine its graph support score as zero; and generate a graph support sorting based on the graph support score of each legal provision.
[0073] In the example, the second legal provision sorting unit 405 is further configured to: for each legal provision in the legal corpus, in response to the legal provision appearing in the graph support sorting, determine its final score by the inverse sorting fusion method based on the legal provision's rank in the first legal provision sorting and its rank in the graph support sorting; in response to the legal provision not appearing in the graph support sorting, determine its final score based on the legal provision's rank in the first legal provision sorting; and generate a final legal provision sorting based on the final score of each legal provision.
[0074] The above combination Figures 1 to 3 The specific operations shown are respectively by Figure 4 The corresponding unit in the legal retrieval system 400 based on a hybrid evidence graph of fact-level and basis-level evidence, as shown, will execute this process. Specific operational details will not be elaborated here. By employing the legal retrieval system based on a hybrid evidence graph of fact-level and basis-level evidence according to the exemplary embodiments of this disclosure, it is possible to simultaneously utilize fact-level similarity and basis-level applicability evidence, reducing case noise caused by simple fact matching; it can maintain the ability to retrieve the full legal corpus even when the graph evidence coverage is incomplete, avoiding rigidly limiting the retrieval scope to the legal provisions covered by the graph; it can improve the matching ability to abstract legal application patterns through the basis-level hierarchical structure; and it can provide more reliable legal provision support for legal intelligent question answering, legal retrieval, and legal retrieval enhancement generation systems.
[0075] Figure 5 This is a block diagram illustrating a computing system including at least one computing device and at least one storage device of storage instructions according to an exemplary embodiment of the present disclosure.
[0076] like Figure 5 As shown, the computing system 500 provided according to an exemplary embodiment of the present disclosure includes a computing device 501 and a storage device 502. The storage device 502 stores computer-executable instructions. When the computer-executable instructions are executed by the computing device 501, the regulatory retrieval method based on a hybrid evidence graph of fact-level and basis-level evidence as described in any of the foregoing embodiments is executed.
[0077] The computing device 501 can be deployed in a server or client, or on a node device in a distributed network environment. Furthermore, the computing device 501 can be a PC, tablet, personal digital assistant, smartphone, web application, or other device capable of executing the aforementioned set of instructions. Here, the computing device is not necessarily a single computing device; it can be any collection of devices or circuits capable of executing the aforementioned instructions (or instruction sets) individually or in combination. The computing device can also be part of an integrated control system or system manager, or can be configured to interconnect locally or remotely (e.g., via wireless transmission) through an interface. In the computing device, the processor includes a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a dedicated processor system, a microcontroller, or a microprocessor. By way of example and not limitation, the processor also includes analog processors, digital processors, microprocessors, multi-core processors, processor arrays, network processors, etc.
[0078] According to another aspect of this disclosure, a computer-readable storage medium is provided that stores instructions, which, when executed by at least one computing device, cause the at least one computing device to perform the regulatory retrieval method based on a hybrid evidence graph of fact-level and basis-level evidence as described in any of the foregoing embodiments. The computer-readable storage medium includes magnetic media such as floppy disks and magnetic tapes, optical media (including optical disc (CD) ROMs and DVD ROMs), magneto-optical media such as floppy discs, hardware devices such as ROMs and RAMs designed for storing and executing program commands, and flash memory. The instructions may include language code executable by a computer using an interpreter and machine language code generated by a compiler.
[0079] By adopting this disclosure, it is possible to simultaneously utilize fact-level similarity and basis-level applicability evidence, thereby reducing case noise caused by simple fact matching; it is possible to maintain the ability to search the full legal corpus even when the coverage of graph evidence is incomplete, avoiding rigidly limiting the search scope to the legal provisions covered by the graph; it is possible to improve the matching ability of abstract legal application patterns through the basis-level hierarchical structure; and it is possible to provide more reliable legal provision support for legal intelligent question answering, legal retrieval, and legal retrieval enhancement generation systems.
[0080] The processes, methods, or algorithms disclosed herein can be transmitted to, or implemented by, a processing device, controller, or computer, which may include any existing programmable electronic control unit or a dedicated electronic control unit. Similarly, the processes, methods, or algorithms can be stored in various forms as data and instructions executable by a controller or computer, including but not limited to information permanently stored on non-writable storage media (such as ROM devices) and information variablely stored on writable storage media (such as floppy disks, magnetic tapes, CDs, RAM devices, and other magnetic and optical media). The processes, methods, or algorithms can also be implemented in a software executable object. Optionally, the processes, methods, or algorithms can be implemented wholly or partially using suitable hardware components (such as ASICs, FPGAs, state machines, controllers, or other hardware components or devices) or a combination of hardware components, software components, and firmware components.
[0081] Although this disclosure includes specific examples, it will be apparent to those skilled in the art that various changes in form and detail may be made to these examples without departing from the spirit and scope of the claims and their equivalents. The examples described herein are to be considered merely for descriptive purposes and not for limiting purposes. The description of features or aspects in each example is to be considered applicable to similar features or aspects in other examples. Suitable results may be obtained if the described techniques are performed in a different order, and / or if components in the described system, architecture, apparatus, or circuit are combined in a different manner and / or if components in the described system, architecture, apparatus, or circuit are replaced or supplemented with other components or their equivalents. Therefore, the scope of this disclosure is not limited by the specific embodiments but by the claims and their equivalents, and all variations within the scope of the claims and their equivalents shall be construed as included in this disclosure.
Claims
1. A legal retrieval method based on a hybrid evidence diagram of fact-level and basis-level evidence, characterized in that, include: Obtain the current user's question and its historical dialogue context, and generate a query representation for regulatory retrieval based on the current user's question and its historical dialogue context; A hybrid evidence graph is constructed based on historical legal case information. The hybrid evidence graph includes fact nodes, basis-level nodes, case nodes, and legal provision nodes. The fact nodes are used to represent the factual information of the case, the basis-level nodes are used to represent the basis mode of the application of law, the case nodes are used to connect the fact nodes, basis-level nodes, and legal provision nodes of the corresponding case, and the legal provision nodes are used to store the legal provision number and text. Based on the query representation, a full-scale dense legal retrieval, a fact-level case support retrieval, and a basis-level case support retrieval are performed respectively to obtain a first legal provision ranking, a second legal provision ranking, and a third legal provision ranking. The full-scale dense legal retrieval is used to retrieve legal provisions in the legal corpus that are semantically related to the query representation. The fact-level case support retrieval is used to retrieve fact nodes in the mixed evidence graph that match the factual information of the query representation and extend them to related legal provisions. The basis-level case support retrieval is used to retrieve basis-level nodes in the mixed evidence graph that match the legal elements of the query representation and extend them to related legal provisions. Based on the second and third rule ordering, it is determined that the graph supports sorting; and Based on the first legal provision sorting and the graph-supported sorting, the final legal provision sorting is determined.
2. The regulatory retrieval method according to claim 1, characterized in that, The steps involved in constructing a hybrid evidence map based on historical legal case information include: A large language model is used to normalize the information of each historical legal case into a unified case record. The case record includes a case identifier, legal domain, fact summary, atomic basis element, related legal provisions, and case metadata. The fact summary is used to represent the main factual content of the case. The atomic basis element is used to represent the smallest legal judgment unit related to the application of legal provisions in the historical legal case information. The related legal provisions are used to represent the legal provisions that are explicitly cited in the case or inferred to be related through verification. The case metadata includes cause of action, charge, or other case attribute information. For each case record, establish corresponding case nodes and fact nodes, and establish the association between the case nodes and the fact nodes; Establish a basis node for each atomized basis element in the case record, and establish the association between the case node and the basis node; Establish corresponding legal provision nodes for the associated legal provisions, and establish the association between the case node and the legal provision nodes; and Based on multiple evidence nodes, a multi-level evidence hierarchy is constructed to obtain a hybrid evidence graph.
3. The regulatory retrieval method according to claim 2, characterized in that, The steps for constructing a multi-level basis-level hierarchical structure based on multiple basis nodes include: Each atomized basis element is input into the semantic embedding encoder, and the output of the semantic embedding encoder is pooled and normalized to generate a semantic embedding representation vector. Based on the similarity of semantic embedding representation vectors, the atomic basis elements are clustered, and each cluster is generated into a leaf basis pattern node, wherein the leaf basis pattern node stores a member list and a center vector obtained by normalizing the mean of the member vectors. Based on the semantic similarity between the leaf basis pattern nodes, the leaf basis pattern nodes are recursively merged to form the multi-level basis-level hierarchical structure.
4. The regulatory retrieval method according to claim 1, characterized in that, The steps of performing the fact-level case support retrieval to obtain the second legal provision order include: Fact information is extracted from the query representation to generate a fact query vector; In the fact embedding index of the hybrid evidence graph, a predetermined number of fact nodes with the highest similarity to the fact query vector are retrieved; The case nodes connected via the predetermined number of fact nodes are extended to the associated legal provision nodes; The second legal provision ranking is generated based on the similarity between the associated legal provision nodes and the fact query vector.
5. The regulatory retrieval method according to claim 1, characterized in that, The steps of performing the case support retrieval based on the legal basis to obtain the third legal provision ranking include: Based on the query representation, generate one or more basis-based tags; In the basis-level node index of the hybrid evidence graph, match the basis-level node corresponding to the one or more basis-based labels; Identify the legal provision nodes associated with the matched basis-level nodes; The third legal provision ranking is generated based on the degree of matching between the associated legal provision nodes and the basis tags.
6. The regulatory retrieval method according to claim 1, characterized in that, Based on the second and third rule orderings, the steps for determining the graph's supported ordering include: For each legal provision in the legal corpus, in response to the legal provision appearing simultaneously in the second legal provision ranking and the third legal provision ranking, its graph support score is determined by the inverse ranking fusion method based on the ranking of the corresponding legal provision in the second legal provision ranking and the third legal provision ranking. In response to the fact that a legal provision appears only in one of the second legal provision sorting and the third legal provision sorting, its graph support score is determined based on the ranking of the corresponding legal provision in the corresponding sorting; In response to the fact that a legal provision does not appear in the second legal provision ordering and the third legal provision ordering, its graph support score is determined to be zero; The graph support ranking is generated based on the graph support score for each legal provision.
7. The regulatory retrieval method according to claim 1, characterized in that, The steps for determining the final legal provision order based on the first legal provision order and the graph-supported order include: For each legal provision in the legal corpus, in response to the legal provision appearing in the graph support ranking, its final score is determined by the inverse ranking fusion method based on the legal provision's rank in the first legal provision ranking and its rank in the graph support ranking; In response to the fact that the law provision does not appear in the graph support sorting, its final score is determined based on the rank of the law provision in the first law provision sorting; The final ranking of legal provisions is generated based on the final score of each provision.
8. A regulatory retrieval system based on a hybrid evidence diagram of fact-level and basis-level, characterized in that, include: The query retrieval and representation unit is configured to retrieve the current user's question and its historical dialogue context, and generate a query representation for regulatory retrieval based on the current user's question and its historical dialogue context. The hybrid evidence graph construction unit is configured to construct a hybrid evidence graph based on historical legal case information. The hybrid evidence graph includes fact nodes, basis-level nodes, case nodes, and legal provision nodes. The fact nodes are used to represent the factual information of the case, the basis-level nodes are used to represent the basis mode of the application of law, the case nodes are used to connect the fact nodes, basis-level nodes, and legal provision nodes of the corresponding case, and the legal provision nodes are used to store the legal provision number and text. The retrieval unit is configured to perform a full-scale dense legal retrieval, a fact-level case support retrieval, and a basis-level case support retrieval based on the query representation, respectively, to obtain a first legal provision ranking, a second legal provision ranking, and a third legal provision ranking. The full-scale dense legal retrieval is used to retrieve legal provisions semantically related to the query representation from the legal corpus. The fact-level case support retrieval is used to retrieve fact nodes matching the factual information of the query representation in the mixed evidence graph and extend them to related legal provisions. The basis-level case support retrieval is used to retrieve basis-level nodes matching the legal elements of the query representation in the mixed evidence graph and extend them to related legal provisions. The first legal provision sorting unit is configured to determine the graph's sorting support based on the second legal provision sorting and the third legal provision sorting; and The second legal provision sorting unit is configured to determine the final legal provision sorting based on the first legal provision sorting and the graph support sorting.
9. A computing system comprising at least one computing device and at least one storage device for storing instructions, characterized in that, When the instruction is executed by the at least one computing device, it causes the at least one computing device to perform the regulatory retrieval method based on a hybrid evidence graph of fact-level and basis-level according to any one of claims 1 to 7.
10. A computer-readable storage medium for storing instructions, characterized in that, When the instruction is executed by at least one computing device, it causes the at least one computing device to perform the regulatory retrieval method based on a hybrid evidence graph of fact level and basis level according to any one of claims 1 to 7.
