Knowledge base retrieval method, device, computing equipment and medium

By extracting multiple dimensions of retrieval information and performing structured retrieval in the knowledge base, it solves the problem of poor keyword search results in the operating system kernel knowledge base and achieves more accurate search results.

CN114722145BActive Publication Date: 2025-01-24ALIBABA (CHINA) CO LTD

Patent Information

Application Number
CN202210259224.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-14
Publication Date
2025-01-24
Estimated Expiration
2042-03-14

AI Technical Summary

Technical Problem

The current search method of the kernel-related knowledge base of the operating system mainly relies on keyword search, and the results are not good, and the kernel knowledge base articles have proprietary characteristics, making it difficult to achieve accurate retrieval in ordinary knowledge bases.

Method used

A knowledge base retrieval method is proposed. By obtaining user input information, multiple dimensions of retrieval information related to the set knowledge field are extracted, and structured retrieval is performed in the knowledge base to match the retrieval information of each dimension with the knowledge base articles. information items to obtain the target retrieval results.

Benefits of technology

Efficient search of the operating system-specific knowledge base is realized, which can more accurately match user needs and improve retrieval results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114722145B_ABST
    Figure CN114722145B_ABST
Patent Text Reader

Abstract

One or more embodiments of the present application provide a knowledge base search method, apparatus, computing device and medium. The present application obtains input information from a user; extracts search information of at least one dimension related to a set knowledge domain based on the input information; searches in the knowledge base based on the search information of at least one dimension, wherein the information items contained in the knowledge base articles stored in the knowledge base are determined based on the dimensions of the search information; obtains a target search result based on the matching results of the search information of each dimension with the information items in each knowledge base article, and obtains the target search result based on the matching degree of the information items in each knowledge base article. By structurally storing the information items related to the set knowledge domain in the knowledge base, and searching in the information items of the knowledge base articles based on the search information of multiple dimensions of the input information, more accurate search results about knowledge related to the set knowledge domain can be obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] One or more embodiments of the present specification relate to the field of data processing technology, and in particular, to a knowledge base retrieval method, apparatus, computing device, and medium. Background Art

[0002] With the continuous expansion of personnel involved in the development of operating system kernels, a large number of kernel-related articles have been accumulated. These articles include knowledge popularization, problem location experience, tool usage methods, debugging technology introductions, patches, etc. Developers can read and learn related articles and locate similar problems based on these articles. However, the current search method for finding related articles is generally keyword search, which has poor search results. Kernel knowledge base articles generally have some proprietary features, and it is difficult to get the desired search results in ordinary knowledge bases. Therefore, it is necessary to propose a knowledge base retrieval solution to solve the search problem of the operating system-specific knowledge base. Summary of the invention

[0003] In view of this, one or more embodiments of the present specification provide a knowledge base retrieval method, apparatus, computing device, and medium.

[0004] To achieve the above objectives, one or more embodiments of this specification provide the following technical solutions.

[0005] According to a first aspect of one or more embodiments of this specification, a knowledge base retrieval method is proposed, the method comprising:

[0006] Get input information from the user;

[0007] Extracting search information of at least one dimension related to a set knowledge domain according to the input information;

[0008] Searching in a knowledge base according to the search information of the at least one dimension, wherein the information items contained in the knowledge base articles stored in the knowledge base are determined according to the dimension of the search information;

[0009] The target retrieval results are obtained based on the matching results of the retrieval information of each dimension with the information items in each knowledge base article.

[0010] In some embodiments, when the set knowledge domain includes the operating system knowledge domain, the input information includes at least one of a keyword, operating system kernel information, a device IP address, and an original computer kernel log.

[0011] In some embodiments, when the input information includes a device IP address, extracting at least one dimension of search information related to a set knowledge domain according to the input information includes:

[0012] Obtaining information related to the operating system of the corresponding device according to the IP address of the device;

[0013] Extract retrieval information of multiple dimensions based on the acquired information.

