Pathological literature searching and dialogue system based on large language model and RAG technology

By combining large language models and RAG technology, it solves the problem that traditional systems are difficult to understand complex semantic structures and customize search results, and realizes an efficient and personalized pathology literature search and dialogue system, improving search accuracy and user experience.

CN118643128APending Publication Date: 2024-09-13HANGZHOU DEEP INFORMATICS TECH CO LTD

Patent Information

Application Number
CN202410520185.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-28
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

It is difficult for traditional pathology literature search systems to understand the complex semantic structures and professional terms in medical literature, resulting in insufficient accuracy of search results, and the inability to customize search results according to the specific needs and background of users, resulting in an inflexible user experience.

Method used

It adopts large language model and retrieval enhanced generation (RAG) technology to achieve deep semantic understanding, personalized retrieval and dialogue generation through pathology document collection and processing module, real-time interaction and dialogue module, multi-modal vector representation module and content sorting module. Improve search accuracy and dialogue generation quality using multi-way recall and importance-based reranking models.

Benefits of technology

It achieves deep semantic understanding and personalized recommendations of pathology literature, improves the accuracy of search results and user experience, can better meet the complex and personalized needs of medical professionals, and improves the efficiency of medical research and clinical practice.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118643128A
    Figure CN118643128A
Patent Text Reader

Abstract

The invention relates to the technical field of large language models and RAG, and discloses a pathological literature searching and dialogue system based on a large language model and an RAG technology, comprising a pathological literature recording and processing module used for recording, sorting and processing pathological literature data; the real-time interaction and dialogue module is used for receiving input of the user and extracting user intention and semantic embedding through large language model processing; the multi-modal vector representation module is used for converting the pathological literature into semantic vector representation; the multi-path recall module is used for retrieving pathological literatures most relevant to user query; the content sorting module comprises an importance-based resorting model, and the model resorts the pathological literatures recalled by multiple parties by using a unified measurement dimension to generate an optimal sorting result; according to the method, the accuracy of search results and the quality and practicability of dialogue generation are improved, the medical literature retrieval and generation efficiency is improved, and a wider application prospect is brought to pathological research and practice.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of large language models and RAG technology, and specifically to a pathology literature search and dialogue system based on large language models and RAG technology. Background Art

[0002] In the medical field, especially in pathology, efficient search and dialogue understanding are key for medical professionals to obtain critical information. Traditional literature search systems are often limited by keyword matching and surface-level retrieval methods, which are difficult to meet the complexity and professional requirements of medical literature. In addition, medical professionals need to be able to have natural and in-depth conversations with the system to more fully understand and apply the knowledge in the literature. In this context, the present invention is proposed to address the limitations of traditional systems and aims to provide an innovative pathology literature search and dialogue understanding system. The system makes full use of large language models and retrieval-augmented generation (RAG) technology to address the following challenges: Insufficient semantic understanding: Traditional systems can only perform surface-level grammar and keyword matching and cannot deeply understand the complex semantic structure in medical literature. The introduction of large language models enables the system to better understand and process professional terminology and complex context in the medical field.

[0003] Search efficiency and accuracy: Due to the large number of terms and concepts in the medical field, traditional retrieval systems may produce a large number of irrelevant or duplicate results in large-scale literature libraries. The use of RAG technology improves the accuracy of retrieval by first searching and then generating relevant information in a more targeted manner.

[0004] Demand for conversational interaction: Compared with traditional static literature search, medical professionals prefer to have dynamic and natural conversations with the system. This invention introduces conversation generation technology, which enables the system to interact with users in a more humane way, answer questions and provide personalized information.

[0005] Increased personalized needs: Different medical professionals may have different needs for the same literature. The system uses personalized modeling to consider factors such as the user's professional background and historical queries to better meet the user's personalized search and conversation needs.

[0006] The introduction of large language models allows the system to better understand and process the language complexity of the medical field, thereby improving the accuracy and efficiency of literature search. At the same time, RAG technology integrates retrieval and generation methods, enabling the system to retrieve relevant information from a large amount of literature and provide more in-depth and targeted content in an automatically generated manner.

