A method for constructing an efficient index for retrieval enhancement of a business document library

By combining chapter trees with semantic template segmentation in the leasing domain, dense vector indexes, and inverted indexes, a hierarchical summary tree is constructed, which solves the problems of semantic integrity, recall, and latency in financial leasing document retrieval, and achieves efficient and traceable document retrieval.

CN123138356APending Publication Date: 2026-11-20HEBEI FINANCIAL LEASING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611193615.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-07
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing technologies for financial leasing document retrieval suffer from insufficient semantic integrity, low exact match recall, and high retrieval latency, especially in large-scale document databases where they cannot meet real-time query requirements.

Method used

We employ a chapter tree and a semantic template segmentation method based on the rental domain, combined with dense vector indexes and inverted indexes, to construct a hierarchical summary tree. We optimize the retrieval process through pre-filtering and a dual-path recall mechanism.

Benefits of technology

It improves semantic integrity, increases the recall rate of precise keywords, reduces retrieval latency, meets the needs of real-time queries, and enhances the traceability of generated answers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123138356A_ABST
    Figure CN123138356A_ABST
Patent Text Reader

Abstract

The application discloses a construction method for generating efficient index by retrieval enhancement of a business document library. The method comprises the following steps: performing structured analysis on an input document, and constructing a chapter tree based on regular pattern matching of a document title level and indentation depth detection; mapping leaf nodes of the chapter tree into semantic segments according to a lease field semantic template, and generating a corresponding segment global unique identifier according to each semantic segment; generating metadata for each semantic segment, and binding the segment global unique identifier to the metadata; generating a dense vector index and an inverted index according to body text of the semantic segment, and associating the dense vector index and the inverted index through the segment global unique identifier; and taking the semantic segment as a leaf node, and constructing an abstract tree by layer aggregation according to a document type and a business stage. The application reduces retrieval noise caused by cross-chapter semantic breakage, makes up for the deficiency of pure vector retrieval in accurate matching, and meets the interactive requirements of real-time query of business personnel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of natural language processing and financial leasing knowledge management, specifically to a method for constructing an efficient index to enhance the retrieval of a business document library. Background Technology

[0002] Financial leasing companies accumulate a large number of unstructured documents in their daily operations, including three core categories: finance lease contracts, court judgments, and approval minutes. Finance lease contracts typically include sections on definition clauses, descriptions of the leased asset, rent calculation clauses, liability for breach of contract clauses, guarantee clauses, and dispute resolution clauses, with each contract ranging from 15 to 120 pages. Court judgments include sections on party information, cause of action, factual findings, reasoning, and judgment, with each document ranging from 2,000 to 50,000 words. Approval minutes include the agenda, discussion process, and resolutions, with each minute ranging from 500 to 8,000 words. The total number of these documents typically exceeds 50,000 in a medium-sized financial leasing company, with a total character count exceeding 500 million.

[0003] The existing technology has the following three shortcomings.

[0004] First, simple truncation results in significant noise. Existing retrieval-enhanced generation systems commonly use fixed-length sliding windows to truncate documents, typically setting the window length to 512 tokens with adjacent windows overlapping by 64 tokens. This approach ignores the semantic boundaries of document chapters, causing a complete rental calculation clause to be truncated into two incomplete blocks. The blocks returned during retrieval lack context, leading to factual errors in the responses generated by the generative model based on this incomplete context. Experimental data shows that on a financial leasing contract dataset, the semantic integrity ratio of fixed-window truncation is only 0.47, meaning that 53% of the blocks contain semantic breaks across chapters.

[0005] Second, pure vector retrieval misses exact matches. Dense vector retrieval recalls candidates based on semantic similarity. For queries containing keywords such as exact amounts, dates, and contract numbers, the semantic space of dense vectors cannot guarantee a high recall rate for exact matches. In the financial leasing scenario, querying "terms with rent exceeding 5 million yuan in contracts expiring in March 2024" requires both exact date matching and amount range filtering. Pure vector retrieval has a recall rate of only 0.68 for this type of query.