[0014] In some embodiments, at least one dimension of the retrieved information includes at least one of an operating system-related subsystem category, a kernel log, a kernel function, a kernel module, a kernel interface, a kernel command, and a keyword.

[0015] In some embodiments, extracting at least one dimension of search information related to a set knowledge domain according to the input information includes:

[0016] In the case where the input information only includes keywords, the keywords in the input information are used as search information of the keyword dimension;

[0017] When the input information includes a keyword and also includes information other than the keyword, the keyword and the keyword extracted from the information other than the keyword are used as search information in the keyword dimension.

[0018] In some embodiments, the matching results of the search information in each dimension with the information items in each knowledge base article to obtain the target search result includes:

[0019] For each knowledge base article, obtaining a first matching score between the search information of each dimension corresponding to the input information and the information item in the knowledge base article;

[0020] Obtaining a second matching score of the knowledge base article according to the first matching score corresponding to the search information of each dimension;

[0021] The target search result is obtained according to the second matching score of each knowledge base article in the knowledge base.

[0022] In some embodiments, the search information of each dimension has a corresponding weight; the second matching score of the knowledge base article is obtained according to the first matching score corresponding to the search information of each dimension, including:

[0023] According to the corresponding weight of the search information of each dimension, the first matching scores of each dimension are weighted and summed to obtain the second matching score of the knowledge base article.

[0024] In some embodiments, the multiple dimensions of the retrieved information further include a call stack, and the knowledge base article includes a call stack item;

[0025] The step of obtaining the target search result according to the second matching score of each knowledge base article in the knowledge base includes:

[0026] Using a call stack matching algorithm, obtaining a third matching score between the retrieval information of the call stack dimension and the call stack item in the knowledge base article;

[0027] The target search result is obtained according to the second matching score and the third matching score of each knowledge base article in the knowledge base.

[0028] According to a second aspect of one or more embodiments of this specification, a knowledge base retrieval device is provided, the device comprising:

[0029] A first acquisition unit, used to acquire input information from a user;

[0030] A second acquisition unit, configured to extract search information of at least one dimension related to a set knowledge domain according to the input information;

[0031] A retrieval unit, configured to search in a knowledge base according to the retrieval information of the at least one dimension, wherein the information items contained in the knowledge base articles stored in the knowledge base are determined according to the dimension of the retrieval information;

[0032] The third acquisition unit is used to obtain the target search result according to the matching result between the search information of each dimension and the information items in each knowledge base article.

[0033] In some embodiments, when the set knowledge domain includes the operating system knowledge domain, the input information includes at least one of a keyword, operating system kernel information, a device IP address, and an original computer kernel log.

[0034] In some embodiments, when the input information includes a device IP address, the second obtaining unit is specifically configured to:

[0035] Obtaining information related to the operating system of the corresponding device according to the IP address of the device;

[0036] Extract retrieval information of multiple dimensions based on the acquired information.

[0037] In some embodiments, at least one dimension of the retrieved information includes at least one of an operating system-related subsystem category, a kernel log, a kernel function, a kernel module, a kernel interface, a kernel command, and a keyword.

[0038] In some embodiments, the second acquiring unit is specifically configured to:

[0039] In the case where the input information only includes keywords, the keywords in the input information are used as search information of the keyword dimension;

[0040] When the input information includes a keyword and also includes information other than the keyword, the keyword and the keyword extracted from the information other than the keyword are used as search information in the keyword dimension.

[0041] In some embodiments, the third acquisition unit is specifically used to:

[0042] For each knowledge base article, obtaining a first matching score between the search information of each dimension corresponding to the input information and the information item in the knowledge base article;

[0043] Obtaining a second matching score of the knowledge base article according to the first matching score corresponding to the search information of each dimension;

[0044] The target search result is obtained according to the second matching score of each knowledge base article in the knowledge base.

[0045] In some embodiments, the search information of each dimension has a corresponding weight; when the third acquisition unit is used to obtain the second matching score of the knowledge base article according to the first matching score corresponding to the search information of each dimension, it is specifically used to:

