A system for acquiring domain-specific knowledge of natural medicinal materials
Through a system that combines conversational applications, learning models, and search engines, the natural medicinal materials domain knowledge base is used to solve the accuracy and reliability problems of acquiring natural medicinal materials domain knowledge, achieving user-friendly intelligent knowledge acquisition, and improving the The quality of scientific research in the field of natural medicines.
Patent Information
- Application Number
- CN202311710151.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-13
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2043-12-13
AI Technical Summary
It is difficult to obtain accurate, standardized and comprehensive knowledge related to the field of natural medicinal materials conveniently, efficiently and intelligently with existing technology. As a result, professionals and users are faced with inaccurate and misleading information when obtaining specialized knowledge of natural medicinal materials, which affects the scientific research results. Reliability and progress.
Provide a system for acquiring specialized knowledge of natural medicinal materials. It combines dialogue applications, learning models and search engines to judge answer capabilities through dialogue history. It uses coreference graph search, vector search and full-text search technologies to acquire specialized knowledge of natural medicinal materials. Retrieve relevant information from the database and generate accurate answers.
It enables users to conveniently obtain authoritative, accurate and standardized knowledge on natural medicinal materials, ensuring the validity and credibility of academic conclusions and promoting the healthy development of this field.
Smart Images

Figure CN117648424B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of natural medicinal material information processing and application, and in particular to a system for acquiring domain-specific knowledge of natural medicinal materials. Background Art
[0002] Natural medicinal materials (NMMs) have long been recognized as a powerful reservoir of therapeutic agents, and their importance is reflected in the diversity and biological relevance of the compounds they produce. These compounds play a key role in addressing various pathological conditions, covering a wide range from infectious diseases to cancer, and continue to serve as a rich source of new drug leads. In addition, NMMs have a wide history of clinical application around the world, such as in China, India, and the Arab region, proving their enduring relevance in the global healthcare landscape. Despite their significant contributions to healthcare, due to the complexity of natural medicinal materials themselves, for example, even if the species origin and medicinal parts are the same, only the processing methods are different, which actually corresponds to different natural medicinal materials. However, since they are usually not strictly distinguished in terms of names, when using commonly used Internet search tools or searching for information in existing databases, only partial or even wrong knowledge can be obtained.
[0003] Taking "Ephedra" as an example, the "Chinese Pharmacopoeia (2020 Edition)" records in detail that the term "Ephedra" refers to natural medicinal materials derived from several different species, including Ephedra sinica (plant grass Ephedra), Ephedra intermedia (plant Ephedra) or Ephedra equisetina (plant horsetail ephedra). When trying to search for "MaHuang" or "Ephedra" through Internet search engines to seek specialized knowledge about "Ephedra", one often only gets incomplete or misleading entries, such as "Ephedra is a medicinal preparation from the plant Ephedra sinica". In addition, since the relevant knowledge of natural medicinal materials has not been stored in an authoritative and rigorous manner, the existing dialogue-based platforms based on Internet search are not only unhelpful in obtaining domain-specific knowledge of natural medicinal materials, but may even exacerbate the above-mentioned inaccuracies. For example, these platforms may assert in an affirmative tone that Ephedra sinica is the single species origin of Ephedra. The incorrect or imprecise acquisition of domain-specific knowledge has created a great obstacle to the scientific research of natural medicinal materials, and will inevitably undermine the reliability and validity of academic conclusions, and even hinder research progress in this field.
[0004] It can be seen that the current existing technology has not yet found a tool that can enable various users, including professionals in the field, to conveniently, efficiently and intelligently obtain accurate, standardized and comprehensive knowledge related to the field of natural medicinal materials. Summary of the invention
[0005] The present application is provided to solve the above-mentioned problems existing in the prior art.
[0006] There is a need for a system for acquiring domain-specific knowledge of natural medicinal materials, which can enable various users, including professionals in the field, to conveniently, efficiently and intelligently acquire accurate, standardized and comprehensive knowledge related to the field of natural medicinal materials.
[0007] According to a first scheme of the present application, a system for acquiring domain-specific knowledge of natural medicinal materials is provided, the system comprising a dialogue application, a first learning model, a search engine and a domain-specific knowledge base of natural medicinal materials, the dialogue application being configured to: provide a user interaction interface for a user, receive dialogue information input by a user on the user interaction interface, the dialogue information comprising a user question intended to acquire domain-specific knowledge of natural medicinal materials; and present to the user answers to the user question generated by the first learning model; the first learning model being configured to: based on a dialogue history with the user, determine whether the dialogue history is sufficient to answer the latest user question; and if it is determined that the dialogue history is sufficient to answer the latest user question, generate answers to the user question based on the dialogue history. the answer to the latest user question; when the first learning model determines that the dialogue history is not sufficient to answer the latest user question, the dialogue information containing the latest user question is first processed, and the dialogue information after the first processing is used to interact with the search engine; the search engine is configured to: based on the dialogue information after the first processing, use at least one of a graph search based on co-reference, a vector search and a full-text search to perform information retrieval on the natural medicinal material domain knowledge base to obtain background knowledge associated with the latest user question, embed the background knowledge into the user's dialogue information to generate a dialogue history composed of each round of dialogue information and the corresponding background knowledge, and return the dialogue history to the first learning model.
[0008] According to the system for acquiring domain-specific knowledge of natural medicinal materials in the embodiment of the present application, a dedicated system for acquiring domain-specific knowledge of natural medicinal materials is provided to users by combining and applying a dialogue application, a learning model, a search engine and a domain-specific knowledge base dedicated to the professional field of natural medicinal materials. The system can provide users with a friendly interface in a dialogue manner, and can intelligently and accurately acquire the authoritative, accurate, standardized and comprehensive domain-specific knowledge of natural medicinal materials that they need, so that scientific research in the field of natural medicinal materials has a consistent understanding and a unified knowledge base, thereby ensuring the validity and credibility of academic conclusions, and promoting the healthy development of research in this field.
[0009] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In the drawings, which are not necessarily drawn to scale, the same reference numerals may describe similar components in different views. The same reference numerals with letter suffixes or different letter suffixes may represent different instances of similar components. The accompanying drawings generally illustrate various embodiments by way of example and not limitation, and together with the description and claims, serve to illustrate the disclosed embodiments. Such embodiments are illustrative and are not intended to be exhaustive or exclusive embodiments of the present apparatus or method.
[0011] Figure 1 A block diagram showing some components of a system for acquiring domain-specific knowledge of natural medicinal materials according to an embodiment of the present application is shown.
[0012] FIG. 2( a ) shows a schematic diagram of a user interaction interface including dialogue guiding information according to an embodiment of the present application.
[0013] FIG2( b ) is a schematic diagram showing an example question and its answer according to an embodiment of the present application.
[0014] FIG. 3( a ) is a schematic diagram showing dialog information including user customized information according to an embodiment of the present application.
[0015] FIG3( b ) shows another schematic diagram of dialog information including user customized information according to an embodiment of the present application.
[0016] FIG4( a ) shows a schematic diagram of a user interaction interface including irrelevant questions according to an embodiment of the present application.
[0017] FIG4( b ) shows another schematic diagram of a user interaction interface including irrelevant questions according to an embodiment of the present application.
[0018] FIG5( a ) shows a schematic diagram of a user interaction interface including multi-round dialogue information according to an embodiment of the present application.
[0019] FIG5( b ) shows another schematic diagram of a user interaction interface including multi-round dialogue information according to an embodiment of the present application.
[0020] Figure 6 A schematic diagram of a coreference graph according to an embodiment of the present application is shown.
[0021] Figure 7A schematic diagram of the process of coreference-based graph search according to an embodiment of the present application is shown.
[0022] Figure 8 A schematic diagram of a vector search process according to an embodiment of the present application is shown.
[0023] Fig. 9 A schematic diagram of the process of full-text search according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0024] In order to enable those skilled in the art to better understand the technical solution of the present application, the present application is described in detail below in conjunction with the accompanying drawings and specific implementation methods. The embodiments of the present application are further described in detail below in conjunction with the accompanying drawings and specific implementation methods, but are not intended to limit the present application.
[0025] The words "first", "second" and similar words used in this application do not indicate any order, quantity or importance, but are only used to distinguish. Words such as "include" or "comprise" and similar words mean that the elements before the word include the elements listed after the word, and do not exclude the possibility of also covering other elements. The execution order of the various steps in the method described in this application in conjunction with the accompanying drawings is not intended to be limiting. As long as it does not affect the logical relationship between the various steps, several steps can be integrated into a single step, a single step can be decomposed into multiple steps, and the execution order of the various steps can be changed according to specific needs.
[0026] It should also be understood that the term "and / or" in this application is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this application generally indicates that the associated objects before and after are in an "or" relationship.
[0027] According to an embodiment of the present application, a system for acquiring domain-specific knowledge of natural medicinal materials is provided. Figure 1 A block diagram showing some components of a system for acquiring domain-specific knowledge of natural medicinal materials according to an embodiment of the present application is shown.
[0028] like Figure 1 As shown, the system 100 for acquiring domain-specific knowledge of natural medicinal materials at least includes a dialogue application 101 , a first learning model 102 , a search engine 103 , and a domain-specific knowledge base 104 of natural medicinal materials.
[0029] The dialog application 101 may be configured to provide a user with a user interaction interface 1011 and receive dialog information input by the user on the user interaction interface 1011. In some embodiments, the dialog information may include but is not limited to user questions intended to obtain domain-specific knowledge of natural medicinal materials. Further, the dialog application 101 is also configured to present answers to the user questions generated by the first learning model 102 to the user.
[0030] The first learning model 102 may be configured to determine, based on the conversation history with the user, whether the conversation history is sufficient to answer the latest user question, and then, if it is determined that the conversation history is sufficient to answer the latest user question, generate an answer to the latest user question based on the conversation history. As an example only, assume that the conversation history is as follows:
[0031] “
[0032] user_message_1: What is the system name of Ephedra?
[0033] background_knowledge_1:
[0034] {
[0035] "nmmsn": {
[0036] "nmmsn": "Ephedra equisetina vel intermedia vel sinica Stem-herbaceous",
[0037] "nmmsn_zh": {
[0038] "en": "Ephedra equisetum or Ephedra intermedia or Ephedra herbaceous stem",
[0039] "pinyin": "mù zéi má huáng huò zhōng má huáng huò cǎo má huáng cǎo zhì jīng"
[0040] },
[0041] "nmmsn_name_element": {
[0042] "nmm_type": "plant",
[0043] "species_origins": [
[0044] ["Ephedra equisetina", "Ephedra equisetina"],
[0045] "or",
[0046] ["Ephedra intermedia", "Ephedra intermedia"],
[0047] "or",
[0048] ["Ephedra sinica", "Ephedra sinica"]
[0049] ],
[0050] "medicinal_parts": [["stem herbaceous", "herbaceous stem"]],
[0051] "special_descriptions": [],
[0052] "processing_methods": []
[0053] }
[0054] }
[0055] }
[0056] shennongchat_response_1: The systematic name of Ephedra is Ephedra equisetina velintermedia vel sinica Stem-herbaceous.
[0057] New User Message:
[0058] user_message_2: What is the Chinese name of Ephedra?
[0059] ”
[0060] It can be seen that the above conversation history already contains information about "the Chinese name of Ephedra", namely:
[0061] “
[0062] {
[0063] "nmmsn_zh": {
[0064] "en": "Ephedra equisetum or Ephedra intermedia or Ephedra herbaceous stem",
[0065] "pinyin": "mù zéi má huáng huò zhōng má huáng huò cǎo má huáng cǎo zhì jīng"
[0066] }
[0067] }
[0068] ”
[0069] Therefore, the first model can generate an answer to the latest user question based on the above conversation history:
[0070] “
[0071] shennongchat_response_2: The systematic Chinese name of Ephedra is Ephedra equisetifolia or Ephedra intermedia or Ephedra herbaceous stem.
[0072] ”
[0073] In other embodiments, when the first learning model 102 determines that the conversation history is not sufficient to answer the latest user question, the conversation information containing the latest user question is first processed, and the conversation information after the first processing is used to interact with the search engine 103. The purpose of the first processing of the conversation information is to make the processed conversation information better adapted to the search engine 103, including but not limited to extracting keywords that the user intends to obtain natural medicinal materials domain knowledge from the conversation information, or converting the conversation information into a specific format of search terms that facilitates the search engine 103 to search in the natural medicinal materials domain knowledge base 104, etc., and the present application does not impose specific restrictions on this.
[0074] The search engine 103 is configured to: based on the first processed conversation information, use at least one of co-reference-based graph search, vector search and full-text search to perform information retrieval on the natural medicinal materials domain knowledge base 104 to obtain background knowledge associated with the latest user question, embed the background knowledge into the user's conversation information to generate a conversation history consisting of each round of conversation information and the corresponding background knowledge, and return the conversation history to the first learning model 102.
[0075] In the present application, by combining the dialogue application, learning model, search engine and domain knowledge base dedicated to the professional field of natural medicinal materials, a dedicated system for obtaining domain knowledge of natural medicinal materials is provided to users, so that when users want to understand and learn the professional knowledge of natural medicinal materials, they do not have to use a general search engine on the Internet to search blindly and judge the accuracy of the information by themselves. Instead, they can use the system of the embodiment of the present application to ask questions in a dialogue manner in a friendly interface, without understanding the process of knowledge search, and can intelligently and accurately obtain the authoritative, accurate, standardized and comprehensive domain knowledge of natural medicinal materials they need. Therefore, the system for obtaining domain knowledge of natural medicinal materials according to the embodiment of the present application cleverly integrates the knowledge search process into the dialogue process, not only has a good user experience, but also enables scientific research in the field of natural medicinal materials to have a consistent understanding and a unified knowledge base, thereby ensuring the validity and credibility of academic conclusions, and then promoting the healthy development of research in this field.
[0076] Unlike general conversation applications, the conversation application according to the embodiments of the present application is specifically used for knowledge acquisition in the field of natural medicinal materials. Therefore, in some embodiments, the conversation application can provide users with conversation guidance information on the user interaction interface, wherein the conversation guidance information includes example questions for users to click to view answers to the example questions.
[0077] FIG2 (a) shows a schematic diagram of a user interaction interface including dialogue guidance information according to an embodiment of the present application. As shown in FIG2 (a), the dialogue application provides three example questions on the user interaction interface: "What is the systematic name of Ephedra?", "What is the NMM ID of Ephedra?", and "What is the species origin of Ephedra?", and the user can view the answer to the example question by clicking on any one of them. FIG2 (b) shows a schematic diagram of example questions and their answers according to an embodiment of the present application. As shown in FIG2 (b), when the user clicks on the first example question "What is the systematic name of Ephedra?", the system will present the answer corresponding to the question on the user interface, namely: the systematic name of Ephedra is Ephedra equisetina vel intermedia vel sinica Stem-herbaceous.
[0078] By providing users with dialogue guidance information, users, especially new users or users with less field experience, can conveniently learn the typical usage methods of the dialogue application. In addition, the dialogue application according to the present application can also build a multi-angle and fully covered sample question library based on the typical natural medicinal material professional knowledge that the system can obtain, and provide users with switching functions such as "change a batch of sample questions" so that users can get more accurate question help as much as possible.
[0079] In some embodiments, the dialogue information between the user and the system can be dialogue information in the form of natural language, such as text information input by the user, voice information, or text information converted from language information. Further, the dialogue information can also be dialogue information in the form of natural languages in different languages. In other words, the system according to the embodiment of the present application has the ability to learn and process natural language, especially cross-language natural language, which is of great significance for promoting international exchanges and standardization in the field of natural medicinal materials.
[0080] The conversation application according to the embodiment of the present application also supports user customization through conversation. As an example only, in the case where the conversation information contains information related to the answer style expected by the user, the answer to the user's question generated by the first learning model and matching the answer style related information is presented to the user, wherein the answer style related information includes at least one of the language of the answer, the format of the answer, and the length of the answer. Figure 3 (a) shows a schematic diagram of conversation information containing user customization information according to an embodiment of the present application. In Figure 3 (a), the user specifies the language of the answer by "Please answer in French" in the conversation information. In response to the user's customization of the language of the answer, the conversation application gives an answer to the user's question in French. In some embodiments, the language specified by the user for the answer includes but is not limited to Chinese and English, and may also include English-Chinese and Chinese-English, etc., and the specification of the language of the answer is not limited to the language used by the current user interface.
[0081] In other embodiments, the user may also specify the format of the answer, wherein the format of the answer includes but is not limited to the JSON format. FIG3 (b) shows another schematic diagram of a dialog message containing user-customized information according to an embodiment of the present application. In FIG3 (b), since the user specifies the answer in JSON format in the dialog message, in response to the user's specification, the application program gives a JSON format answer to the question "What is the species origin of ephedra?", namely: {"species origin": ["Ephedra equisetina", "or", "Ephedra intermedia", "or", "Ephedra sinica"]}. In other embodiments, when the natural medicinal material domain knowledge base can support it, the system can also respond to the user's specification of answering in other formats, so that the user can easily integrate the natural medicinal material domain knowledge in a specific format into other programs or databases, etc., further enhancing the practical value of the system in the present application.
[0082] In other embodiments, the user may also specify the length of the answer according to his or her needs, such as "short answer", "detailed answer", or specify the word range of the answer, etc. This application does not impose any specific restrictions on this.
[0083] In some other embodiments, the conversation application according to the embodiment of the present application does not provide answers to user questions that are not related to natural medicinal materials, Chinese medicinal materials or traditional Chinese medicine. Figures 4(a) and 4(b) are schematic diagrams of Chinese and English user interaction interfaces containing irrelevant questions according to the embodiment of the present application, respectively.
[0084] As shown in Figure 4 (a) and Figure 4 (b), the dialogue application receives dialogue messages in Chinese and English respectively through the user interaction interface that are not related to the domain knowledge of natural medicinal materials. In this case, the dialogue application will refuse to answer. In addition, it can also provide dialogue messages that prompt the user to ask questions related to the domain knowledge of natural medicinal materials. In this way, the security and professionalism of the dialogue application can be enhanced, and any inaccurate information and misleading information can be avoided.
[0085] In some embodiments, the conversation information between the user and the conversation application is multi-round, and the conversation application is further configured to receive the multi-round conversation information input by the user on the user interaction interface, and present to the user the answers to the user's questions contained in each round of conversation information generated by the first learning model. Figure 5 (a) and Figure 5 (b) respectively show schematic diagrams of Chinese and English user interaction interfaces containing multi-round conversation information according to an embodiment of the present application. The questions in the multi-round conversation information between the user and the conversation application can be related or independent of each other, and the present application does not limit this. In addition, combined with the function of providing conversation guidance information to the user on the user interaction interface as described above, in the case of multi-round conversations, it is also possible to generate example questions in a targeted manner based on the previous round of conversation information with the user during the interactive conversation with the user, and provide the user with updated example question options as the multi-round conversation proceeds, thereby helping the user to acquire and learn the natural medicinal material domain knowledge required by the user more accurately and deeply.
[0086] In addition, the conversation application can be further configured to provide options for collecting, downloading and quoting the user's previous conversation records on the user interaction interface, so that the user can add previous conversation records to the user's private information, or download original data associated with natural medicinal material knowledge, or quote pages of each conversation record.
[0087] In other embodiments, the dialog application may be further configured to set a user evaluation option on the user interaction interface so as to improve the training of the first learning model using the evaluation information submitted by the user. Taking FIG. 5 (a) as an example, it can be seen that for each round of answers to user questions, a user evaluation option can be set so that the user can evaluate the answer to each question.
[0088] As described above, each of the conversation applications according to the embodiments of the present application shown in Figures 2 (a) to 5 (b) can be called by the user by accessing a web page. That is, there is no need to install a special application, and the web page of the conversation application can be called by simply accessing a specific URL. This greatly facilitates the user to use the system of the present application on various terminal devices.
[0089] The natural medicinal material domain-specific knowledge base according to the embodiment of the present application is specially constructed to facilitate the acquisition of natural medicinal material domain-specific knowledge, and is configured to include parts such as systematic naming of natural medicinal materials, structured and standardized natural medicinal material knowledge, natural medicinal material terminology, natural medicinal material relationship sets, and natural medicinal material related texts.
[0090] The relevant texts on natural medicinal materials include at least the "Chinese Pharmacopoeia: 2020 Edition: Volume 1" or an updated and implemented version of the "Chinese Pharmacopoeia".
[0091] The structured and standardized natural medicinal materials knowledge is obtained by structuring and standardizing the natural medicinal materials related information in the "Chinese Pharmacopoeia: 2020 Edition: Volume 1" or an updated and implemented version of the "Chinese Pharmacopoeia", and covers all natural medicinal materials in the "Chinese Pharmacopoeia: 2020 Edition: Volume 1" or an updated and implemented version of the "Chinese Pharmacopoeia".
[0092] It can be seen that the system for acquiring domain-specific knowledge of natural medicinal materials according to the embodiment of the present application integrates the most authoritative information sources in the field of natural medicinal materials, which is also the basis for providing users with professional, standardized and comprehensive domain-specific knowledge of natural medicinal materials.
[0093] In addition, in order to enable the joint application of the search engine and the natural medicinal material domain knowledge base to better obtain natural medicinal material domain knowledge, the natural medicinal material domain knowledge base is further configured to store the natural medicinal material domain knowledge in JSON format, and the basic data structure is as follows:
[0094] {
[0095] “_id”: “NMM ID”,
[0096] Field: Value
[0097] }
[0098] Among them, NMM ID is the unique ID number of the natural medicinal material in the natural medicinal material domain knowledge base, and "field": "value" can be any attribute associated with NMM ID and its corresponding value.
[0099] Furthermore, the JSON of natural medicinal material domain knowledge can also have a hierarchical nested data structure, as shown in the following example:
[0100] {
[0101] “_id”: “NMM ID”,
[0102] "Field1": {
[0103] "Field2": {
[0104] "Field3": "Value",
[0105] "Field4": "Value"
[0106] },
[0107] "Field5": "Value"
[0108] }
[0109] }
[0110] In an embodiment of the present application, the nesting depth of the data structure of the natural medicinal material domain knowledge JSON is set to the fewest possible number of layers, for example, the number of nesting layers does not exceed 4 layers, or 8 layers, or 16 layers, or 32 layers, or 64 layers. In addition, for closely related fields, they can also be stored in a parent field, such as "field 3" and "field 4" in the above example, as closely related fields, they are stored together in the parent field "field 2". In this way, when searching for "field 3" and "field 4", it is only necessary to retrieve the value of "field 2", so that when searching with a search engine, the search efficiency is higher. By controlling the depth of nesting, it is effectively avoided that the user cannot navigate well due to too many levels when browsing knowledge, and the performance degradation caused by the need for a deeper structure search when searching for knowledge.
[0111] According to the natural medicinal material relationship set in the natural medicinal material domain knowledge base of the embodiment of the present application, multiple groups of natural medicinal material relationships are included, and each group of natural medicinal material relationships can be represented as a manually annotated [source object, relationship, target object] triple, wherein the source object and the target object at least include natural medicinal material terms, and the relationship at least includes a synonym relationship, a containment relationship, a derived / superior relationship, a derived / subordinate relationship, and a peer relationship. As an example only, a synonym relationship includes, for example: [Traditional Chinese Medicine, Synonym (Synonym), Chinese Medicine]; a containment relationship includes, for example: [natural medicinal material, containing, processed natural medicinal material]; a derived / superior relationship includes, for example: [Artemisia annua, derived / superior, plant Artemisia annua]; a derived / subordinate relationship includes, for example: [Artemisia annua, derived / subordinate, Artemisia annua segment]; a peer relationship includes, for example: [Ginseng root, peer, ginseng leaf]. In addition, the source object and the target object may be nouns and terms in different languages respectively. For example, the synonym relationship may also include cross-language synonyms, such as [natural medicinal material, cross-language synonym, Natural Medicinal Material], etc., which are not listed here one by one.
[0112] In some embodiments, each of the natural medicinal material terms in the natural medicinal material domain knowledge base has a unique co-referential subject corresponding thereto. "Co-referential term" refers to a group of words with the same concept, and the subject of the natural medicinal material term corresponding to a certain representative word in this group of words is called the co-referential subject of this concept. Labeling the natural medicinal material terms with their corresponding unique co-referential subject can effectively avoid ambiguity and improve the standardization of natural medicinal material domain knowledge.
[0113] Based on the natural medicinal material relationship set, the search engine can be further used to search for each group of natural medicinal material relationships with synonymous relationships in the natural medicinal material relationship set, so as to construct a coreference primary term graph (CPTG), wherein the constructed coreference primary term graph contains all coreference primary terms and can reflect the synonymous relationship between each natural medicinal material term. It can be seen that CPTG can basically be considered as a directed acyclic graph (Directed Acyclic Graph).
[0114] Figure 6A schematic diagram of a coreference graph according to an embodiment of the present application is shown. When searching for each group of natural medicinal material relationships with synonymous relationships in the natural medicinal material relationship set using a search engine, for example, the synonymous relationships associated with the term "ephedra" in the search results may include [Ephedrae Herba, Synonym, Ephedra], [Ephedra, Synonym, Ephedra], [Ma huang, Synonym, Ephedra], and [Ephedra, Synonym, nmm-0006], [Ma-huang, Synonym, nmm-0006], [Ephedra equisetina vel intermedia vel sinica Stem-herbaceous, Synonym, nmm-0006], based on the above synonymous search results, a search term structure may be constructed as follows: Figure 6 The coreference graph shown is partial. Figure 6 It can be seen that NMM ID is the main term of each natural medicine term in the natural medicine knowledge base. In the constructed coreference graph, it is the coreference of each natural medicine term. All natural medicine terms with the same concept, as well as natural medicine terms with synonymous relationships (including cross-language synonymous relationships, etc.) with these natural medicine terms, can eventually point to the coreference through the search engine. Figure 6 , Ephedrae Herba, Ephedra, Ma huang, Ephedra, Ma-huang, Ephedra equisetina or Ephedra intermedia or Ephedra herbaceous stem, Ephedra equisetina vel intermedia vel sinica Stem-herbaceous all point to the coreferential subject nmm-0006.
[0115] In the case where the natural medicinal material domain-specific knowledge base and the search engine according to the embodiment of the present application have the above configuration, Figure 7-Figure 9 , the process of using a search engine to search in a natural medicinal material domain knowledge base to obtain the natural medicinal material domain knowledge required by the user is described in detail. As an example only, the simplified NMM knowledge document about "ephedra" is as follows: [
[0117] {
[0118] "_id": "nmm-0006",
[0119] "snnmm": {
[0120] "nmm_id": "nmm-0006",
[0121] "nmmsn": {
[0122] "nmmsn": "Ephedra equisetina vel intermedia vel sinica Stem-herbaceous",
[0123] "nmmsn_zh": {
[0124] "en": "Ephedra equisetum or Ephedra intermedia or Ephedra herbaceous stem",
[0125] "pinyin": "mù zéi má huáng huò zhōng má huáng huò cǎo má huáng cǎo zhì jīng"
[0126] },
[0127] "nmmsn_name_element": {
[0128] "nmm_type": "plant",
[0129] "species_origins": [
[0130] ["Ephedra equisetina", "Ephedra equisetina"],
[0131] "or",
[0132] ["Ephedra intermedia", "Ephedra intermedia"],
[0133] "or",
[0134] ["Ephedra sinica", "Ephedra sinica"]
[0135] ],
[0136] "medicinal_parts": [["stem herbaceous", "herbaceous stem"]],
[0137] "special_descriptions": [],
[0138] "processing_methods": []
[0139] }
[0140] },
[0141] "nmmgn": {
[0142] "nmmgn": "Ma-huang",
[0143] "nmmgn_zh": {
[0144] "en": "Ephedra",
[0145] "pinyin": "má huangng"
[0146] }
[0147] }
[0148] }
[0149] } ]
[0151] Figure 7 A flow chart of a coreference-based graph search according to an embodiment of the present application is shown. In some embodiments, the first learning model is further configured to have information extraction capabilities, so that the first processing of the conversation information containing the latest user question by the first learning model may specifically include extracting natural medicinal material entities and search fields from the conversation information. Thus, when the first learning model determines that the conversation history is not sufficient to answer the latest user question, it is necessary to interact with the search engine, and before the interaction, it is necessary to perform a first processing on the conversation information containing the latest user question, wherein the first processing may be associated with different search modes of the search engine, for example, the coreference-based graph search mode may correspond to the above-mentioned first processing of extracting natural medicinal material entities and search fields from the conversation information. As an example only, assume that the conversation history is as follows:
[0152] “
[0153] user_message_1: What is Ma Huang's NMM ID?
[0154] background_knowledge_1:
[0155] {
[0156] "nmm_id": "nmm-0006"
[0157] }
[0158] shennongchat_response_1: The NMM ID of Ephedra is nmm-0006.
[0159] New User Message:
[0160] user_message_2: What is the system name of Ephedra?
[0161] ”
[0162] Since the information about “the systematic name of Ephedra” is not included in the above conversation history, the first learning model needs to interact with the search engine. Figure 7 As shown, in step 701, when using coreference-based graph search to perform information retrieval on the natural medicinal material domain knowledge base, the first learning model can first extract natural medicinal material entities and search fields from the dialogue information containing the latest user question.
[0163] For a user question like "What is the system name of ephedra?", "ephedra" is the natural medicinal material entity, and "system name" is the search field. That is, the first learning model can extract the following NMM entity name and field name:
[0164] {
[0165] "nmm_list": ["Ephedra"]
[0166] }
[0167] {
[0168] "field_list": ["System Name"]
[0169] }
[0170] Next, in step 702, the search engine searches the natural medicinal material entity and the search field in the coreference graph to obtain the first coreference corresponding to the natural medicinal material entity and the second coreference corresponding to the search field. Taking the coreference of the natural medicinal material entity as NMM ID and the coreference of the search field as field ID as an example, the search engine searches for "ephedra" as the natural medicinal material entity and "system name" as the search field in the coreference graph, and the first coreference "nmm-0006" and the second coreference "nmmsn" can be obtained:
[0171] {
[0172] "nmm_to_nmm_id": {
[0173] "Ephedra": "nmm-0006"
[0174] }
[0175] }
[0176] as well as
[0177] {
[0178] "field_to_field_id": {
[0179] "System Name": "nmmsn"
[0180] }
[0181] }
[0182] It should be noted that the coreference subject of the natural medicinal material entity and the coreference subject of the search field can also be pre-set to other coreference terms as long as they are unique representations in the system.
[0183] In step 703, the search engine constructs a search instruction based on the first coreference subject and the second coreference subject. For the above example, "ephedra" as a natural medicinal material entity and "system name" as a search field can be concatenated to construct the following search instruction:
[0184] {
[0185] "queries": [
[0186] {
[0187] "nmm": "Ephedra",
[0188] "field_list": ["System Name"],
[0189] "nmm_id": "nmm-0006",
[0190] "field_id_list": ["nmmsn"]
[0191] } ]
[0193] }
[0194] It is worth noting that in the search instruction "queries", nmm and field_list are still retained. These two fields will not be used directly in subsequent searches, but they can be embedded in the conversation history in the subsequent answers generated by the first learning model. This helps to prompt the context of the first learning model's search, thereby improving the accuracy of the first learning model.
[0195] In some embodiments, two copies of the first learning model can be used to extract NMM entities and search fields in parallel and then concatenate them. In this way, on the one hand, the construction time of the search instruction can be greatly reduced. On the other hand, since the extraction of NMM entities and search fields is independent of each other, when training the first learning model, the extraction of NMM entities and search fields can be trained separately, so as to better improve the accuracy of the first learning model. Of course, in this way, when the user's question contains more than one NMM entity and / or search field, all fields need to be searched for each NMM entity.
[0196] In other embodiments, a single first learning model may be used to simultaneously extract NMM entities and search fields, and then construct search instructions. In this way, the fields to be searched may be specified for each NMM, greatly reducing the search space and improving the search speed.
[0197] In some other embodiments, a serial extraction method of NMM entities and search fields may be adopted, for example, NMM entities are extracted first, then user questions and extracted NMM entities are spliced together, the first learning model is used again to extract search fields, and then a search instruction containing each NMM entity and its corresponding search field is generated. Alternatively, the search field may be extracted first, then user questions and extracted search fields are spliced together, the first learning model is used again to extract NMM entities, and then a search instruction containing each NMM entity and its corresponding search field is generated.
[0198] The construction methods of various search instructions described above can all be trained in a supervised manner, which will not be described in detail here.
[0199] In step 704, the search engine performs information retrieval in the natural medicinal material domain knowledge base based on the search instruction, and uses the information retrieval results as background knowledge associated with the latest user question; wherein the co-referential term graph is constructed by using the search engine in advance or in real time to retrieve each group of natural medicinal material relationships with synonymous relationships in the natural medicinal material relationship set, and the co-referential term graph contains all co-referential terms and reflects the synonymous relationship between each natural medicinal material term.
[0200] It is worth noting that when a coreference graph is pre-constructed using a search engine, the constructed coreference graph can be updated together with other collections such as terms in the natural medicinal materials domain knowledge base when they are updated, to ensure that the coreference graph is in the latest state.
[0201] The background knowledge obtained by the search engine after searching the natural medicinal materials domain knowledge base based on the above search instructions is as follows:
[0202] {
[0203] "search_results": [
[0204] {
[0205] "nmm_id": "nmm-0006",
[0206] "field_results": [
[0207] {
[0208] "field_id": "nmmsn",
[0209] "field_value": [["Ephedra equisetina vel intermedia vel sinica Stem-herbaceous"]]
[0210] } ]
[0212] }
[0213] }
[0214] The background knowledge obtained in the above manner is embedded into the user's conversation information to generate the following conversation history consisting of each round of conversation information and the corresponding background knowledge:
[0215] Chat History:
[0216] …
[0217] New User Message:
[0218] user_message_2: What is the system name of Ephedra?
[0219] background_knowledge_2:
[0220] {
[0221] "queries": [
[0222] {
[0223] "nmm": "Ephedra",
[0224] "field_list": ["System Name"],
[0225] "nmm_id": "nmm-0006",
[0226] "field_id_list": ["nmmsn"]
[0227] } ]
[0229] }
[0230] {
[0231] "search_results": [
[0232] {
[0233] "nmm_id": "nmm-0006",
[0234] "field_results": [
[0235] {
[0236] "field_id": "nmmsn",
[0237] "field_value": [["Ephedra equisetina vel intermedia vel sinica Stem-herbaceous"]]
[0238] } ]
[0240] }
[0241] }
[0242] Then, the conversation history is returned to the first learning model, so that the first learning model generates an answer to the user's question, as follows:
[0243] shennongchat_response_2: The systematic name of Ephedra is Ephedra equisetina velintermedia vel sinica Stem-herbaceous.
[0244] Figure 7 The graph search based on co-reference shown is a preferred search method in the system for acquiring natural medicinal material domain knowledge according to the embodiment of the present application, which can make the most of the structured knowledge in the natural medicinal material domain knowledge base in the present application. By co-referring to the subject, the corresponding standard information in other sets of the natural medicinal material professional knowledge base is very suitable for application scenarios such as vocabulary and terminology translation between multiple languages, standardized query or disambiguation.
[0245] In addition to the above-mentioned graph search based on coreference, the search engine of the present application can also perform vector search. To support the vector search of the search engine, the natural medicinal material domain knowledge base can be further configured to: store the natural medicinal material knowledge as a slice data set composed of multiple slice data, and store the first vector embedding representation corresponding to each slice data in the vector database, and each slice data is associated with a corresponding coreference subject.
[0246] The so-called slice refers to pre-dividing the natural medicinal material knowledge into multiple small pieces, each of which is slice data, and the granularity of the slice data can be varied, for example, it can contain one or more fields about natural medicinal materials, or it can also be part of the information of a field, etc., so that it can provide maximum flexibility, and this application does not make specific restrictions. Still taking the aforementioned nmm-0006 as an example, its knowledge set can be converted into the following slice data set: [
[0248] {
[0249] "content": {
[0250] "nmm_id": "nmm-0006",
[0251] "nmmsn": "Ephedra equisetina vel intermedia vel sinica Stem-herbaceous",
[0252] "nmmsn_zh": {
[0253] "en": "Ephedra equisetum or Ephedra intermedia or Ephedra herbaceous stem",
[0254] "pinyin": "mù zéi má huáng huò zhōng má huáng huò cǎo má
[0255] "
[0256] }
[0257] },
[0258] "embedding": [...]
[0259] },
[0260] {
[0261] "content": {
[0262] "nmm_id": "nmm-0006",
[0263] "nmmgn": "Ma-huang",
[0264] "nmmgn_zh": {
[0265] "en": "Ephedra",
[0266] "pinyin": "má huangng"
[0267] }
[0268] },
[0269] "embedding": [...]
[0270] },
[0271] {
[0272] "content": {
[0273] "nmm_id": "nmm-0006",
[0274] "nmm_type": "plant"
[0275] },
[0276] "embedding": [...]
[0277] },
[0278] {
[0279] "content": {
[0280] "nmm_id": "nmm-0006",
[0281] "species_origins": [
[0282] ["Ephedra equisetina", "Ephedra equisetina"],
[0283] "or",
[0284] ["Ephedra intermedia", "Ephedra intermedia"],
[0285] "or",
[0286] ["Ephedra sinica", "Ephedra sinica"] ]
[0288] },
[0289] "embedding": [...]
[0290] },
[0291] {
[0292] "content": {
[0293] "nmm_id": "nmm-0006",
[0294] "medicinal_parts": [["stem herbaceous", "herbaceous stem"]]
[0295] },
[0296] "embedding": [...]
[0297] },
[0298] {
[0299] "content": {
[0300] "nmm_id": "nmm-0006",
[0301] "special_descriptions": []
[0302] },
[0303] "embedding": [...]
[0304] },
[0305] {
[0306] "content": {
[0307] "nmm_id": "nmm-0006",
[0308] "processing_methods": []
[0309] },
[0310] "embedding": [...]
[0311] } ]
[0313] It can be seen from the above slice data set that each slice data is associated with a corresponding coreference subject and a corresponding first vector embedding representation, and the first vector will be stored in the vector database for retrieval.
[0314] Correspondingly, the first learning model is further configured to have the ability to extract information and generate vector embedding representations of text, and the first processing of the dialogue information containing the latest user question specifically includes: extracting natural medicinal material entities from the dialogue information, using the search engine to search in the co-referential subject graph to obtain the first co-referential subject corresponding to the natural medicinal material entity, constructing a user question containing the first co-referential subject, and generating a second vector embedding representation corresponding to the user question containing the first co-referential subject. It is worth noting that the first vector embedding representation corresponding to the slice data in the slice data set of natural medicinal material knowledge and the second vector embedding representation corresponding to the user question should use the same embedding method, such as using the same word embedding model or any other applicable model that can generate vector embedding representations based on text, and this application does not limit this.
[0315] Figure 8 FIG. 2 is a flow chart showing a vector search process according to an embodiment of the present application. Figure 8 As shown, in step 801, when using vector search to retrieve information from the natural medicinal material domain knowledge base, the first learning model can first extract the natural medicinal material entity from the dialogue information, use the search engine to search in the co-referential subject graph to obtain the first co-referential subject corresponding to the natural medicinal material entity, construct a user question containing the first co-referential subject, and generate a second vector embedding representation corresponding to the user question containing the first co-referential subject. Take the dialogue information containing the following user question as an example:
[0316] {
[0317] "user_message": "What is the species origin of Ephedra?"
[0318] }
[0319] The first learning model extracts natural medicinal material entities from the above conversation information: [
[0321] {
[0322] "nmm_list": ["Ephedra"]
[0323] } ]
[0325] Furthermore, the search engine is used to search in the coreference graph to obtain the first coreference corresponding to the natural medicinal material entity, that is, NMM ID:
[0326] {
[0327] "nmm_to_nmm_id": {
[0328] "Ephedra": "nmm-0006"
[0329] }
[0330] }
[0331] Among them, Figure 7 The co-referential term graph is constructed by searching each group of natural medicinal material relationships with synonymous relationships in the natural medicinal material relationship set in advance or in real time using the search engine. The co-referential term graph contains all co-referential terms and reflects the synonymous relationship between each natural medicinal material term.
[0332] Then, construct a natural language user question containing the first coreference subject, as follows:
[0333] {
[0334] "user_message": "What is the species origin of Ephedra?\n{\"nmm_to_nmm_id\":
[0335] {\"Ephedra\": \"nmm-0006\"}}"
[0336] }
[0337] Next, the second vector embedding representation corresponding to the user question containing the first coreference subject is generated as follows:
[0338] {
[0339] "user_message": "What is the species origin of Ephedra?\n{\"nmm_to_nmm_id\":
[0340] {\"Ephedra\": \"nmm-0006\"}}",
[0341] "user_message_embedding": [...]
[0342] }
[0343] like Figure 8 As shown, next, in step 802, the search engine can retrieve the matching first vector embedding representation in the vector database based on the second vector embedding representation, i.e., user_message_embedding, and use the set of slice data (each matching content) corresponding to each matching first vector embedding representation as the background knowledge associated with the latest user question. In this embodiment, the slice data corresponding to the matching first vector embedding representation is as follows: [
[0345] {
[0346] "content": {
[0347] "nmm_id": "nmm-0006",
[0348] "species_origins": [
[0349] ["Ephedra equisetina", "Ephedra equisetina"],
[0350] "or",
[0351] ["Ephedra intermedia", "Ephedra intermedia"],
[0352] "or",
[0353] ["Ephedra sinica", "Ephedra sinica"] ]
[0355] },
[0356] "embedding": [...]
[0357] }, ]
[0359] Specifically, when comparing the similarity between user_message_embedding and all first vector embedding representations in the vector database, for example, methods including but not limited to calculating cosine similarity between vectors can be used to obtain all slice data whose relevance to the user's question meets a preset standard. On the basis of quickly and accurately identifying natural medicinal material related information associated with the user's question, the search engine parameters can be configured to allow it to flexibly and variably return 1 or n slice data.
[0360] On this basis, background knowledge can be further embedded into the user's conversation information to generate the following conversation history consisting of each round of conversation information and the corresponding background knowledge:
[0361] Chat History:
[0362] …
[0363] New User Message:
[0364] user_message_2: What is the species origin of Ephedra?
[0365] background_knowledge_2:
[0366] {
[0367] "nmm_to_nmm_id": {
[0368] "Ephedra": "nmm-0006"
[0369] }
[0370] } [
[0372] {
[0373] "content": {
[0374] "nmm_id": "nmm-0006",
[0375] "species_origins": [
[0376] ["Ephedra equisetina", "Ephedra equisetina"],
[0377] "or",
[0378] ["Ephedra intermedia", "Ephedra intermedia"],
[0379] "or",
[0380] ["Ephedra sinica", "Ephedra sinica"] ]
[0382] }
[0383] } ]
[0385] Then, the conversation history may be returned to the first learning model so that the first learning model generates an answer to the user's question, as follows:
[0386] shennongchat_response_2: The species origin of ephedra is Ephedra equisetina or Ephedra intermedia or Ephedra sinica.
[0387] Figure 8 The vector search method shown can accept entire sentences or paragraphs as search inputs, and transform these texts into vector space through embedding, so that the transformed vector embedding representation contains the semantic essence of the sentence or paragraph. Subsequently, by determining the similarity between the vector embedding representations, the knowledge and information that are semantically closely related to the text to be queried can be quickly identified and retrieved, thereby providing users with more relevant and accurate answers.
[0388] In other embodiments, full-text search can also be used to obtain answers to user questions. To this end, the natural medicinal material domain knowledge base can be further configured to predefine index fields for full-text search, and store the natural medicinal material domain knowledge as a searchable document with an inverted index of each index field. Among them, the inverted index is to sort the searchable documents with the same index field according to the relevance / importance of each document, and store each index field as an easy-to-retrieve "dictionary tree" so that the index field can be found very quickly in the "dictionary tree", and then the corresponding document can be found according to the index field. In addition, the first learning model is further configured to have word segmentation capabilities, information extraction capabilities and the ability to generate document summaries, and the first processing of the dialogue information containing the latest user question includes extracting full-text search keywords based on the word segmentation of the dialogue information.
[0389] Fig. 9 FIG. 2 is a flow chart showing a full-text search process according to an embodiment of the present application. Fig. 9 As shown, in step 901, the first learning model first extracts full-text search keywords based on word segmentation of the dialogue information.
[0390] In step 902, the search engine retrieves matching searchable documents based on the full-text search keywords and the inverted index while performing information retrieval on the natural medicinal material domain knowledge base using a full-text search.
[0391] In step 903, the searchable document is used as background knowledge associated with the latest user question, or the first learning model is used to perform document summary and / or key information extraction on a set of matching searchable documents, and the generated document summary and / or key information is used as background knowledge associated with the latest user question.
[0392] In other embodiments, when full-text search is used to retrieve information from the natural medicinal materials domain knowledge base, the search engine can be further configured to: use other external search systems to search the full-text search keywords to generate Internet search results, and merge the Internet search results with the document summaries and / or key information generated by the information retrieval of the natural medicinal materials domain knowledge base to generate background knowledge associated with the latest user questions, wherein the Internet search results have a lower fusion priority.
[0393] As mentioned above, the full-text search mode allows efficient search and retrieval of relevant information, and is suitable for application scenarios such as approximate matching, phrase changes, spelling errors, typos or alternative spellings. In addition, by pre-establishing an inverted index for each searchable document in the natural medicinal materials domain knowledge base, the full-text mode has higher system flexibility and user-friendliness.
[0394] In some embodiments, the specific use of one or more combinations of coreference-based graph search, vector search, and full-text search can be determined by the user through the selection of the search mode, or the first learning model can determine the search mode used through the features in the dialogue information with the user, and this application does not limit this. By applying various search modes individually or in combination, the search results can be both accurate and comprehensive, thereby improving the overall usability of the system in this application.
[0395] In addition, although exemplary embodiments have been described herein, the scope includes any and all embodiments based on the present application with equivalent elements, modifications, omissions, combinations (e.g., various embodiments intersecting schemes), adaptations or changes. The elements in the claims are to be interpreted broadly based on the language adopted in the claims, and are not limited to the examples described in this specification or during the practice of this application, and the examples are to be interpreted as non-exclusive. Therefore, this specification and examples are intended to be considered as examples only, and the true scope and spirit are indicated by the following claims and the full scope of their equivalents.
[0396] The above description is intended to be illustrative rather than restrictive. For example, the above examples (or one or more schemes thereof) may be used in combination with each other. For example, a person of ordinary skill in the art may use other embodiments when reading the above description. In addition, in the above-mentioned specific embodiments, various features may be grouped together to simplify the present application. This should not be interpreted as an intention that a disclosed feature that is not claimed for protection is necessary for any claim. On the contrary, the subject matter of the present application may be less than all the features of a particular disclosed embodiment. Thus, the following claims are incorporated herein as examples or embodiments in the specific embodiments, wherein each claim is independently a separate embodiment, and it is considered that these embodiments may be combined with each other in various combinations or arrangements. The scope of the present invention should be determined with reference to the appended claims and the full scope of equivalent forms to which these claims are entitled.
[0397] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present invention. The protection scope of the present invention is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present invention within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present invention.
Claims
1. A system for acquiring domain-specific knowledge of natural medicinal materials, characterized in that: The system includes a conversation application, a first learning model, a search engine, and a natural medicinal material domain-specific knowledge base. The dialog application is configured to: Providing a user interaction interface for a user, receiving dialogue information input by the user on the user interaction interface, the dialogue information including a user question intended to obtain domain-specific knowledge of natural medicinal materials; and presenting to the user an answer to the user question generated by the first learning model; The first learning model is configured as: Based on the conversation history with the user, determining whether the conversation history is sufficient to answer the latest user question; If it is determined that the conversation history is sufficient to answer the latest user question, generating an answer to the latest user question based on the conversation history; When the first learning model determines that the conversation history is insufficient to answer the latest user question, the conversation information including the latest user question is first processed, and the conversation information after the first processing is used to interact with the search engine; the first learning model is further configured to have information extraction capability, and the first processing of the conversation information including the latest user question specifically includes extracting natural medicinal material entities and search fields from the conversation information; The search engine is configured to: Based on the first processed dialogue information, at least one of co-reference-based graph search, vector search, and full-text search is used to perform information retrieval on the natural medicinal material domain-specific knowledge base to obtain background knowledge associated with the latest user question, embed the background knowledge into the user's dialogue information to generate a dialogue history consisting of each round of dialogue information and the corresponding background knowledge, and return the dialogue history to the first learning model; In the case of using graph search based on coreference to perform information retrieval on the natural medicinal material domain knowledge base: search the natural medicinal material entity and the search field in the coreference subject graph to obtain a first coreference subject corresponding to the natural medicinal material entity and a second coreference subject corresponding to the search field; construct a search instruction based on the first coreference subject and the second coreference subject; based on the search instruction, perform information retrieval on the natural medicinal material domain knowledge base, and use the information retrieval result as background knowledge associated with the latest user question; the natural medicinal material domain knowledge base is configured to include natural medicinal material systematic naming, structured and standardized natural medicinal material knowledge, natural medicinal material terminology, natural medicinal material relationship set and natural medicinal material related text, wherein the natural medicinal material relationship set includes multiple groups of natural medicinal material relationships, the natural medicinal material relationships are represented as manually annotated [source object, relationship, target object] triples, the source object and the target object at least include natural medicinal material terminology, and the relationship includes at least a synonym relationship; Each of the natural medicinal material terms is labeled with the unique ID number of the corresponding natural medicinal material in the natural medicinal material domain knowledge base as the corresponding unique co-referential subject, and the search engine is used in advance or in real time to search for each group of natural medicinal material relationships with synonymous relationships in the natural medicinal material relationship set to construct a co-referential subject graph, which contains all co-referential subjects and reflects the synonymous relationship between each natural medicinal material term, so that all natural medicinal material terms with the same concept, as well as natural medicinal material terms with synonymous relationships with these natural medicinal material terms, can ultimately point to the unique co-referential subject through the search engine.
2. The system according to claim 1, characterized in that The dialogue application is further configured to provide dialogue guidance information to the user on the user interaction interface, wherein the dialogue guidance information includes sample questions for the user to click to view answers to the sample questions.
3. The system according to claim 1 or 2, characterized in that: The dialogue information is dialogue information in a natural language form.
4. The system according to claim 3, characterized in that The dialogue information is dialogue information in natural language form in different languages.
5. The system according to claim 1 or 2, characterized in that: The dialog application is further configured to: In a case where the conversation information contains information related to the answer style expected by the user, an answer to the user's question generated by the first learning model and matching the answer style related information is presented to the user, wherein the answer style related information includes at least one of the language of the answer, the format of the answer, and the length of the answer.
6. The system according to claim 5, characterized in that The languages of the answers include at least Chinese and English.
7. The system according to claim 5, characterized in that The format of the answer includes at least JSON.
8. The system according to claim 1 or 2, characterized in that: The dialogue information is multiple rounds, and the dialogue application is further configured as follows: Receiving multiple rounds of dialogue information input by a user on the user interaction interface; Answers to user questions contained in each round of dialogue information generated by the first learning model are presented to the user.
9. The system according to claim 1 or 2, characterized in that: The conversation application is further configured to not provide answers to user questions that are not related to natural medicinal materials, Chinese medicinal materials, or traditional Chinese medicine.
10. The system according to claim 1 or 2, characterized in that: The dialog application is further configured to: The user interaction interface provides options for collecting, downloading and quoting the user's previous conversation records, so that the user can add previous conversation records to the user's private information, or download original data associated with natural medicinal material knowledge, or quote pages of each conversation record.
11. The system according to claim 1 or 2, characterized in that: The dialog application is further configured to: A user evaluation option is set on the user interaction interface so as to improve and train the first learning model using the evaluation information submitted by the user.
12. The system according to claim 1 or 2, characterized in that: The dialog application is further configured such that: the user invokes the dialog application by accessing a web page.
13. The system according to claim 1 or 2, characterized in that: The relevant texts of natural medicinal materials shall at least include the "Chinese Pharmacopoeia: 2020 Edition: Volume 1" or an updated and implemented version of the "Chinese Pharmacopoeia"; The structured and standardized natural medicinal material knowledge is obtained by structuring and standardizing the natural medicinal material related information in the "Chinese Pharmacopoeia: 2020 Edition: Volume 1" or an updated and implemented version of the "Chinese Pharmacopoeia", and covers all natural medicinal materials in the "Chinese Pharmacopoeia: 2020 Edition: Volume 1" or an updated and implemented version of the "Chinese Pharmacopoeia"; The relationship also includes a containment relationship, a derived / superior relationship, a derived / subordinate relationship, and a peer relationship.
14. The system according to claim 1, characterized in that The natural medicinal material domain-specific knowledge base is further configured to: store the natural medicinal material knowledge as a slice data set consisting of a plurality of slice data, and store the first vector embedding representation corresponding to each slice data in a vector database, wherein each slice data is associated with a corresponding coreference subject; The first learning model is further configured to have information extraction capabilities and the ability to generate vector embedding representations of texts, and the first processing of the dialogue information containing the latest user question specifically includes: extracting a natural medicinal material entity from the dialogue information, using the search engine to search in a co-referential subject graph to obtain a first co-referential subject corresponding to the natural medicinal material entity, constructing a user question containing the first co-referential subject, and generating a second vector embedding representation corresponding to the user question containing the first co-referential subject; The search engine is further configured to, when using vector search to retrieve information from the natural medicinal material domain knowledge base: based on the second vector embedding representation, retrieve the matching first vector embedding representation in the vector database, and use the set of slice data corresponding to each matching first vector embedding representation as background knowledge associated with the latest user question.
15. The system according to claim 1, characterized in that The natural medicinal material domain-specific knowledge base is further configured to: predefine index fields for full-text search, and store the natural medicinal material domain-specific knowledge as a searchable document with an inverted index of each index field; The first learning model is further configured to have word segmentation capabilities, information extraction capabilities, and document summary generation capabilities, and the first processing of the dialogue information containing the latest user question specifically includes: extracting full-text search keywords based on word segmentation of the dialogue information; The search engine is further configured to, when using full-text search to retrieve information from the natural medicinal materials domain knowledge base: based on the full-text search keywords and the inverted index, retrieve matching searchable documents; use the searchable documents as background knowledge associated with the latest user questions, or use the first learning model to perform document summaries and / or key information extraction on a collection of matching searchable documents, and use the generated document summaries and / or key information as background knowledge associated with the latest user questions.
16. The system according to claim 15, characterized in that The search engine is further configured to, when full-text search is used to retrieve information from the natural medicinal material domain knowledge base: Using other external search systems to search the full-text search keywords to generate Internet search results; The Internet search results are integrated with document summaries and / or key information generated by information retrieval of the natural medicinal material domain knowledge base to generate the latest background knowledge associated with the user's question, wherein the Internet search results have a lower integration priority.
Citation Information
Patent Citations
Retrieval method and device of knowledge base and storage medium
CN116756295A
Traditional Chinese medicine video retrieval model based on knowledge graph
CN116805013A
Chat reply generation method and device based on keyword knowledge retrieval
CN116955579A
Large language model intelligent inquiry dialogue method, system and device and medium
CN117093679A