[0006] Third, full-volume retrieval of long documents suffers from high latency. When the document database exceeds 50,000 documents, the P95 latency for dense vector retrieval of all semantic segments exceeds 1200 milliseconds, which cannot meet the interactive requirements of real-time queries for business users. Existing technologies lack effective pre-filtering mechanisms and cannot narrow down the candidate range before retrieval. Summary of the Invention

[0007] The purpose of this invention is to address the shortcomings of existing technologies by providing a method for constructing an efficient index for enhancing the retrieval of business document libraries.

[0008] To achieve the above objectives, this invention provides a method for constructing an efficient index to enhance the retrieval of a business document library, comprising: Step 1: Perform structured parsing on the input document and construct a chapter tree based on regular expression pattern matching and indentation depth detection at the document title level; Step 2: Map the leaf nodes of the chapter tree to semantic segments according to the semantic template of the leasing domain, and generate a corresponding globally unique segment identifier based on each semantic segment; Step 3: Generate metadata for each semantic segment, and bind the metadata to a globally unique identifier for the segment; Step 4: Generate a dense vector index and an inverted index based on the main text of the semantic segment. The dense vector index and the inverted index are associated through a globally unique segment identifier. Step 5: Using semantic segments as leaf nodes, aggregate and construct a summary tree layer by layer according to document type and business stage.

[0009] Furthermore, the documents include finance lease contracts, court judgments, and approval minutes.

[0010] Furthermore, each node of the chapter tree stores a quintuple, which includes the chapter number, title text, start and end byte offsets of the main text, level depth, and a list of child nodes. The root node of the chapter tree represents the entire document, and its leaf nodes represent the smallest granularity of the chapter paragraph. The length of the main text of the leaf node is between the lower limit and the upper limit of the character threshold. When the length of the leaf node exceeds the upper limit of the character threshold, the leaf node exceeding the upper limit of the character threshold is further divided by a period boundary. The sub-segments after the secondary division inherit the chapter number of the parent node and are appended with a secondary sequence number.

[0011] Furthermore, the semantic segmentation categories include definition segment, rent segment, default segment, guarantee segment, cause of action segment, judgment segment, and resolution segment. The mapping rules for the semantic template in the leasing field adopt a dual-condition judgment based on keyword hit and semantic similarity of chapter titles.

[0012] Furthermore, the metadata includes document type tags, business stage tags, amount range tags, and timeliness tags. The document type tag value set is {contract, case law, minutes}; the business stage tag value set is {due diligence, contract signing, post-lease management, default handling, asset disposal}; the amount range tag is extracted from the amount value in the segmented text using regular expressions; and the timeliness tag is extracted from the date expression in the segmented text using regular expressions, taking the difference between the most recent date and the current date and mapping it to the range {expired, expires within 1 year, expires in 1 to 3 years, expires in more than 3 years}.

[0013] Furthermore, the dense vector index and inverted index are generated in the following ways: A pre-trained language model is used to encode the semantically segmented main text into dense vectors, and the dense vectors are stored in the dense vector index after being normalized by L2. Perform BM25 word segmentation on the main text of each semantic segment. After word segmentation, remove stop words, calculate the BM25 score of each term, retain terms with BM25 scores greater than 0 as inverted keywords, and store the inverted keywords and their BM25 scores in the inverted index.

[0014] Furthermore, the summary tree has three layers: the first layer is a document-level summary node formed by aggregating all semantic segments of the same document; the second layer is a document-type-level summary node formed by aggregating all document-type-level summary nodes of the same document type; and the third layer is a full-database-level summary node formed by aggregating all document-type-level summary nodes.

[0015] Furthermore, each node of the summary tree stores a seven-tuple, which includes node number, level, summary text, dense vector, list of child node numbers, parent node number, and metadata aggregation tag.

[0016] Furthermore, when a new document is added to the database, the incremental index pipeline sequentially generates new semantic segments, metadata, dense vectors, inverted keywords, and a summary tree through steps 1 to 5. The new semantic segments are then appended to the dense vector index and the inverted index. The incremental appending of the dense vector index uses a dynamic addition interface, and an index merging operation is performed after the addition is completed. The incremental update of the summary tree adopts a bottom-up propagation strategy. During the incremental update, the query service reads the old version of the dense vector index, inverted index, and summary tree. After the update is completed, the query service is pointed to the new version of the dense vector index, inverted index, and summary tree through an atomic pointer switch.

