An intelligent document retrieval system, method, electronic device and storage medium

By introducing a citation extraction module, text segmentation, and vectorization processing, a flexible search tree is constructed, which solves the problems of reference resolution and insufficient utilization of citation knowledge in existing literature retrieval systems, and achieves more efficient and accurate literature retrieval.

CN119938807BActive Publication Date: 2026-11-24XIAMEN UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411941760.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2026-11-24
Estimated Expiration
2044-12-26

AI Technical Summary

Technical Problem

Existing literature retrieval systems cannot effectively handle the problem of referential resolution in texts, fail to make full use of citation information in documents, and have low accuracy in dimensionality reduction and clustering strategies, resulting in inaccurate retrieval results and inaccurate classification.

Method used

Through modules for extracting cited literature, text segmentation, text vectorization, hierarchical clustering and retrieval tree construction, and retrieval adjustment, a large language model is used for referential resolution, text segmentation, and vectorization to construct a flexible retrieval tree. This fully utilizes the condensed knowledge in cited sentences and adjusts the retrieval depth and accuracy according to user needs.

Benefits of technology

It improves the accuracy and efficiency of document retrieval, enables a more accurate understanding of semantic relationships in texts, enhances the relevance between documents, and optimizes retrieval performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119938807B_ABST
    Figure CN119938807B_ABST
Patent Text Reader

Abstract

This invention discloses an intelligent document retrieval system, method, electronic device, and storage medium. The method includes: obtaining cited articles as external knowledge through a web crawler for subsequent retrieval; performing reference resolution on the external knowledge using a large language model, and then segmenting the reference resolution-processed external knowledge into text blocks, decomposing them into sub-units; vectorizing the text of each sub-unit and reducing the dimensionality of the resulting text vectors; performing hierarchical clustering on the dimensionality-reduced text vectors, constructing a retrieval tree based on the hierarchical clustering results, and merging the information of nodes in the retrieval tree using a large language model; during the retrieval process, adjusting the height of the retrieval tree according to different user input query requirements, performing matching retrieval based on the adjusted retrieval tree, and outputting the retrieval results. This invention solves the problems of insufficient reference resolution, utilization of cited knowledge, and dimensionality reduction clustering in existing document retrieval systems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of natural language processing technology, and specifically relates to an intelligent document retrieval system, method, electronic device, and storage medium. Background Technology

[0002] With the rapid development of information technology, a large amount of academic literature and technical materials are constantly being generated. Existing literature retrieval systems mainly rely on keyword matching and retrieval methods based on vector space models (such as TF-IDF, Word2Vec, etc.). However, these traditional methods cannot handle semantic relationships in text well, resulting in inaccurate retrieval results, especially when dealing with documents with complex citation relationships.

[0003] Currently, some document retrieval systems have begun to introduce deep learning technology, using neural network models to generate vector representations of documents to improve retrieval performance, but the following problems still exist:

[0004] 1. Traditional text segmentation and vectorization methods cannot effectively handle the problem of pronoun resolution in text, especially the resolution of pronouns (such as "it", "he", "she") and demonstrative pronouns (such as "this" and "that"), which makes it impossible to accurately identify and associate the core information in the text during the retrieval process.

[0005] 2. Most current retrieval systems fail to effectively utilize cited sentences in documents as external knowledge, do not make full use of the cited information in documents, and ignore the research results and ideas condensed in the cited documents.

[0006] 3. The accuracy of dimensionality reduction and clustering strategies after document vectorization is low, resulting in inaccurate classification of search results.

[0007] Chinese patent CN118861088A discloses a short text query expansion and enhanced retrieval method based on a hierarchical tree structure of a knowledge base. This invention constructs a hierarchical tree structure of a knowledge base to capture macro- and detail-level information from knowledge base documents. Based on contextual requirements, it implements different levels of retrieval strategies in the two-stage expansion of short text queries and result retrieval. At the macro level, the short text query is expanded a second time by retrieving the summary layer of the knowledge base hierarchical tree, achieving alignment between the user query and the semantic space of the knowledge base. At the detail level, the original text fragments in the bottom leaf nodes of the summary layer located during the second expansion are precisely retrieved, thereby generating a highly relevant query response. This technical solution focuses on expanding queries and retrieval by constructing a hierarchical structure, without considering how to effectively utilize citation information in documents as external knowledge sources, especially how to extract and utilize cited sentences from documents. Furthermore, the retrieval tree constructed by this invention is relatively static and does not address how to flexibly adjust the height and complexity of the tree structure under different retrieval needs. Summary of the Invention