[0046] According to the corresponding weight of the search information of each dimension, the first matching scores of each dimension are weighted and summed to obtain the second matching score of the knowledge base article.

[0047] In some embodiments, the multiple dimensions of the retrieved information further include a call stack, and the knowledge base article includes a call stack item;

[0048] When the third acquisition unit is used to obtain the target search result according to the second matching score of each knowledge base article in the knowledge base, it is specifically used to:

[0049] Using a call stack matching algorithm, obtaining a third matching score between the retrieval information of the call stack dimension and the call stack item in the knowledge base article;

[0050] The target search result is obtained according to the second matching score and the third matching score of each knowledge base article in the knowledge base.

[0051] According to a third aspect of one or more embodiments of this specification, a computing device is provided, the computing device comprising:

[0052] processor;

[0053] a memory for storing processor-executable instructions;

[0054] The processor executes executable instructions to implement the operations performed by the knowledge base retrieval method provided in the first aspect and any embodiment of the first aspect.

[0055] According to a fourth aspect of one or more embodiments of this specification, a computer-readable storage medium is proposed, on which computer instructions are stored. When the instructions are executed by a processor, the operations performed by the knowledge base retrieval method provided in the above-mentioned first aspect and any embodiment of the first aspect are implemented.

[0056] According to the fifth aspect of one or more embodiments of this specification, a computer program product is proposed, including a computer program, which, when executed by a processor, implements the operations performed by the knowledge base retrieval method provided in the above-mentioned first aspect and any embodiment of the first aspect.

[0057] The present application obtains input information from a user; extracts search information of at least one dimension related to a set knowledge domain according to the input information; searches in a knowledge base according to the search information of at least one dimension, wherein the information items contained in the knowledge base articles stored in the knowledge base are determined according to the dimension of the search information; obtains a target search result according to the matching results of the search information of each dimension and the information items in each knowledge base article, and obtains the target search result. By structurally storing the information items related to the set knowledge domain in the knowledge base, and searching in the information items of the knowledge base articles according to the search information of multiple dimensions of the input information, more accurate search results for knowledge related to the set knowledge domain can be obtained. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 It is a flowchart of a knowledge base retrieval method provided by an exemplary embodiment.

[0059] Figure 2 It is a schematic diagram of a knowledge base retrieval method provided by an exemplary embodiment.

[0060] Figure 3 It is a block diagram of a knowledge base retrieval device provided by an exemplary embodiment.

[0061] Figure 4 It is a schematic structural diagram of a computing device provided by an exemplary embodiment. DETAILED DESCRIPTION

[0062] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of this specification. Instead, they are merely examples of devices and methods consistent with some aspects of one or more embodiments of this specification as detailed in the appended claims.

[0063] It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the steps included in the method may be more or less than those described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may be combined into a single step for description in other embodiments.

[0064] The present application provides a knowledge base retrieval method for accurately retrieving professional knowledge in a set knowledge field. The knowledge base retrieval method can be executed by a computing device, which can be a server, such as a server, multiple servers, a server cluster, a cloud computing platform, etc., or a terminal device, such as a desktop computer, a portable computer, a supercomputer, etc. The present application does not limit the specific type of the computing device.

[0065] See also Figure 1 , Figure 1 is a flowchart of a knowledge base retrieval method provided by an exemplary embodiment, the method comprising:

[0066] Step 101: Obtain input information from a user.

[0067] The input information may be a keyword input by a user for retrieval, or may be special information set in a knowledge field.

[0068] Taking the operating system related information to be retrieved as an example, the professional information may be operating system related information, for example, the user may input one or more of kernel log, kernel function, kernel module, kernel interface, kernel command, and call stack.

[0069] In the case where the information to be retrieved is related to the operating system, the user can also enter the device IP. Based on the device IP, the dedicated information related to the operating system can be automatically extracted from the corresponding device for subsequent retrieval.

[0070] In addition, the user can also input the original kernel log, and the original kernel log can be input in the form of text or in the form of screenshot.