[0017] Furthermore, upon receiving a query request, the query text is encoded into a query vector using the same pre-trained language model, and then pre-filtering is performed, as follows: Calculate the cosine similarity between the query vector and the dense vectors of the second layer of the summary tree, and retain document type-level summary nodes with similarity greater than the first similarity threshold; for the retained document type-level summary nodes, calculate the cosine similarity between the query vector and the document-level summary nodes of the first layer, and retain document-level summary nodes with similarity greater than the second similarity threshold; for the retained document-level summary nodes, include their corresponding semantic segments of the 0th layer into the fine ranking candidate set; A dual-path recall is performed on semantic segments within the candidate set, as detailed below: Calculate the cosine similarity between the query vector and the dense vectors of semantic segments in the candidate set of fine ranking, and select the K1 semantic segments with the highest similarity. Using the inverted index of the terms query after BM25 word segmentation of the query vector, select the K2 semantic segments with the highest BM25 scores; After the two recall results are combined, the dense vector similarity score and the BM25 keyword score are merged by the learning ranking model to obtain the fusion score and sorted in descending order. The top K3 segments are taken as the fine ranking result. Reference constraint information is generated for each semantic segment in the fine-ranking result, and duplicates are removed from the fine-ranking result.

[0018] Beneficial effects: 1. The segmentation method based on chapter tree and semantic template of the leasing domain in this invention improves the semantic integrity ratio from 0.47 to 0.89 and reduces retrieval noise caused by cross-chapter semantic breaks; 2. This invention utilizes a hybrid retrieval system combining dense vector indexes and inverted keyword indexes, increasing the query recall rate containing precise keywords from 0.68 to 0.94, thus overcoming the shortcomings of pure vector retrieval in precise matching. 2. The pre-filtering mechanism of the hierarchical summary tree in this invention reduces the P95 latency from 1200 milliseconds to 180 milliseconds, meeting the interactive requirements of business personnel for real-time queries. 4. This invention improves the fact traceability rate of generated answers from 0.61 to 0.96 and reduces the duplicate fragment rate from 0.23 to 0.04 by using reference constraints and SimHash deduplication. Attached Figure Description

[0019] Figure 1 This is a flowchart illustrating the method for constructing an efficient index to enhance the retrieval of a business document library according to an embodiment of the present invention. Detailed Implementation

[0020] The present invention will be further illustrated below with reference to the accompanying drawings and specific embodiments. These embodiments are implemented based on the technical solutions of the present invention, and it should be understood that these embodiments are only used to illustrate the present invention and are not intended to limit the scope of the present invention.

[0021] like Figure 1As shown in the figure, this embodiment of the invention provides a method for constructing an efficient index to enhance the retrieval of a business document library, including: Step 1: Perform structured parsing on the input document and construct a chapter tree based on regular expression pattern matching and indentation depth detection of the document title level.

[0022] Specifically, the aforementioned documents include financial lease contracts, court judgments, and approval minutes. Each node in the chapter tree stores a 5-tuple (chapter number, title text, text start and end byte offsets, level depth, and list of child nodes). For PDF documents, a layout analysis model is used to detect title lines. The criteria for determining title lines are: font size greater than 1.2 times the body text font size, and line spacing before the title line greater than 1.5 times the body text line spacing. For Word documents, the Heading1 to Heading6 tags in the paragraph style are directly read as the title level. The root node of the chapter tree represents the entire document, and the leaf nodes represent the smallest granularity of the chapter paragraph. The text length of the leaf nodes is set to be no less than the lower limit of the character threshold (100 characters) and no more than the upper limit of the character threshold (8000 characters). Leaf nodes exceeding the upper limit of the character threshold are divided twice by period boundaries. The sub-segments after the second division inherit the chapter number of the parent node and are appended with a secondary sequence number.

[0023] Step 2: Map the leaf nodes of the chapter tree to semantic segments according to the semantic template of the rental domain, and generate a corresponding globally unique segment identifier for each semantic segment.