[0007] The retrieval methods of existing retrieval systems currently rely mainly on keyword matching, which makes the system very sensitive to accurate keyword selection. In the medical field, pathology terms can be very professional and complex, and it is difficult for traditional retrieval systems to understand the contextual relationships of these terms. At the same time, relying solely on superficial keyword matching, traditional systems are usually unable to understand the semantic structure of the text, which results in the system being unable to understand the complex context and actual meaning of professional terms in medical literature. Finally, there may be multiple expressions in medical literature to describe similar concepts, and traditional systems may not be able to effectively capture and process this diversity. This limits the system's comprehensive understanding of the content of the literature and the search effect, affecting the accuracy of search results.

[0008] Some studies have used natural language processing technology, such as word vector models, to improve the semantic understanding of literature retrieval and the ability to understand contextual relationships. However, these models built on general language are usually unable to capture complex medical contexts and lack the ability to align medical texts, resulting in insufficient accuracy in search results. At the same time, traditional retrieval systems based solely on word vector model matching technology usually lack personalization capabilities and cannot customize search results based on the user's specific needs and background. This makes the user experience relatively fixed, not flexible, and not user-friendly enough. Summary of the invention

[0009] 1. Technical issues to be resolved In view of the shortcomings of the prior art, the present invention provides a pathology literature search and dialogue system based on a large language model and RAG technology, which has the advantages of being able to improve search accuracy as well as the quality and practicality of dialogue generation, and providing a more efficient and comprehensive way to obtain information. It solves the problem that the search results of the prior art are insufficiently accurate. Traditional retrieval systems based on word vector model matching technology usually lack personalization capabilities and cannot customize search results according to the user's specific needs and background, which leads to the problem that the user experience is relatively fixed and not flexible enough.

[0010] (II) Technical solution In order to achieve the above-mentioned purpose of being able to improve the accuracy of search and the quality and practicality of dialogue generation, and to provide a more efficient and comprehensive way to obtain information, the present invention provides the following technical solutions: a pathology literature search and dialogue system based on a large language model and RAG technology, including a pathology literature collection and processing module for collecting, collating and processing pathology literature data; Real-time interaction and dialogue module, which receives user input and processes it through a large language model to extract user intent and semantic embedding; A multimodal vector representation module, used to convert pathology documents into semantic vector representations; A multi-way recall module, which is used to retrieve the pathology documents most relevant to the user query in the semantic vector space; A content ranking module includes an importance-based re-ranking model, which uses a unified measurement dimension to re-rank the pathology documents recalled by multiple parties to generate an optimal ranking result.

[0011] Preferably, the large language model intelligently selects and calls relevant functions in the query processing module through the capabilities of its internal agent, and abstracts the user input into medical keyword groups, user intentions, and semantic vector representations.

[0012] Preferably, the multimodal vector representation module includes a pathology-based text embedding model and an image embedding model to achieve deep semantic understanding of the text.

[0013] Preferably, the multi-way recall module implements keyword-based recall, semantics-based recall and user-intent-based document recall through medical keyword groups, user intent and semantic vector representation.

[0014] Preferably, the content ranking module uses a machine learning algorithm to roughly sort and re-sort the recalled documents to provide personalized document recommendations.

[0015] Preferably, it also includes an importance-based re-ranking model for ranking the documents recalled by multiple parties through a unified metric to generate the best ranking result.

[0016] Preferably, the importance-based re-ranking model uses multiple features to construct an effective representation of the relationship between documents and queries, including similarity features between documents and queries, importance of documents, and number of citations of documents.

[0017] Preferably, the importance-based re-ranking model adopts a metric learning method of point-pair sorting combined with list-based sorting to train and optimize the model, thereby improving the accuracy and quality of document sorting.

[0018] Preferably, the feature design and extraction of the importance-based re-ranking model includes similarity features between documents and queries, the importance of documents, and the number of citations of documents, so as to construct an effective representation of the relationship between documents and queries.

[0019] (III) Beneficial effects Compared with the prior art, the present invention provides a pathology literature search and dialogue system based on a large language model and RAG technology, which has the following beneficial effects: 1. This real-time pathology literature search and content understanding dialogue system has built a pathology literature search system based on a large language model and deep learning. Through the self-developed text embedding model and image embedding model, it has achieved a deep semantic understanding of pathology literature.