[0071] Those skilled in the art should understand that, when the information to be retrieved is operating system related information, the input information may also include other types of input information, and the present disclosure does not limit this.

[0072] Step 102: extracting search information of at least one dimension related to a set knowledge domain according to the input information.

[0073] In this step, the input information may be retrieved and extracted in multiple dimensions, wherein the dimension refers to a type or an aspect of knowledge included in the set knowledge domain.

[0074] Still taking the operating system related information to be retrieved as an example, the information on the subsystem category, kernel log, kernel function, kernel module, command, call stack, keyword, etc. of the operating system can be obtained by performing category extraction, log extraction, function extraction, module extraction, command extraction, call stack extraction, and mixed keyword extraction on the input information. Those skilled in the art should understand that information on other dimensions can also be obtained through other information extraction methods, and the above is only an example and does not limit the information dimension.

[0075] Step 103: Search in the knowledge base according to the search information of the at least one dimension.

[0076] The information items contained in the knowledge base articles stored in the knowledge base are determined according to the dimensions of the search information.

[0077] In some embodiments, the knowledge base article may be structured, and then the structured data may be stored in a storage engine corresponding to the knowledge base. The structuring of the knowledge base article is based on the dimension of the retrieved information in step 102, that is, the multiple information items obtained after structuring are related to the dimension of the retrieved information.

[0078] Assuming that the multiple dimensions of the retrieval information include subsystem categories, kernel logs, kernel functions, kernel modules, kernel interfaces, kernel commands, and keywords related to the operating system, the structured knowledge base article accordingly includes category items, log items, function items, module items, interface items, and command items. In addition, the structured knowledge base article also includes index items and text items. The index value of the index item of each knowledge base article can be globally unique, and the text item corresponds to the text content of the knowledge base article.

[0079] In one example, the corresponding information items in the knowledge base can be searched in each dimension of the search information. For example, for the log dimension, the log items corresponding to each index in the knowledge base can be searched based on the search information on this dimension, i.e., the log information. Of course, a comprehensive search can also be performed in each information item in the knowledge base. For the search information on the keyword dimension, the search is performed in all information items in the knowledge base.

[0080] Step 104: Obtain target search results based on the matching results of the search information in each dimension with the information items in each knowledge base article.

[0081] In one example, the matching degree between the search information of each dimension and the information items in each knowledge base article can be used to determine the knowledge base articles that meet the matching degree requirements with the input information, and display these knowledge base articles from high to low in terms of matching degree as target search results.

[0082] In one example, information items in knowledge base articles that meet the matching degree requirements can also be displayed in each dimension respectively, and these information items can be displayed from high to low according to the matching degree. Through the information items, the corresponding knowledge base articles can be obtained, so that users can view the search results from each dimension respectively.

[0083] The present application obtains input information from a user; extracts search information of at least one dimension related to a set knowledge domain according to the input information; searches in a knowledge base according to the search information of at least one dimension, wherein the information items contained in the knowledge base articles stored in the knowledge base are determined according to the dimension of the search information; obtains a target search result according to the matching results of the search information of each dimension and the information items in each knowledge base article, and obtains the target search result. By structurally storing the information items related to the set knowledge domain in the knowledge base, and searching in the information items of the knowledge base articles according to the search information of multiple dimensions of the input information, more accurate search results for knowledge related to the set knowledge domain can be obtained.

[0084] After introducing the basic implementation process of the present application, the knowledge base retrieval method provided by the present application is further explained below in combination with multiple optional embodiments of the present application.

[0085] In some embodiments, when the set knowledge domain includes the operating system knowledge domain, the search information input by the user may include at least one of a keyword, operating system kernel information, a device IP address, and an original computer kernel log.

[0086] The keyword may be a conventional keyword used for searching. For example, when a user wants to know relevant knowledge about a computer operating system crash, the user may input "crash" as a keyword for subsequent searching.

[0087] Since the search information about the operating system usually has some proprietary features, in the embodiment of the present disclosure, the received retrieval information also includes operation information kernel information, that is, professional information of the operating system, such as kernel logs, kernel functions, kernel interfaces, kernel modules, shell commands, call stacks, etc., and searches can be performed in the knowledge base based on these professional information to obtain retrieval results related to these professional information.