[0024] Specifically, the semantic segmentation categories include definition segments, rent segments, default segments, guarantee segments, cause-of-fact segments, judgment segments, and resolution segments. The mapping rules for semantic templates in the leasing field adopt a dual-condition judgment based on keyword hits and semantic similarity of chapter titles. Taking the rent segment as an example, when the cosine similarity between the leaf node title text and "rent" is greater than 0.75, or when the leaf node body text contains at least two keywords from "rent," "rental interest," "lease interest rate," and "handling fee," the leaf node is marked as a rent segment. The mapping keyword set and similarity thresholds for the seven semantic segmentation categories are stored in the leasing segmentation configuration table. The configuration table is loaded into an in-memory hash table during system initialization. The hash table key is the semantic segmentation type, and the value is a structure containing a list of keywords and similarity thresholds. For leaf nodes that simultaneously hit multiple semantic segmentation types, the first type is selected in descending order of the number of hit keywords; if the number of hit keywords is the same, the first type is selected in descending order of title similarity.

[0025] Step 3: Generate metadata for each semantic segment, and bind the metadata to a globally unique identifier for the segment.

[0026] Specifically, the metadata includes document type tags, business stage tags, amount range tags, and timeliness tags. The document type tag value set is {contract, case law, minutes}, directly read from the metadata fields of the document source interface. The business stage tag value set is {due diligence, contract signing, post-lease management, default handling, asset disposal}, determined by a mapping table from semantic segment types to business stages. The mapping relationships are: definition segment maps to contract signing, rent segment maps to post-lease management, default segment maps to default handling, guarantee segment maps to contract signing, cause of action segment maps to default handling, judgment segment maps to default handling, and resolution segment maps to due diligence. The amount range tag extracts the amount value from the segment text using regular expressions. The extraction pattern is "number + ten thousand / hundred million" or "number + yuan", mapping the extracted maximum amount to the range {0 to 100,000, 100,000 to 1 million, 1 million to 10 million, 10 million to 100 million, and over 100 million}. The expiration date tag is extracted from the segmented text using regular expressions, and the difference between the most recent date and the current date is mapped to the range {expired, expires within 1 year, expires in 1 to 3 years, expires more than 3 years}. The metadata vector is encoded as a 32-bit integer, with each dimension occupying 8 bits, supporting fast filtering by dimension bitwise operations.

[0027] Step 4: Generate a dense vector index and an inverted index based on the main text of the semantic segment. The dense vector index and the inverted index are associated through a globally unique identifier for the segment.

[0028] Specifically, the methods for generating dense vector index inverted indices are as follows: A pre-trained language model is used to encode the semantically segmented main text into dense vectors, and these dense vectors are then stored in a dense vector index after L2 normalization. The dense vectors are preferably 768-dimensional. The language model used is a BERT model pre-trained on a corpus from the financial leasing domain. The maximum input length is 512 tokens, with any excess tokens truncated to the first 512. The dense vector index parameters are set as follows: neighbor list size M = 32, candidate set size efConstruction = 200 for searching, and efSearch = 64 for querying.

[0029] The inverted index is generated as follows: BM25 segmentation is performed on the main text of each semantic segment. After segmentation, stop words are removed, and the BM25 score of each term is calculated. Terms with a BM25 score greater than 0 are retained as inverted keywords, and the inverted keywords and their BM25 scores are stored in the inverted index. The segmenter can use jieba segmentation to load a custom dictionary for the financial leasing field, which contains 3200 leasing-related proper nouns. The number of shards in the inverted index is set to 1 / 10 of the number of documents and not less than 3. The number of primary replicas and replicas of each shard is set to 1. The globally unique identifier for each segment is a 64-bit integer, with the high 16 bits representing the document number, the middle 8 bits representing the chapter number, and the low 8 bits representing the segment sequence number.

[0030] Step 5: Using semantic segments as leaf nodes, aggregate and construct a summary tree layer by layer according to document type and business stage.