[0008] This invention provides an intelligent document retrieval system, method, electronic device, and storage medium, aiming to solve the problems of insufficient reference resolution, utilization of citation knowledge, and dimensionality reduction clustering in existing document retrieval systems.

[0009] The technical solution of the present invention is as follows:

[0010] On the one hand, the present invention provides an intelligent literature retrieval system, including: a cited literature extraction module, a text segmentation module, a text vectorization module, a hierarchical clustering and retrieval tree construction module, and a retrieval adjustment module.

[0011] The citation extraction module is used to obtain cited articles as external knowledge through web crawling tools for subsequent retrieval.

[0012] The text segmentation module is used to perform reference resolution on external knowledge through a large language model, and then segment the external knowledge that has undergone reference resolution into text blocks, decomposing it into sub-units.

[0013] The text vectorization and dimensionality reduction module is used to vectorize the text of each sub-unit and reduce the dimensionality of the resulting text vector.

[0014] The hierarchical clustering and retrieval tree construction module is used to perform hierarchical clustering on the dimensionality-reduced text vectors, construct a retrieval tree based on the hierarchical clustering results, and merge the information of the nodes in the retrieval tree through a large language model.

[0015] The search adjustment module is used to adjust the height of the search tree according to different user query requirements during the search process, perform matching searches based on the adjusted search tree, and output search results.

[0016] Preferably, the citation extraction module obtains the cited articles as external knowledge through a web crawler tool, specifically as follows:

[0017] By identifying the database to which each existing document belongs, a URL is constructed to access the detailed page of each document, the HTML structure of the page is parsed, and the document title information is extracted.

[0018] Using the literature title information, a URL is constructed to download the PDF file of the article that cites the literature, and the PDF file is downloaded using a web crawler.

[0019] Use a bibliography parsing tool to parse the PDF file into an XML file. The parsed XML file includes the main text, citations, and bibliography structure information.

[0020] The XML file's citation section extracts the titles and serial numbers of the references. Then, in the main body of the XML file, based on the titles and serial numbers of the references, the corresponding citation sentences and their corresponding paragraphs are extracted. These citation sentences and paragraphs are treated as external knowledge for subsequent retrieval.

[0021] Preferably, in the text segmentation module, external knowledge undergoes a referential resolution operation using a large language model, and the external knowledge after referential resolution is segmented into text blocks, specifically into sub-units:

[0022] Using external knowledge as the initial text block, semantic analysis is performed on the initial text block through a large language model to determine the specific entity or concept referred to by the pronouns in the initial text block, and the pronouns are replaced with the corresponding entities to complete the referential resolution process.

[0023] By performing syntactic analysis on the text blocks after referential resolution, sentences containing citation markers are identified and extracted from the text blocks, and sentences containing citation markers are saved as sub-units.

[0024] For complex sentences or long sentences containing citation tags in the text block, extract the complete sentence as a sub-unit based on the grammatical structure to ensure semantic integrity.

[0025] Preferably, the dimensionality reduction of the obtained text vectors in the text vectorization and dimensionality reduction module specifically involves:

[0026] A similarity graph is constructed based on the text vectors by calculating the similarity of each pair of data.

[0027] Thermal diffusion modeling is performed by solving the Laplacian matrix of the similarity graph, and the local similarity is extended to the entire similarity graph through the diffusion matrix.

[0028] The similarity map after thermal diffusion is used to reduce the dimensionality of features through spectral embedding, and outputs a low-dimensional representation of the text vector.

[0029] Preferably, in the hierarchical clustering and knowledge tree construction module, hierarchical clustering is performed on the dimensionality-reduced text vectors, and a retrieval tree is constructed based on the hierarchical clustering results, specifically as follows:

[0030] Initialize the text vectors, treating each text vector as a cluster.

[0031] Calculate the similarity between all cluster pairs and select the cluster pair with the highest similarity to merge.

[0032] The cluster merging process is continuously performed, and the similarity matrix is ​​updated until all text vectors are merged. A retrieval tree is then constructed based on the hierarchical clustering results.