[0088] In the case where the received search information includes the device IP address, the execution subject of the knowledge base search method can obtain the information related to the operating system of the corresponding device according to the device IP address, and extract the search information of multiple dimensions according to the requested information. In some cases, after obtaining the device IP address, the execution subject of the knowledge base search method can also send the device IP address to other computing devices so that the computing device can remotely log in to the corresponding device to obtain information related to the operating system, and then return the relevant information to the execution subject.

[0089] The original computer kernel log may be in text form or in picture form, for example, it may be a screenshot of the kernel log displayed on a computer screen.

[0090] For example, in the operating system knowledge base retrieval method, the input information from the user may be, for example, "crash, computer IP address XXX.XXX.XXX.XXX, function is...", then based on the input information, the retrieval information "crash" on the keyword dimension, the kernel log of the computer corresponding to the IP address, and the kernel function can be extracted. The retrieval information on each dimension can be matched with the information items in each knowledge base article in the knowledge base to obtain the target retrieval result.

[0091] In the disclosed embodiment, by receiving search information in various forms, a more convenient input method can be provided to the user, and when the search information input by the user is more specific and comprehensive, the search results obtained will be more in line with the user's expectations, thereby improving the search effect.

[0092] In some embodiments, the multiple dimensions of the extracted retrieval information include at least two of the subsystem categories, kernel logs, kernel functions, kernel modules, kernel interfaces, kernel commands, call stacks, and keywords related to the operating system. The subsystem categories include scheduling subsystems, memory subsystems, network subsystems, etc. The kernel interfaces include proc interfaces, through which communication between kernel space and user space can be used. The meanings of the other dimensions are known to those skilled in the art and will not be repeated here.

[0093] In some embodiments, when the input information only includes keywords, the keywords in the input information are used as search information of the keyword dimension, and the text items of each knowledge base article in the knowledge base are searched according to the search information to obtain the target search result. That is, when the input information only includes keywords, the text field of the knowledge base is searched according to the keywords to obtain the target search result.

[0094] In some embodiments, when the input information includes keywords and also includes information other than keywords, such as at least one of operating system kernel information, device IP address, and original computer kernel log, the keywords and keywords extracted from the information other than the keywords are used as retrieval information of the keyword dimension, and the keyword dimension in this case can be called a mixed keyword dimension.

[0095] For example, if the input information from the user includes the keyword "crash" and a kernel function, the search information on the keyword dimension may be "crash" and the keyword extracted from the kernel function.

[0096] In some embodiments, the target search result may be obtained in the following manner.

[0097] First, for each knowledge base article, a first matching score between the retrieval information of each dimension corresponding to the input information and the information item in the knowledge base article is obtained.

[0098] The dimensions of the information items contained in each structured knowledge base article correspond to the dimensions of the search information. For example, when the dimensions of the search information include keywords, kernel functions, and kernel logs, the information items contained in the knowledge base article are function items and log items, respectively. In other words, in addition to the keyword dimension, the information items in the knowledge base article are determined according to the dimensions of the search information.

[0099] For any knowledge base article in the knowledge base, the search information of each dimension corresponding to the input information is matched with the information items in the knowledge base article respectively, and a matching score is obtained according to the matching degree. Specifically, for the keyword dimension, the keyword can be matched with all the information items of the knowledge base article, and the matching degree with each information item is comprehensively considered to obtain the first matching score corresponding to the keyword dimension; and for the search information of other dimensions, such as kernel logs, kernel functions, etc., the search information of the dimension can be matched with the information items of the corresponding dimension in the knowledge base article to obtain the first matching score.

[0100] After obtaining the first matching score of the retrieval information of each dimension, the second matching score of the knowledge base article can be obtained.

[0101] Finally, according to the second matching score of each knowledge base article in the knowledge base, the display order of the knowledge base articles is determined to obtain the target search result.