[0031] Specifically, the above-mentioned summarization tree has three layers. The first layer consists of a document-level summarization node formed by aggregating all semantic segments of the same document. The summarization text of this node is generated from the leaf node text using an extractive summarization algorithm. The extractive summarization algorithm uses the TextRank algorithm, with an iteration convergence threshold of 0.0001, a maximum number of iterations of 100, and extracting 0.3 times the original number of sentences, with a minimum of 3 sentences. The summarization text is encoded into a 768-dimensional dense vector using the same pre-trained language model. The second layer consists of a document-type-level summarization node formed by aggregating all document-level summarization nodes of the same document type. The summarization generation method is the same as the first layer. The third layer is a full-database-level summarization node formed by aggregating all document-type-level summarization nodes. Each node in the summarization tree stores a seven-tuple (node ​​number, level, summarization text, 768-dimensional dense vector, list of child node numbers, parent node number, metadata aggregation tag). The node number uses a 32-bit integer, and levels 0 to 3 correspond to leaf nodes to the root node. The summary tree is stored in memory as an adjacency list structure. The size of the adjacency list array is 1.5 times the total number of nodes, and hash collisions are handled using open addressing.

[0032] When a new document is added to the database, the incremental index pipeline generates new semantic segments, metadata, dense vectors, inverted keywords, and a summary tree sequentially according to steps 1 to 5. The new semantic segments are then appended to the dense vector index and inverted index. Incremental appending of the dense vector index uses a dynamic addition interface. After addition, an index merging operation is performed, with the merging interval set at every 500 new segments or more than 30 minutes since the last merging. The incremental update of the summary tree adopts a bottom-up propagation strategy: after a new leaf node is inserted, the summary text of its parent node is regenerated, the 768-dimensional dense vector is re-encoded, and this propagation continues upwards layer by layer until the root node. During incremental updates, the query service reads the old version of the dense vector index, inverted index, and summary tree. After the update is complete, an atomic pointer switch points the query service to the new version of the dense vector index, inverted index, and summary tree. The switching operation is completed within 100 microseconds, ensuring zero query interruption. The state machine of the incremental pipeline contains five states: idle, parsing, index building, summary tree updating, and switch ready. The state transition conditions are driven by the segment count counter and timer.

[0033] Once a query request arrives, the query text is encoded into a query vector using the same pre-trained language model, and then pre-filtering is performed, as follows: Calculate the cosine similarity between the query vector and the dense vectors of the second layer of the summary tree, and retain document type-level summary nodes with a similarity greater than the first similarity threshold (0.65). For the retained document type-level summary nodes, calculate the cosine similarity between the query vector and the document-level summary nodes of the first layer, and retain document-level summary nodes with a similarity greater than the second similarity threshold (0.6). For the retained document-level summary nodes, include their corresponding semantic segments of the 0th layer in the fine-ranking candidate set. If the query request contains metadata filtering conditions, bitwise filtering of the metadata vector is performed synchronously during the pre-filtering stage. The filtering conditions and the corresponding dimensions of the metadata are bitwise ANDed, and segments with a result of zero are directly excluded.

[0034] A dual-path recall is performed on semantic segments within the candidate set, as detailed below: Calculate the cosine similarity between the query vector and the dense vectors of the semantic segments in the candidate set of fine ranking, and select the K1 (50) semantic segments with the highest similarity; Using the inverted index of the term query after BM25 word segmentation of the query vector, select the K2(50) semantic segments with the highest BM25 scores; After the two recall results are combined, the dense vector similarity score and the BM25 keyword score are fused together for each semantic segment in the union by the learning ranking model to obtain the fusion score and sort them in descending order. The top K3 (10) segments are taken as the fine ranking result. The above learning ranking model can adopt the LambdaMART model, whose feature vector contains 6 dimensions: dense vector cosine similarity, BM25 score, query and segment metadata matching degree, segment length normalized value, segment position normalized value in document, and document type matching indicator. The LambdaMART model contains 200 regression trees, each with a maximum depth of 5 and a learning rate of 0.1. The formula for calculating the fusion score is: Score = f_LambdaMART(x) Where x is the 6-dimensional feature vector mentioned above, and f_LambdaMART is the output value of the LambdaMART model.