[0033] The root node of the retrieval tree represents the set of all text vectors, the internal nodes represent clusters, and the leaf nodes correspond to specific text vectors.

[0034] Preferably, the merging of information between nodes in the retrieval tree using a large language model in the retrieval adjustment module specifically involves:

[0035] The search tree is merged from bottom to top, with each pair of nodes being the closest to the other, until the merging is complete and the entire search tree is formed.

[0036] For each pair of nodes to be merged, the merged node information is generated based on the pre-defined Prompt of the large language model.

[0037] On the other hand, the present invention provides an intelligent document retrieval method, comprising the following steps:

[0038] We obtain cited articles as external knowledge through web scraping tools for subsequent retrieval.

[0039] External knowledge is dereferenced using a large language model, and the dereferenced external knowledge is then segmented into text blocks and decomposed into sub-units.

[0040] Each sub-unit is vectorized into text, and the resulting text vectors are then reduced in dimensionality.

[0041] Hierarchical clustering is performed on the dimensionality-reduced text vectors, a retrieval tree is constructed based on the hierarchical clustering results, and the information of the nodes in the retrieval tree is merged through a large language model.

[0042] During the retrieval process, the height of the retrieval tree is adjusted according to the different needs of the user's input query. The matching retrieval is performed based on the adjusted retrieval tree, and the retrieval results are output.

[0043] In another aspect, the present invention also provides an electronic device, the electronic device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the intelligent document retrieval method as described in any embodiment of the present invention.

[0044] In another aspect, the present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the intelligent document retrieval method as described in any embodiment of the present invention.

[0045] Compared with the prior art, the present invention has the following technical effects:

[0046] 1. This invention, through refined text segmentation and vectorization, can more accurately understand the semantic relationships in text, and can effectively improve retrieval accuracy, especially when processing complex text.

[0047] 2. By adjusting the height of the search tree, this invention can flexibly adjust the depth and accuracy of the search according to different needs, thereby improving the efficiency and flexibility of document retrieval and optimizing search performance.

[0048] 3. This invention makes full use of the concise knowledge in quoted sentences to improve the utilization rate of external knowledge and enhance the relevance between retrieved documents. Attached Figure Description

[0049] Figure 1 This is an overall flowchart of the intelligent document retrieval method described in this invention. Detailed Implementation

[0050] To make the objectives, technical solutions, and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below in conjunction with specific embodiments of the present application and with reference to the accompanying drawings.

[0051] Example 1

[0052] This embodiment provides an intelligent literature retrieval system, including: a cited literature extraction module, a text segmentation module, a text vectorization module, a hierarchical clustering and retrieval tree construction module, and a retrieval adjustment module.

[0053] The citation extraction module is used to obtain cited articles as external knowledge through web crawling tools for subsequent retrieval.

[0054] The text segmentation module is used to perform referential resolution on external knowledge using a large language model, and then segment the resolved external knowledge into text blocks, decomposing them into sub-units. Specifically, the choice of large language model is not limited here, and may include, but is not limited to, GPT series, BERT, T5, RoBERTa, XLNet, ERNIE, etc.

[0055] The text vectorization and dimensionality reduction module is used to vectorize the text of each sub-unit and reduce the dimensionality of the resulting text vectors. Specifically, the vectorization method is not limited here. This embodiment preferably uses the OPENAI model for text vectorization.

[0056] The hierarchical clustering and retrieval tree construction module is used to perform hierarchical clustering on the dimensionality-reduced text vectors, construct a retrieval tree based on the hierarchical clustering results, and merge the information of the nodes in the retrieval tree through a large language model.

[0057] The retrieval adjustment module is used to adjust the height of the retrieval tree according to different user query requirements during the retrieval process. The retrieval is then performed based on the adjusted retrieval tree, and the results are output. Specifically, during the retrieval process, the user inputs their search description according to their needs. The height of the retrieval tree is determined based on different user requirements, and the retrieval results are obtained by calculating the TOPN nodes using the cosine similarity of vectors.

[0058] Furthermore, users can also use the big language model to understand the search results. After the user enters a query, the big language model performs semantic matching and contextual analysis between the top N nodes and the user's query to generate the answer the user needs, so that the user can understand the searched documents.