[0102] In the disclosed embodiment, the degree of match between the knowledge base article and the input information is determined based on the degree of match between each information item in each knowledge base article and the retrieval information of each dimension corresponding to the input information, and the matched knowledge base article is displayed based on the degree of match, so that knowledge base articles that meet the search intent can be displayed to the user more accurately.

[0103] In some embodiments, corresponding weights may be set for the retrieval information of each dimension. For example, corresponding weights may be set for dimensions such as subsystem category, kernel log, kernel function, and kernel module. The specific value of the weight corresponding to each dimension may be specifically set according to the retrieval requirements. For example, if it is desired to obtain knowledge base articles with a high degree of match with the kernel log, the weight corresponding to the kernel log may be set higher than other dimensions.

[0104] When the weight corresponding to the search information of each dimension is determined, the first matching scores of each dimension may be weighted summed according to the corresponding weight of the search information of each dimension to obtain the second matching score of the knowledge base article.

[0105] In the embodiment of the present disclosure, by setting corresponding weights for the search information of each dimension, it is possible to increase the attention paid to the search information of the specified dimension, so that the search results are more in line with the needs of the user.

[0106] In some embodiments, the multiple dimensions of the retrieval information further include a call stack, and the knowledge base article includes a call stack item. In this case, a call stack matching algorithm can be used to obtain a third matching score between the retrieval information of the call stack dimension and the call stack item in the knowledge base article; and the display order of the knowledge base articles is determined according to the second matching score and the third matching score of each knowledge base article in the knowledge base.

[0107] In the disclosed embodiment, the display order of the knowledge base articles may be further determined according to the matching degree between the call stack information in the search information and the call stack items in the knowledge base articles, so that the search results may be further optimized.

[0108] Figure 2 This is a schematic diagram of a knowledge base retrieval method provided by an exemplary embodiment. Figure 2 The knowledge base retrieval method is explained.

[0109] In the case of searching the knowledge base in the operating system knowledge domain, the input information from the user may include keywords, operating system kernel information, device IP address, and original computer kernel log. After obtaining the input information, multiple dimensions of search information related to the operating system knowledge domain can be extracted from the input information. Figure 2 As shown, the following retrieval information can be obtained from the retrieval information through log extraction, category extraction, function extraction, interface extraction, module extraction, command extraction, call stack extraction, and keyword extraction: category, log, function, interface, module, command, mixed keyword, call stack. In addition, the retrieval information of each dimension is set with a corresponding weight, and the specific data of the weight of each dimension can be determined according to the degree of attention paid to the dimension.

[0110] The search engine for retrieval, that is, the knowledge base, has a retrieval domain corresponding to the dimension of the retrieval information, such as Figure 2 As shown, the search may include a category domain, a log domain, a function domain, an interface domain, a module domain, a command domain, a mixed keyword domain, and a call stack domain. In addition, the search engine also includes a text domain.

[0111] Correspondingly, the knowledge base articles stored in the knowledge base are also structured according to the dimensions of the search information. The information items in the structured knowledge base articles include class items (Class), log items (Log), function items (Func), interface items (Interface), module items (Module), and command items (Command). In addition, the knowledge base articles also include text items (Text) and index items (Index).

[0112] For each knowledge base article (each index value), obtain the first matching score between the retrieval information of each dimension corresponding to the input information and the information item in the knowledge base article; obtain the second matching score of the knowledge base article based on the first matching score corresponding to the retrieval information of each dimension; and preliminarily obtain the ranking results of each knowledge base article based on the second matching score of each knowledge base article in the knowledge base.

[0113] In addition, a call stack matching algorithm may be used to obtain a third matching score between the retrieval information of the call stack dimension and the call stack items in the knowledge base article, and the preliminary sorting results of each knowledge base article may be adjusted according to the third matching score to obtain a target retrieval result.

[0114] Corresponding to the aforementioned method embodiments, this specification also provides embodiments of an apparatus and a computing device used therein.