[0020] 2. This real-time pathology literature search and content understanding dialogue system uses RAG technology and a large language model to build a pathology literature dialogue understanding system that can parse user input queries in real time and provide personalized literature recommendations and analysis.

[0021] 3. This real-time pathology literature search and content understanding dialogue system proposes an importance-based re-ranking model, which ranks the literature recalled by multiple parties through a unified measurement method, thereby improving the accuracy and personalization of search results. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a block diagram of the module composition and operation steps of the real-time pathology literature search and content dialogue system of the present invention; Figure 2 This is an architecture diagram of the real-time pathology literature search and content dialogue system of the present invention. DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0024] like Figure 1 As shown, a pathology literature search and dialogue system based on a large language model and RAG technology includes a pathology literature collection and processing module for collecting, collating and processing pathology literature data; Real-time interaction and dialogue module, which receives user input and processes it through a large language model to extract user intent and semantic embedding; A multimodal vector representation module, used to convert pathology documents into semantic vector representations; A multi-way recall module, which is used to retrieve the pathology documents most relevant to the user query in the semantic vector space; Content ranking module, the content ranking module includes an importance-based re-ranking model, which uses a unified measurement dimension to re-rank the pathology documents recalled by multiple parties to generate the best ranking result; first, the importance-based re-ranking model will collect the pathology documents recalled by multiple parties, which may come from different databases, research institutions or expert teams, so their quality and importance may vary; then, the model will evaluate these documents using a unified measurement dimension. This measurement dimension can be the relevance, authority, novelty or other indicators related to pathology research. Through this dimension, the model can quantitatively evaluate the importance of each document; after the evaluation is completed, the model will rank according to the importance score of each document. This sorting process is based on the importance score from high to low to ensure that the most important documents can be ranked first; finally, the model will generate an optimal ranking result, which is a comprehensive result based on the importance scores of all documents. Users or researchers can quickly find the most relevant and authoritative pathology documents based on this ranking result, thereby improving research efficiency and quality.

[0025] This pathology literature search and dialogue system based on a large language model and RAG technology has various modules working together to achieve efficient and accurate pathology literature search and intelligent dialogue. The following are the specific functions of each module: Pathology literature collection and processing module: Collection: Responsible for extensively collecting various pathology literature, including professional books, academic papers, research reports, etc., to ensure that the system has a comprehensive and rich pathology knowledge base.

[0026] Sorting: Sorting out the collected pathology literature, including classification, labeling, and removing duplicate content, so that users can find the required information more conveniently.

[0027] Processing: Preprocess the literature data, such as word segmentation, stop word removal, keyword extraction, etc., to lay the foundation for subsequent semantic analysis and vector representation.

[0028] Real-time interaction and dialogue module: Receiving input: Receive user query requests or dialogue content in real time to understand user intentions and needs.

[0029] Large language model processing: Use a large language model to deeply understand and semantically analyze user input, extract the user's query intent and semantic embedding, and provide key information for subsequent literature retrieval.

[0030] Multimodal vector representation module: Semantic vector conversion: The processed pathology documents are converted into semantic vector representations. This representation method can capture the deep semantic information of the documents and facilitate efficient similarity calculation and retrieval in the vector space.

[0031] Multimodal fusion: In addition to text information, data from other modalities (such as images, videos, etc.) can also be integrated to provide a richer and more comprehensive document representation.

[0032] Multi-way recall module: Semantic vector retrieval: In the semantic vector space constructed by the multimodal vector representation module, the pathology literature most relevant to the user's query is retrieved according to the user's query intention and semantic embedding.

[0033] Multi-way recall strategy: Adopt multiple recall strategies, such as content-based recall, user behavior-based recall, etc., to improve the accuracy and recall rate of retrieval.

[0034] Content sorting module: Personalized sorting: Based on the user's historical query records and literature reading behavior, the recalled documents are sorted in a personalized manner, and the documents that best meet the user's interests and needs are placed at the front.

[0035] Optimize user experience: Through sorting algorithms, reduce the time users spend searching and screening documents, and improve user experience and satisfaction.

[0036] In summary, this pathology literature search and dialogue system based on large language models and RAG technology can provide users with efficient and accurate pathology literature retrieval services, and help users solve related problems through intelligent dialogue functions, thereby greatly improving the efficiency and level of medical research and clinical practice.