[0035] Reference constraint information can also be generated for each semantic segment in the refined ranking result. This information includes a source identifier composed of document and chapter numbers, the start and end byte offsets of the segment's text within the original text, the semantic segment type to which the segment belongs, and metadata tags. The reference constraint information is encoded as a JSON string and appended to the segment's text, in the format "[Source: Document Number / Chapter Number | Type: Semantic Segment Type | Offset: Start Byte - End Byte | Tags: Document Type / Business Stage / Amount Range / Timeliness]". Deduplication can also be performed using the SimHash algorithm. First, a 64-bit SimHash fingerprint is calculated for every two semantic segments in the refined ranking result. SimHash uses the same jieba segmentation configuration as BM25, and the hash function is MurmurHash3. Then, the Hamming distance between the SimHash fingerprints of the two semantic segments is calculated. When the Hamming distance between the SimHash fingerprints of two semantic segments is less than or equal to 3, it is considered an approximate duplicate. The segment with the higher fusion score is retained, and the segment with the lower fusion score is removed. The deduplicated and refined sorting results, along with the reference constraint information, are returned to the generation module. When generating the answer, the generation module must reference the source identifier to ensure that each factual statement in the answer can be traced back to the specific chapter and byte offset of the original document.

[0036] Additionally, the document structure parsing timeout can be set to 30 seconds, with one retry after a 5-second interval. If both retryes time out, the document is marked as parsing failed and written to the exception queue. The timeout for dense vector index queries is set to 100 milliseconds, after which it is downgraded to inverted keyword retrieval only. The timeout for inverted index queries is set to 200 milliseconds, after which it is downgraded to dense vector retrieval only. When both queries time out, the summary text of the first-level document-level summary node of the summary tree is returned as the downgraded result, and a downgrade flag is appended to the returned result. The circuit breaker strategy adopts the Circuit Breaker mode. When the failure rate of an interface exceeds 50% within 1 minute, the circuit breaker is triggered. After the circuit breaker lasts for 30 seconds, it enters a half-open state, allowing one request to pass. If successful, the circuit breaker is closed; if it fails, the circuit breaker continues for another 30 seconds. The index building task supports breakpoint resumption. Breakpoint information is stored in Redis, with the key being the task number and the values ​​being a list of completed segment identifiers and the percentage of index building progress. Resumption resumes from the breakpoint. Audit logs are append-only, with each log entry containing seven fields: operator user ID, operation timestamp accurate to milliseconds, operation type enumeration value, the first 16 bits of the SHA256 hash of the input digest, the first 16 bits of the SHA256 hash of the output digest, the anonymized query text digest, and execution time in milliseconds. Audit logs are stored in a separate Elasticsearch index named "audit_log," with a retention period of 5 years, after which they are automatically migrated to cold storage. Audit log writing uses asynchronous batch writing, with a batch size of 100 entries and a refresh interval of 5 seconds to ensure that write latency does not impact business performance.

[0037] The above description is merely a preferred embodiment of the present invention. It should be noted that for those skilled in the art, other parts not specifically described are existing technology or common knowledge. Several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A method for constructing an efficient index to enhance the retrieval of a business document library, characterized in that, include: Step 1: Perform structured parsing on the input document and construct a chapter tree based on regular expression pattern matching and indentation depth detection at the document title level; Step 2: Map the leaf nodes of the chapter tree to semantic segments according to the semantic template of the leasing domain, and generate a corresponding globally unique segment identifier based on each semantic segment; Step 3: Generate metadata for each semantic segment, and bind the metadata to a globally unique identifier for the segment; Step 4: Generate a dense vector index and an inverted index based on the main text of the semantic segment. The dense vector index and the inverted index are associated through a globally unique segment identifier. Step 5: Using semantic segments as leaf nodes, aggregate and construct a summary tree layer by layer according to document type and business stage.

2. The method for constructing an efficient index to enhance the retrieval of a business document library according to claim 1, characterized in that, The documents include finance lease contracts, court judgments, and approval minutes.

3. The method for constructing an efficient index to enhance the retrieval of a business document library according to claim 1, characterized in that, Each node of the chapter tree stores a quintuple, which includes the chapter number, title text, start and end byte offsets of the body text, level depth, and a list of child nodes. The root node of the chapter tree represents the entire document, and its leaf nodes represent the smallest granularity of the chapter paragraph. The body text length of the leaf node is between the lower and upper character thresholds. When the length of the leaf node exceeds the upper character threshold, the leaf node exceeding the upper character threshold is further segmented at the period boundary. The sub-segments after the secondary segmentation inherit the chapter number of the parent node and are appended with a secondary sequence number.