[0059] In a preferred embodiment of this practice, the citation extraction module obtains cited articles as external knowledge using a web crawler tool, specifically as follows:

[0060] By identifying the database to which each existing article belongs (such as PubMed), a URL is constructed to access the detailed page of each article. The crawling tools (Requests library and BeautifulSoup library) parse the HTML structure in the page and extract the article title information. The article title information may include the title and the article identifier (such as PMC ID, which is a unique identifier used to identify articles in the PubMed database. The cited articles can be further obtained through the PMC ID).

[0061] Using the literature title information, construct a URL to download the PDF file of the article that cites the literature, and then download the PDF file using a web crawler.

[0062] A literature parsing tool (such as Grobid) is used to parse the PDF file into an XML file in TEI format, and the parsed content of the XML file includes the main text, the citation section, and literature structure information.

[0063] Locate the citation section of the XML file to extract the titles and serial numbers of the literature, and extract the corresponding citation sentences and their citation paragraphs in the main text section of the XML file according to the titles and serial numbers of the literature. The citation sentences and citation paragraphs are used as external knowledge for subsequent retrieval.

[0064] Further, the extraction of citation sentences can use a string matching method to locate citation markers (such as (Smith et al., 2020) or [1]), and extract the complete sentences containing citations. The context information (such as paragraphs) of the citation sentences is also extracted to ensure semantic completeness.

[0065] As a preferred implementation of this embodiment, the text chunking module performs coreference resolution on the external knowledge through a large language model, and chunks the external knowledge after coreference resolution into sub-units, specifically as follows:

[0066] The external knowledge is used as the initial text chunk, and semantic analysis is performed on the initial text chunk through a large language model to determine the specific entities or concepts referred to by the pronouns in the initial text chunk, and the pronouns are replaced with the corresponding entities to complete the coreference resolution process.

[0067] The pronoun refers to a word that replaces a previously mentioned noun or concept in the text, such as "he", "she", "it" in English, and "他", "她", "它" in Chinese.

[0068] The text chunking module determines the specific entities or concepts referred to by the pronouns through context analysis. For example, in "Smith (2020) proposed a new method, and it was widely adopted.", "it" refers to "method". Through the semantic analysis of the large language model, this coreference relationship is automatically identified and the pronoun is replaced with its corresponding entity.

[0069] In the text chunking process, pronoun recognition will affect the decomposition of sub-units. If there are pronouns in a sentence with citations, the text chunking module will first perform coreference resolution, and use the resolved text as a new sub-unit for subsequent processing. This ensures that the coreference relationships in the text are correctly handled and will not affect the integrity and semantics of the citation sentences.

[0070] By performing syntactic analysis on the text blocks after referential resolution, sentences containing citation markers are identified and extracted from the text blocks. Citation markers usually appear in a specific format, such as "(Smith et al.,2020)" or "[1]". Sentences containing citation markers are saved as sub-units, and each sentence containing citation information is regarded as an independent sub-unit.

[0071] For complex or long sentences containing quotation marks within a text block, extract the complete sentence as a sub-unit based on its grammatical structure to ensure semantic integrity. Ensure that the entire sentence containing quotation information is treated as a single sub-unit.

[0072] In complex sentences involving quotations, the main clause and the subordinate clause are treated together, and the entire sentence (including the main clause and the relevant subordinate clause) is treated as a single unit to ensure semantic integrity.

[0073] As a preferred embodiment of this practice, the intelligent document retrieval system described in this embodiment supports multilingual text input, such as English, Chinese, French, German, and Spanish. When processing multilingual text, the sub-unit decomposition rules are adjusted according to the grammar and structure of different languages, but the basic principle of division remains the same: segmentation based on sentences with citations. Furthermore, the specific differences in the decomposition rules are as follows:

[0074] For English: Quotations in English texts are usually clearly marked, such as "Smith (2020)", "[1]", etc. The text chunking module identifies sentences with quotations based on these marks.

[0075] For Chinese: Citation information in Chinese sentences may be represented in the format of "(author, year)" or similar. The text segmentation module identifies sentences containing citations through word segmentation and syntactic analysis, and treats them as sub-units.

[0076] For other languages: For languages ​​such as French and German, the text segmentation module also identifies sentences with citation information based on the grammatical structure of the language and processes them as sub-units.