[0037] In this embodiment, the large language model intelligently selects and calls relevant functions in the query processing module through the ability of its internal agent, abstracting the user input into medical keyword groups, user intentions, and semantic vector representations; the large language model intelligently selects and calls relevant functions in the query processing module through the ability of its internal agent in the pathology literature search and dialogue system, abstracting the user input into medical keyword groups, user intentions, and semantic vector representations, which is crucial. Specifically, this ability has the following functions: Improve query accuracy: The large language model can accurately understand the user's input, and through the intelligent selection of the internal agent, call the corresponding query processing function to convert the natural language text entered by the user into accurate medical keyword groups. This helps to more accurately match relevant pathology literature in the subsequent literature retrieval process and improve the accuracy of the query.

[0038] Identify user intent: In addition to converting user input into medical keyword phrases, the large language model can also identify user intent through the internal agent. This includes information such as the pathology type, symptoms, treatment methods, etc. that the user wants to query, as well as questions or needs that the user may have. This accurate identification of user intent helps the system provide more personalized services and responses that meet user needs.

[0039] Generate semantic vector representation: The large language model converts user input into semantic vector representation, which is a key step in achieving efficient literature retrieval. The semantic vector can capture the deep semantic information of the user's query, allowing the system to more accurately find pathology documents that match the user's query intent in the semantic vector space.

[0040] Optimize system performance: Through the intelligent selection and calling function of the internal agent, the large language model can efficiently process user input and avoid unnecessary calculations and resource waste. This helps to improve the system's response speed and performance, and provide users with a better user experience.

[0041] In summary, the large language model plays a vital role in pathology literature search and dialogue systems through the capabilities of its internal agent. It can convert user input into precise medical keyword phrases and semantic vector representations, while identifying user intent, providing strong support for subsequent literature retrieval and intelligent dialogue.

[0042] In this embodiment, the multimodal vector representation module includes a text embedding model and an image embedding model based on pathology, which are used to achieve deep semantic understanding of the text; the multimodal vector representation module plays a vital role in the pathology literature search and dialogue system, especially when the module includes a text embedding model and an image embedding model based on pathology, its role in achieving deep semantic understanding of the text is particularly prominent. The following is a specific role analysis: Deep semantic understanding: The text embedding model can capture the deep semantic information in the text and convert the natural language text in the pathology literature into a high-dimensional vector representation. This vector representation not only contains information at the vocabulary level, but also reflects the semantic structure and meaning of sentences, paragraphs, and even the entire document. This enables the system to more accurately understand the intent of the user's query and find relevant content that matches it in the huge document library.

[0043] Cross-modal information fusion: In addition to text embedding models, image embedding models can convert pathological images into vector representations. In pathology, image information often complements text information and together constitutes complete pathological knowledge. By fusing information from both text and images, the system can more comprehensively understand the content of pathological literature and provide more accurate and richer search results.

[0044] Improved retrieval accuracy: Pathology-based multimodal vector representations can more accurately characterize the similarity between documents and user queries. When a user enters a query, the system can use multimodal vector representations to efficiently search the document library and find the pathology documents that best match the user's query intent. This helps reduce false positives and missed positives and improves retrieval accuracy.

[0045] Personalized recommendations and intelligent dialogue: Through deep semantic understanding of text, the system can more accurately grasp the interests and needs of users. Based on the search results, the system can also make personalized recommendations based on the user's reading behavior and feedback, and provide literature resources that better meet the user's needs. At the same time, in intelligent dialogue, the system can interact with users more naturally and smoothly, answer users' questions and provide relevant suggestions.

[0046] In summary, the pathology-based text embedding model and image embedding model in the multimodal vector representation module play an important role in achieving deep semantic understanding of text. They can capture deep semantic information in documents, integrate cross-modal information, improve retrieval accuracy, and provide strong support for personalized recommendations and intelligent dialogue.

[0047] In this embodiment, the multi-way recall module realizes keyword-based recall, semantic-based recall and filter-based literature recall through medical keyword groups, filters and semantic vector representation; the multi-way recall module plays a vital role in pathology literature search and dialogue system. This module realizes keyword-based recall, semantic-based recall and user-intention-based literature recall by using medical keyword groups, filters and semantic vector representation, thereby ensuring the accuracy and comprehensiveness of literature search.