[0115] See also Figure 3 , Figure 3 is a block diagram of a knowledge base retrieval device provided by an exemplary embodiment, the device comprising:

[0116] A first acquisition unit 301 is used to acquire input information from a user;

[0117] A second acquisition unit 302 is used to extract search information of at least one dimension related to a set knowledge field according to the input information;

[0118] A retrieval unit 303, configured to perform a search in a knowledge base according to the retrieval information of the at least one dimension, wherein the information items contained in the knowledge base articles stored in the knowledge base are determined according to the dimension of the retrieval information;

[0119] The third acquisition unit 304 is used to obtain the target search result according to the matching result between the search information of each dimension and the information items in each knowledge base article.

[0120] In some embodiments, when the set knowledge domain includes the operating system knowledge domain, the input information includes at least one of a keyword, operating system kernel information, a device IP address, and an original computer kernel log.

[0121] In some embodiments, when the input information includes a device IP address, the second obtaining unit is specifically configured to:

[0122] Obtaining information related to the operating system of the corresponding device according to the IP address of the device;

[0123] Extract retrieval information of multiple dimensions based on the acquired information.

[0124] In some embodiments, at least one dimension of the retrieved information includes at least one of an operating system-related subsystem category, a kernel log, a kernel function, a kernel module, a kernel interface, a kernel command, and a keyword.

[0125] In some embodiments, the second acquiring unit is specifically configured to:

[0126] In the case where the input information only includes keywords, the keywords in the input information are used as search information of the keyword dimension;

[0127] When the input information includes a keyword and also includes information other than the keyword, the keyword and the keyword extracted from the information other than the keyword are used as search information in the keyword dimension.

[0128] In some embodiments, the third acquisition unit is specifically used to:

[0129] For each knowledge base article, obtaining a first matching score between the search information of each dimension corresponding to the input information and the information item in the knowledge base article;

[0130] Obtaining a second matching score of the knowledge base article according to the first matching score corresponding to the search information of each dimension;

[0131] The target search result is obtained according to the second matching score of each knowledge base article in the knowledge base.

[0132] In some embodiments, the search information of each dimension has a corresponding weight; when the third acquisition unit is used to obtain the second matching score of the knowledge base article according to the first matching score corresponding to the search information of each dimension, it is specifically used to:

[0133] According to the corresponding weight of the search information of each dimension, the first matching scores of each dimension are weighted and summed to obtain the second matching score of the knowledge base article.

[0134] In some embodiments, the multiple dimensions of the retrieved information further include a call stack, and the knowledge base article includes a call stack item;

[0135] When the third acquisition unit is used to obtain the target search result according to the second matching score of each knowledge base article in the knowledge base, it is specifically used to:

[0136] Using a call stack matching algorithm, obtaining a third matching score between the retrieval information of the call stack dimension and the call stack item in the knowledge base article;

[0137] The target search result is obtained according to the second matching score and the third matching score of each knowledge base article in the knowledge base.

[0138] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.

[0139] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. A person of ordinary skill in the art can understand and implement it without paying creative labor.

[0140] The present application also provides a computing device, see Figure 4 , Figure 4 is a schematic structural diagram of a computing device provided by an exemplary embodiment. Figure 4 At the hardware level, the device includes a processor 402, an internal bus 404, a network interface 406, a memory 408, and a non-volatile memory 410, and may also include hardware required to implement other functions. One or more embodiments of this specification may be implemented based on software, such as the processor 402 reading the corresponding computer program from the non-volatile memory 410 into the memory 408 and then running it. Of course, in addition to the software implementation, one or more embodiments of this specification do not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0141] The present application also provides a computer program product, including a computer program, which implements the knowledge base retrieval method provided in any embodiment of the present application when the computer program is executed by a processor.

[0142] The systems, devices or modules described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.

[0143] In a typical configuration, a computer includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0144] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0145] Computer readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0146] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0147] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0148] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0149] It should be understood that although the terms first, second, third, etc. may be used to describe various information in one or more embodiments of this specification, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0150] The above description is merely a preferred embodiment of one or more embodiments of the present specification and is not intended to limit one or more embodiments of the present specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of the present specification shall be included in the scope of protection of one or more embodiments of the present specification.