4. The method for constructing an efficient index to enhance the retrieval of a business document library according to claim 2, characterized in that, The semantic segments are categorized into definition segments, rent segments, default segments, guarantee segments, cause-of-fact segments, judgment segments, and resolution segments. The mapping rules for the semantic templates in the leasing field adopt a dual-condition judgment based on keyword hit and semantic similarity of chapter titles.

5. The method for constructing an efficient index to enhance the retrieval of a business document library according to claim 2, characterized in that, The metadata includes document type tags, business stage tags, amount range tags, and timeliness tags. The document type tag value set is {contract, case law, minutes}; the business stage tag value set is {due diligence, contract signing, post-lease management, default handling, asset disposal}; the amount range tag is extracted from the amount value in the segmented text using regular expressions; the timeliness tag is extracted from the date expression in the segmented text using regular expressions, and the difference between the most recent date and the current date is mapped to the range {expired, expires within 1 year, expires in 1 to 3 years, expires in more than 3 years}.

6. The method for constructing an efficient index to enhance the retrieval of a business document library according to claim 1, characterized in that, The dense vector index and inverted index are generated in the following ways: A pre-trained language model is used to encode the semantically segmented main text into dense vectors, and the dense vectors are stored in the dense vector index after being normalized by L2. Perform BM25 word segmentation on the main text of each semantic segment. After word segmentation, remove stop words, calculate the BM25 score of each term, retain terms with BM25 scores greater than 0 as inverted keywords, and store the inverted keywords and their BM25 scores in the inverted index.

7. The method for constructing an efficient index for enhancing the retrieval of a business document library according to claim 6, characterized in that, The summary tree has three layers. The first layer is a document-level summary node formed by aggregating all semantic segments of the same document. The second layer is a document-type-level summary node formed by aggregating all document-type-level summary nodes of the same document type. The third layer is a full-database-level summary node formed by aggregating all document-type-level summary nodes.

8. The method for constructing an efficient index to enhance the retrieval of a business document library according to claim 1, characterized in that, Each node of the summary tree stores a seven-tuple, which includes node number, level, summary text, dense vector, list of child node numbers, parent node number, and metadata aggregation tag.

9. The method for constructing an efficient index for enhancing the retrieval of a business document library according to claim 6, characterized in that, When a new document is added to the database, the incremental index pipeline generates new semantic segments, metadata, dense vectors, inverted keywords, and a summary tree sequentially according to steps 1 to 5. The new semantic segments are then appended to the dense vector index and the inverted index. The incremental appending of the dense vector index uses a dynamic addition interface. After the addition is completed, an index merging operation is performed. The incremental update of the summary tree adopts a bottom-up propagation strategy. During the incremental update, the query service reads the old version of the dense vector index, inverted index, and summary tree. After the update is completed, the query service is pointed to the new version of the dense vector index, inverted index, and summary tree through an atomic pointer switch.

10. The method for constructing an efficient index to enhance the retrieval of a business document library according to claim 7, characterized in that, Once a query request arrives, the query text is encoded into a query vector using the same pre-trained language model, and then pre-filtering is performed, as follows: Calculate the cosine similarity between the query vector and the dense vectors of the second layer of the summary tree, and retain document type-level summary nodes with similarity greater than the first similarity threshold; for the retained document type-level summary nodes, calculate the cosine similarity between the query vector and the document-level summary nodes of the first layer, and retain document-level summary nodes with similarity greater than the second similarity threshold; for the retained document-level summary nodes, include their corresponding semantic segments of the 0th layer into the fine ranking candidate set; A dual-path recall is performed on semantic segments within the candidate set, as detailed below: Calculate the cosine similarity between the query vector and the dense vectors of semantic segments in the candidate set of fine ranking, and select the K1 semantic segments with the highest similarity. Using the inverted index of the terms query after BM25 word segmentation of the query vector, select the K2 semantic segments with the highest BM25 scores; After the two recall results are combined, the dense vector similarity score and the BM25 keyword score are merged by the learning ranking model to obtain the fusion score and sorted in descending order. The top K3 segments are taken as the fine ranking result. Reference constraint information is generated for each semantic segment in the fine-ranking result, and duplicates are removed from the fine-ranking result.