[0048] First, the keyword-based recall strategy can directly match the medical keyword group entered by the user in the literature library and quickly retrieve the documents containing these keywords. This strategy is simple and direct and is suitable for situations where the user has a clear query target.

[0049] Secondly, the semantic recall strategy calculates the similarity between the semantic vectors of the user input and the semantic vectors of the documents in the document library to find the documents most relevant to the user's query intent. This strategy can capture the deep semantic information of the user's query and retrieve relevant documents even when the keywords entered by the user are not accurate or comprehensive enough.

[0050] Finally, the filter-based recall strategy selects documents that match the user's intention in the document library for recall based on the system's recognition of the user's intention. This strategy can combine the user's personalized needs and historical behavior data to achieve more accurate document recommendations.

[0051] By combining these three recall strategies, the multi-way recall module can make full use of the medical keyword phrases, user intent and semantic vector representations entered by users to achieve more comprehensive and accurate literature search. This can not only improve the retrieval efficiency of the system, but also provide users with literature resources that better meet their needs and interests, thereby improving the user experience.

[0052] In this embodiment, the content sorting module uses a machine learning algorithm to roughly sort and re-sort the recalled documents to provide personalized document recommendations; the content sorting module plays a vital role in the pathology document search and dialogue system, especially in personalized document recommendations. By using a machine learning algorithm to roughly sort and re-sort the recalled documents, the module can provide users with document resources that better meet their needs and interests.

[0053] In the rough sorting stage, the machine learning algorithm can perform preliminary sorting based on multiple factors such as the relevance of the document to the user's query, the quality of the document, and timeliness. The goal of this stage is to screen out documents that are more closely matched with the user's query intent from a large number of recalled documents, and provide a candidate set for subsequent re-ranking.

[0054] In the re-ranking stage, the machine learning algorithm will further consider the user's personalized needs. By analyzing the user's historical behavior, reading preferences, professional fields, etc., the algorithm can build a personalized model for the user. Then, based on this model, the roughly ranked documents are re-ranked, and the documents that better meet the user's personalized needs are placed at the front.

[0055] In addition, machine learning algorithms can continuously optimize the sorting model to improve the accuracy and efficiency of sorting. By collecting and analyzing user feedback, the algorithm can continuously adjust the sorting strategy to adapt to the changing needs and interests of users.

[0056] In this embodiment, a re-ranking model based on importance is also included, which is used to rank the documents recalled by multiple parties through a unified metric to generate the optimal ranking result; the content ranking module not only uses machine learning algorithms for rough ranking and re-ranking in the pathology document search and dialogue system, but also introduces a re-ranking model based on importance. The role of this model is to rank the documents recalled by multiple parties through a unified metric, thereby generating the optimal ranking result, further improving the accuracy and efficiency of personalized document recommendation.

[0057] The core idea of ​​the importance-based re-ranking model is to rank the documents according to their importance. The "importance" here can be comprehensively evaluated based on a variety of factors, such as the relevance of the document to the user's query, the number of citations of the document, the publication time of the document, the authority of the author of the document, etc. By building a reasonable evaluation system, the model can quantify the importance of each document and rank it accordingly.

[0058] In the context of multi-party recall, different recall strategies may return different document sets, which may overlap or complement each other. The importance-based re-ranking model can measure these sets uniformly, comprehensively consider the importance of each document in different sets, and thus obtain a global optimal ranking result.

[0059] This ranking method not only considers the relevance of the document to the user query, but also incorporates the quality and value factors of the document itself, making the ranking result more objective and comprehensive. At the same time, through a unified measurement method, the model can avoid information conflicts and redundancies between different recall strategies, and improve the consistency and stability of the ranking.

[0060] In practical applications, the importance-based re-ranking model can be flexibly adjusted according to user needs and preferences. For example, for some users, the latest research results may be more important, while for other users, classic literature and works by authoritative authors may be more valuable. The model can adapt to these different needs by adjusting the importance evaluation system.