[0077] In a preferred embodiment of this practice, the text vectorization and dimensionality reduction module performs dimensionality reduction on the obtained text vectors. The dimensionality reduction method is not limited. This embodiment preferably uses the PHATE algorithm for dimensionality reduction, specifically:

[0078] A similarity graph is constructed based on the text vectors by calculating the similarity of each pair of data.

[0079] Thermal diffusion modeling is performed by solving the Laplacian matrix of the similarity graph, and the local similarity is extended to the entire similarity graph through the diffusion matrix.

[0080] The similarity map after thermal diffusion is used to reduce the dimensionality of features through spectral embedding, and outputs a low-dimensional representation of the text vector.

[0081] The dimensionality reduction operations described above not only preserve the local and global structure of the text data, but also improve the efficiency and accuracy of retrieval, providing effective support for subsequent hierarchical clustering and retrieval tree construction.

[0082] Hierarchical clustering aims to group texts based on their similarity, thereby providing a more efficient structure for retrieval tasks. Algorithms such as hierarchical clustering and agglomerative hierarchical clustering can be used. These algorithms start with each text vector as a separate cluster, gradually merging the most similar clusters by calculating the similarity between them until a complete tree structure is formed. In a preferred embodiment, the hierarchical clustering and knowledge tree construction module performs hierarchical clustering on the dimensionality-reduced text vectors and constructs a retrieval tree based on the hierarchical clustering results as follows:

[0083] Initialize the text vectors, treating each text vector as a cluster (each cluster has a size of 1).

[0084] Calculate the similarity between all cluster pairs and select the cluster pair with the highest similarity to merge. Specifically, construct a text vector similarity matrix by calculating the similarity between the dimensionality-reduced text vectors (such as Euclidean distance or cosine similarity). This matrix reflects the degree of similarity between each text vector and other texts.

[0085] The similarity matrix is ​​continuously updated through cluster merging until all text vectors are merged, and a retrieval tree is constructed based on the hierarchical clustering results. Different similarity measures can be selected during cluster merging, including but not limited to single link, full link, or average link.

[0086] The retrieval tree is structured as follows: Root node: The root node represents the entire set of text vectors and is the top-level node of the tree, containing the text information of all documents. Internal nodes: Internal nodes represent clusters, where text vectors have high semantic similarity. Each internal node contains multiple child nodes, representing multiple clusters at the same level. Leaf nodes: Leaf nodes correspond to specific text vectors and are the bottom level of the retrieval tree. Each leaf node points to the specific content of a document.

[0087] The process of constructing a search tree:

[0088] Initial structure: Based on the results of hierarchical clustering, the root node is initialized as a set containing all text vectors.

[0089] Stepwise splitting: Based on the structure of the clusters, child nodes are created and similar text vectors are grouped together. Each cluster is processed as an internal node.

[0090] Tree depth control: The depth of the tree can be controlled by a threshold that can be set during the query process. For example, some large-scale literature sets may require a deeper tree structure to refine different topics and subtopics.

[0091] To improve the structure and retrieval efficiency of the retrieval tree after hierarchical clustering, node merging is an important optimization step. Especially when using a large language model for node merging, a bottom-up pairwise merging approach is adopted, avoiding exceeding the window limit of the large language model.

[0092] In a preferred embodiment of this invention, the merging of information between nodes in the retrieval tree using a large language model in the retrieval adjustment module specifically involves:

[0093] The search tree is merged from bottom to top, with each pair of nodes being the closest to the other, until the merging is complete and the entire search tree is formed.

[0094] For each pair of clusters to be merged, the merged node information is generated based on the pre-defined Prompt of the large language model. This Prompt is not used to determine whether to merge, but rather serves as part of the merging process, providing an identifier or label for the new node after the merge.

[0095] Furthermore, the purpose of the Prompt is to ensure that no useful information is lost during the merging process. The Prompt format can be referenced as follows:

[0096] Based on the citations of the cited papers, summarize their core themes and research directions, and combine them into a coherent summary.

[0097] Requirements: 1. Generate fewer than two sentences. 2. Remember as much information as possible. 3. Use technical terminology; do not fabricate terms without permission.

[0098] During the merging process, the large language model will automatically generate merged node information based on the preset prompt to avoid exceeding the model's input limits.