Claims

1. A knowledge base retrieval method, characterized in that: include: Get input information from the user; Extracting search information of at least one dimension related to a set knowledge domain according to the input information; Searching in a knowledge base according to the search information of the at least one dimension, wherein the information items contained in the knowledge base articles stored in the knowledge base are determined according to the dimension of the search information; According to the matching results of the retrieval information of each dimension and the information items in each knowledge base article, the target retrieval result is obtained; In the case where the input information includes the device IP address, the extracting, according to the input information, search information of at least one dimension related to the set knowledge field includes: Obtaining information related to the operating system of the corresponding device according to the IP address of the device; Extract retrieval information of multiple dimensions based on the acquired information.

2. The method according to claim 1, characterized in that: In the case where the set knowledge domain includes the operating system knowledge domain, the input information includes at least one of a keyword, operating system kernel information, a device IP address, and an original computer kernel log.

3. The method according to claim 2, characterized in that At least one dimension of the retrieval information includes at least one of a subsystem category, a kernel log, a kernel function, a kernel module, a kernel interface, a kernel command, and a keyword related to an operating system.

4. The method according to claim 3, characterized in that: The extracting, according to the input information, at least one dimension of search information related to the set knowledge domain comprises: In the case where the input information only includes keywords, the keywords in the input information are used as search information of the keyword dimension; When the input information includes a keyword and also includes information other than the keyword, the keyword and the keyword extracted from the information other than the keyword are used as search information in the keyword dimension.

5. The method according to any one of claims 1 to 4, characterized in that The target search results are obtained by matching the search information of each dimension with the information items in each knowledge base article, including: For each knowledge base article, obtaining a first matching score between the search information of each dimension corresponding to the input information and the information item in the knowledge base article; Obtaining a second matching score of the knowledge base article according to the first matching score corresponding to the search information of each dimension; The target search result is obtained according to the second matching score of each knowledge base article in the knowledge base.

6. The method according to claim 5, characterized in that The search information of each dimension has a corresponding weight; the second matching score of the knowledge base article is obtained according to the first matching score corresponding to the search information of each dimension, including: According to the corresponding weight of the search information of each dimension, the first matching scores of each dimension are weighted and summed to obtain the second matching score of the knowledge base article.

7. The method according to claim 5, characterized in that The multiple dimensions of the search information also include a call stack, and the knowledge base article includes a call stack item; The step of obtaining the target search result according to the second matching score of each knowledge base article in the knowledge base includes: Using a call stack matching algorithm, obtaining a third matching score between the retrieval information of the call stack dimension and the call stack item in the knowledge base article; The target search result is obtained according to the second matching score and the third matching score of each knowledge base article in the knowledge base.

8. A knowledge base retrieval device, characterized in that: The device comprises: A first acquisition unit, used to acquire input information from a user; A second acquisition unit, configured to extract search information of at least one dimension related to a set knowledge domain according to the input information; A retrieval unit, configured to search in a knowledge base according to the retrieval information of the at least one dimension, wherein the information items contained in the knowledge base articles stored in the knowledge base are determined according to the dimension of the retrieval information; A third acquisition unit is used to obtain a target search result according to the matching results of the search information of each dimension and the information items in each knowledge base article; In the case where the input information includes a device IP address, the second acquiring unit is specifically configured to: Obtaining information related to the operating system of the corresponding device according to the IP address of the device; Extract retrieval information of multiple dimensions based on the acquired information.

9. A computing device, characterized in that The computing device comprises: processor; a memory for storing processor-executable instructions; The processor implements the knowledge base retrieval method according to any one of claims 1 to 7 by running the executable instructions.

10. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the instructions are executed by a processor, the knowledge base retrieval method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method for assisting a user of a terminal to learn a plurality of items of information

    WO2021260299A1

Cited By

  • Knowledge base retrieval device and method based on sentence pair embedding

    CN121388086A