[0061] In this embodiment, the importance-based re-ranking model uses multiple features to construct an effective representation of the relationship between documents and queries, including similarity features between documents and queries, the importance of documents, and the number of citations of documents; the importance-based re-ranking model can construct an effective representation of the relationship between documents and queries by comprehensively considering multiple features such as similarity features between documents and queries, the importance of documents, and the number of citations of documents. This representation method not only improves the accuracy and efficiency of sorting, but also can provide users with personalized document recommendation services that are more in line with their needs and interests.

[0062] In this embodiment, the importance-based re-ranking model adopts a metric learning method of point-to-point sorting combined with list-based sorting to train and optimize the model, thereby improving the accuracy and quality of document sorting; the importance-based re-ranking model can effectively train and optimize the model in the pathology document search and dialogue system by adopting a metric learning method of point-to-point sorting combined with list-based sorting, thereby improving the accuracy and quality of document sorting. The role of this method is mainly reflected in the following aspects: First, the pointwise ranking method focuses on the relevance between individual documents and user queries. It evaluates each document independently to determine whether it is relevant to the user query and ranks it accordingly. This method can capture the direct connection between the document and the user query, ensuring that the recalled documents are consistent with the user query in content.

[0063] Secondly, the listwise ranking method focuses on the matching degree between the entire document list and the user query. It considers the relative order and relationship between documents and optimizes the ranking model by comparing the performance of different document lists. This method can make full use of the information between the recalled documents and improve the consistency and accuracy of the ranking.

[0064] By combining point-to-point sorting and list-based sorting, the importance-based re-ranking model can take advantage of the advantages of both and achieve a more refined document ranking. Point-to-point sorting provides an assessment of the direct relevance between documents and user queries, while list-based sorting considers the relative relationship between documents and the overall ranking effect on this basis. This combination enables the model to take into account both local and global information when sorting, improving the accuracy and quality of the sorting.

[0065] In addition, metric learning methods play a key role in the process of training and optimizing models. It guides the optimization direction of the model by selecting appropriate metrics to measure the similarity or difference between documents and user queries. Metric learning methods can be flexibly adjusted according to actual needs and data characteristics, so that the model can adapt to different application scenarios and user preferences.

[0066] In summary, the importance-based re-ranking model can effectively train and optimize the model and improve the accuracy and quality of document ranking by adopting a metric learning method that combines point-to-point sorting with list-based sorting. This method can not only capture the direct connection between documents and user queries, but also make full use of the information between recalled documents to achieve more refined document ranking and provide users with better personalized document recommendation services.

[0067] In this embodiment, the importance-based re-ranking model uses a unified measurement dimension to re-rank the pathology documents recalled by multiple parties, and generates the optimal ranking result to meet the personalized search needs of users; the importance-based re-ranking model uses a unified measurement method to rank the pathology documents recalled by multiple parties, and can generate the optimal ranking result to meet the personalized search needs of users. This model has important application value in the pathology document search system and can provide users with more accurate and personalized document recommendation services.

[0068] In this embodiment, the feature design and extraction of the importance-based re-ranking model include similarity features between documents and queries, the importance of documents, and the number of citations of documents, which are used to construct an effective representation of the relationship between documents and queries; the importance-based re-ranking model in the pathology document search system aims to construct an effective representation of the relationship between documents and queries by carefully designing and extracting similarity features between documents and queries, the importance of documents, and the number of citations of documents. The role of these features in the model is mainly reflected in the following aspects: First, the similarity between documents and queries is the key to the model's judgment of the degree of match between documents and user needs. By calculating the similarity between documents and user queries in terms of content, subject, keywords, etc., the model can filter out documents that are highly relevant to user needs. The extraction and use of this similarity feature ensures that the model can provide users with accurate and demand-based document recommendations.

[0069] Secondly, the importance feature of a document reflects the influence and value of the document in the academic field. The importance can be assessed based on multiple dimensions, such as the number of citations, the author's authority, and the reputation of the publishing institution. By incorporating these importance features into the model, the model can identify high-quality, high-impact documents and give them higher weights when ranking. This helps improve the academic value and quality of search results and meet users' demand for high-quality documents.