[0099] In the bottom-up pairwise merging process, the number of nodes merged each time is relatively small, processing a smaller set of nodes each time. This avoids inputting too much information at once, ensuring that each input does not exceed the window limit of the large language model. Simultaneously, each merge involves only a small amount of text data, and the operations during each merge are more focused on the content of the current cluster, improving merging efficiency. The merged node information (such as summaries or tags) is then used as new nodes to continue merging upwards until the entire retrieval tree is finally formed.

[0100] Through bottom-up merging operations, the final generated search tree has the following structure:

[0101] Root node: The root node represents the entire text collection, containing all the clusters after the final merge.

[0102] Internal nodes: Each internal node represents a cluster, which contains text vectors with similar semantics. Each internal node carries representative information about the cluster (such as topic tags, summaries, or other identifiers).

[0103] Leaf nodes: Each leaf node is still the original text vector, which is gradually assigned to the corresponding cluster through hierarchical clustering and node merging operations.

[0104] In a preferred embodiment of this invention, the height of the search tree can also be adjusted by the search adjustment module according to different needs, specifically as follows:

[0105] Finding the optimal default parameters: Through comparative experiments, the optimal height was found as the initial parameter.

[0106] Dynamic Adjustment: The height of the search tree is dynamically adjusted based on the user's query needs. For example, a user can specify whether they need more precise or broader search results, and the search adjustment module will adjust the tree's hierarchy accordingly to provide more refined results.

[0107] Adaptive algorithm: Based on feedback information from the search results, the height of the search tree is adaptively adjusted. If the search results do not meet the expected precision, or the results are too broad, the depth of the tree can be increased; if the search results are too redundant, or the depth is too large and causes a decrease in efficiency, the depth of the tree can be decreased.

[0108] Example 2

[0109] Accordingly, this embodiment provides an intelligent document retrieval method, which is implemented based on the intelligent document retrieval system described in Embodiment 1, such as... Figure 1 As shown, it includes the following steps:

[0110] We obtain cited articles as external knowledge through web scraping tools for subsequent retrieval.

[0111] External knowledge is dereferenced using a large language model, and the dereferenced external knowledge is then segmented into text blocks and decomposed into sub-units.

[0112] Each sub-unit is vectorized into text, and the resulting text vectors are then reduced in dimensionality.

[0113] Hierarchical clustering is performed on the dimensionality-reduced text vectors, a retrieval tree is constructed based on the hierarchical clustering results, and the information of the nodes in the retrieval tree is merged through a large language model.

[0114] During the retrieval process, the height of the retrieval tree is adjusted according to the different needs of the user's input query. The matching retrieval is performed based on the adjusted retrieval tree, and the retrieval results are output.

[0115] Example 3

[0116] This embodiment provides an electronic device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the intelligent document retrieval method as described in any embodiment of the present invention.

[0117] Example 4

[0118] This embodiment provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the intelligent document retrieval method as described in any embodiment of the present invention.

[0119] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent the existence of A alone, A and B simultaneously, or B alone. A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b, and c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, and c can be single or multiple.

[0120] Those skilled in the art will recognize that the units and algorithm steps described in the embodiments disclosed herein can be implemented using electronic hardware, computer software, or a combination of electronic hardware and software. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0121] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0122] In the several embodiments provided in this application, any function, if implemented as a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0123] The above description is merely an embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent structural or procedural transformations made based on the content of the present invention's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of the present invention.

Claims