[0070] Finally, the number of citations of a document is also an important basis for the model to evaluate the value and influence of the document. The number of citations not only reflects the degree to which the document is recognized by other scholars, but also reflects the dissemination and influence of the document in the academic field. By using the number of citations as a feature of the model, the model can more comprehensively evaluate the value of the document and give it appropriate weight when sorting. This helps ensure that the search results include those documents that are widely cited and have high influence; these features play a key role in the model, ensuring that the model can provide users with accurate, high-quality, and personalized document recommendation services.

[0071] In this embodiment, the bottom layer of the system architecture is the data layer. In this part, we use the abstracts of public and private papers from the biomedical literature database PubMed, books related to pathology and tumors, and the classification level of tumors by the World Health Organization as our original data sources; the data layer plays a basic and key role in the pathology literature search and dialogue system. By integrating data resources from multiple authoritative sources, the system can provide users with comprehensive, accurate, and professional pathology and tumor-related information to meet users' needs in scientific research, teaching, clinical practice, and other aspects.

[0072] In the engineering framework layer, the large model application framework Langchain is used in combination with the real-time distributed storage search engine Elastic Search and the vector retrieval library Faiss to build a large model-based document retrieval dialogue system. The system quality and data real-time performance are ensured through a data update module that is updated at the daily level and a self-developed service process detection module.

[0073] At the algorithm level, the search part proposes the text vector representation model Patho Pubmed Bert, the self-developed image and text vector alignment representation model Patho CLIP, and the importance-based reranking model. The generation part is enabled by the self-developed large language model Patho Asst.

[0074] The importance-based re-ranking model is located at the end of the search engine. Its purpose is to rank the documents recalled by multiple parties through a unified metric to generate the best ranking results and return them to the large language model for further understanding. The following are some key technical details of the model: Feature design and extraction: Multiple features are used to construct an effective representation of the relationship between documents and queries. These include similarity features between documents and queries, the importance of documents, and the number of citations of documents. These features are carefully designed to fully reflect the relevance and importance of documents in search results.

[0075] Using the GPT-based ranking capability, a database of 10,000 ranking features was established. Each ranking feature includes 100 papers in different relevant categories, providing richer information for the model.

[0076] Metric Learning: The model is trained using a metric learning method that combines pairwise ranking with listwise ranking. This method aims to learn the relative importance of documents through the model to ensure the accuracy and quality of the documents in the ranking.

[0077] The point-to-point ranking method focuses on the relative ranking between document pairs, while the list-based ranking method focuses more on the global ranking of the entire document list. This comprehensive metric learning method helps the model better understand and capture the correlation between documents.

[0078] By comprehensively utilizing these technical details, the re-ranking model aims to provide users with more personalized and high-quality search results. Through unified metrics and comprehensive feature representation, the optimal ranking results are generated to meet users' search needs and provide more valuable information for the large language model.

[0079] Finally, at the application level, the system performed well in tasks such as document retrieval and image-based text search. At the same time, as a large model knowledge base, it successfully expanded the knowledge domain and deepened the understanding of the literature. The system demonstrated excellent performance in a variety of tasks.

[0080] Working principle: When a user initiates a query, the specific process of the present invention begins with the processing of the interactive and dialogue system. In this system, the large language model intelligently selects and calls the relevant functions in the query processing module through the ability of its internal agent. The user's input is first abstracted into medical keyword groups, user intent and semantic vector representation, and then passed to the real-time retrieval engine. In the multi-way recall module, the recall of documents is divided into three aspects: keyword-based recall, semantic-based recall, and document recall based on user intent through medical keyword groups, user intent and semantic vector representation. In the sorting stage, the pathological documents of the three-way recall are sorted according to the user's intent and re-sorted based on relevance alignment. Then, the sorted documents are returned to the interactive and dialogue system. Through the dialogue understanding ability of the large model, the documents are summarized and analyzed, and the results are returned to the user in real time, thereby improving the process of document retrieval and real-time dialogue. The design of this process is to provide users with an efficient and intelligent document search experience while making full use of the powerful processing capabilities of the large language model.

[0081] In summary, the system of the present invention includes a pathology document collection and processing module, a real-time interaction and dialogue system, a multimodal vector representation module, a multi-way recall module and a content sorting module. Through the processing of a large language model and a deep learning model, the user's input is abstracted into medical keyword groups, user intent and semantic vector representation. The multimodal vector representation module converts pathology documents into semantic vector representations to achieve deep semantic understanding of texts. The multi-way recall module retrieves the pathology documents most relevant to the user's query in the semantic vector space. The content sorting module sorts the recalled documents according to the user's historical query and document reading behavior, and provides personalized document recommendations. Another innovation of the present invention is the re-ranking model based on importance. The model sorts the multi-party recalled documents through a unified metric to generate the optimal sorting result. The model uses a variety of features to construct an effective representation of the relationship between documents and queries, including similarity features between documents and queries, the importance of documents, and the number of citations of documents. Through the metric learning method of point-to-point sorting combined with list-based sorting for training, the model can accurately understand the relative importance between documents and ensure the accuracy and quality of the sorting results.

[0082] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0083] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A pathology literature search and dialogue system based on a large language model and RAG technology, characterized by: It includes a pathology literature collection and processing module, which is used to collect, organize and process pathology literature data; Real-time interaction and dialogue module, which receives user input and processes it through a large language model to extract user intent and semantic embedding; A multimodal vector representation module, used to convert pathology documents into semantic vector representations; A multi-way recall module, which is used to retrieve the pathology documents most relevant to the user query in the semantic vector space; A content ranking module includes an importance-based re-ranking model, which uses a unified measurement dimension to re-rank the pathology documents recalled by multiple parties to generate an optimal ranking result.

2. A pathological literature search and dialogue system based on a large language model and RAG technology according to claim 1, characterized in that: The large language model intelligently selects and calls relevant functions in the query processing module through the capabilities of its internal agent, and abstracts the user input into medical keyword groups, user intentions, and semantic vector representations.

3. A pathological literature search and dialogue system based on a large language model and RAG technology according to claim 1 or 2, characterized in that: The multimodal vector representation module includes a pathology-based text embedding model and an image embedding model, which are used to achieve deep semantic understanding of text.

4. The pathological literature search and dialogue system based on a large language model and RAG technology according to claim 1, characterized in that: The multi-channel recall module realizes keyword-based recall, semantic-based recall and user-intention-based document recall through medical keyword groups, user intentions and semantic vector representations.

5. The pathological literature search and dialogue system based on a large language model and RAG technology according to claim 1, characterized in that: The content ranking module uses a machine learning algorithm to roughly sort and re-sort the recalled documents to provide personalized document recommendations.

6. The pathological literature search and dialogue system based on a large language model and RAG technology according to claim 1, characterized in that: It also includes an importance-based re-ranking model, which is used to rank the multi-recall documents through a unified metric to generate the optimal ranking result.

7. The pathological literature search and dialogue system based on a large language model and RAG technology according to claim 6, characterized in that: The importance-based re-ranking model uses multiple features to construct an effective representation of the relationship between documents and queries, including similarity features between documents and queries, the importance of documents, and the number of citations of documents.

8. The pathological literature search and dialogue system based on a large language model and RAG technology according to claim 6, characterized in that: The importance-based re-ranking model adopts a metric learning method of point-to-point sorting combined with list-based sorting to train and optimize the model.

9. The pathological literature search and dialogue system based on a large language model and RAG technology according to claim 6, characterized in that: The feature design and extraction of the importance-based re-ranking model includes similarity features between documents and queries, the importance of documents, and the number of citations of documents, which are used to construct an effective representation of the relationship between documents and queries.

Citation Information

Patent Citations

  • Document sorting method, device and equipment and storage medium

    CN112100493A

  • Vector model-based relevancy ranking method for multi-path recall semantics

    CN116910388A

  • Question and answer method and system based on multi-modal self-adaptive retrieval type enhanced large model

    CN117648429A

  • Online intelligent question answering method and device based on instruction fine tuning and retrieval enhancement generation

    CN117688163A

  • Multi-modal information retrieval method, device and equipment, readable storage medium and computer program product

    CN117909555A

Cited By

  • RAG retrieval process optimization method and system based on fine tuning embedding model

    CN119782497A

  • Method and device for detecting academic disused literature

    CN120086379A

  • A method and apparatus for academic misconduct document detection

    CN120086379B

  • Data retrieval method, device and system

    CN120316119A

  • Data retrieval method, device and system

    CN120316119B