1. An intelligent document retrieval system, characterized in that, include: The system includes modules for extracting cited references, text segmentation, text vectorization, hierarchical clustering and retrieval tree construction, and retrieval adjustment. The citation extraction module is used to obtain cited articles as external knowledge through web crawling tools for subsequent retrieval. The cited articles include: the corresponding cited sentences and the paragraphs in which they are cited. The text segmentation module is used to perform reference resolution on external knowledge through a large language model, and then segment the external knowledge that has undergone reference resolution into text blocks, decomposing it into sub-units. The text vectorization and dimensionality reduction module is used to vectorize the text of each sub-unit and reduce the dimensionality of the resulting text vector. The hierarchical clustering and retrieval tree construction module is used to perform hierarchical clustering on the dimensionality-reduced text vectors, construct a retrieval tree based on the hierarchical clustering results, and merge the information of the nodes in the retrieval tree through a large language model. The search adjustment module is used to adjust the height of the search tree according to different user query requirements during the search process, perform matching searches based on the adjusted search tree, and output search results. The cited literature extraction module obtains cited articles as external knowledge through web crawling tools, specifically as follows: By identifying the database to which each existing article belongs, a URL is constructed to access the detailed page of each article, the HTML structure in the page is parsed, and the article title information is extracted. Using the literature title information, construct a URL to download the PDF file of the article that cites the literature, and then download the PDF file using a web crawler. Use a bibliography parsing tool to parse the PDF file into an XML file. The parsed XML file includes the main text, citations, and bibliography structure information. The title and number of the reference are extracted from the reference section of the XML file. Then, based on the title and number of the reference, the corresponding reference sentence and the paragraph in which it is located are extracted from the body of the XML file. The reference sentence and the paragraph in which it is located are used as external knowledge for subsequent retrieval. The text segmentation module performs a referential resolution operation on external knowledge using a large language model, and then segments the external knowledge after referential resolution into text blocks, specifically into sub-units: External knowledge is used as the initial text block. The semantic analysis of the initial text block is performed by a large language model to determine the specific entity or concept referred to by the pronouns in the initial text block. The pronouns are then replaced with the corresponding entities to complete the pronoun resolution process. By performing syntactic analysis on the text blocks after the referential resolution, sentences containing citation markers are identified and extracted from the text blocks, and sentences containing citation markers are saved as sub-units; For complex sentences or long sentences containing quotation marks in the text block, extract the complete sentence as a sub-unit according to the grammatical structure to ensure semantic integrity; The text vectorization and dimensionality reduction module performs dimensionality reduction on the obtained text vectors as follows: A similarity graph is constructed based on the text vectors by calculating the similarity of each pair of data. Thermal diffusion modeling is performed by solving the Laplacian matrix of the similarity graph, and the local similarity is extended to the entire similarity graph through the diffusion matrix; The similarity map after thermal diffusion is subjected to feature dimensionality reduction through spectral embedding, and the output is a low-dimensional representation of the text vector. The hierarchical clustering and knowledge tree construction module performs hierarchical clustering on the dimensionality-reduced text vectors and constructs a retrieval tree based on the hierarchical clustering results, specifically as follows: Initialize the text vectors, treating each text vector as a cluster; Calculate the similarity between all cluster pairs and select the cluster pair with the highest similarity to merge; Continuously merge clusters and update the similarity matrix until all text vectors are merged, and construct a retrieval tree based on the hierarchical clustering results; The root node of the retrieval tree represents the set of all text vectors, the internal nodes represent clusters, and the leaf nodes correspond to specific text vectors.

2. The intelligent document retrieval system according to claim 1, characterized in that, The retrieval adjustment module merges information from nodes in the retrieval tree using a large language model, specifically as follows: The search tree is merged from bottom to top, with each pair of nodes being the closest to the other, until the merging is complete and the entire search tree is formed. For each pair of nodes to be merged, the merged node information is generated based on the pre-defined Prompt of the large language model.

3. An intelligent document retrieval method, characterized in that, The method is implemented based on the intelligent document retrieval system as described in any one of claims 1-2, and includes the following steps: We obtain cited articles as external knowledge through web scraping tools for subsequent retrieval; External knowledge is dereferenced using a large language model, and the dereferenced external knowledge is then segmented into text blocks and decomposed into sub-units. Each sub-unit is vectorized into text, and the resulting text vectors are then reduced in dimensionality. Hierarchical clustering is performed on the dimensionality-reduced text vectors, a retrieval tree is constructed based on the hierarchical clustering results, and the information of the nodes in the retrieval tree is merged through a large language model; During the retrieval process, the height of the retrieval tree is adjusted according to the different needs of the user's input query. The matching retrieval is performed based on the adjusted retrieval tree, and the retrieval results are output.

4. An electronic device, the electronic device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the computer program, implements the intelligent document retrieval method as described in claim 3.

5. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the intelligent document retrieval method as described in claim 3.

Citation Information

Patent Citations

  • Short text query expansion enhancement retrieval method based on knowledge base hierarchical tree structure

    CN118861088A

  • Heuristic knowledge navigation recommendation method fusing user retrieval intention

    CN118939787A