An intelligent retrieval method from question to answer
Through collaborative calculations of bit operations and neural networks, we adjust logical relationship paths and establish multi-level indexes, which solves the problem of low retrieval efficiency of logical relationship paths in big data, achieves efficient and accurate data retrieval and in-depth mining, and improves the richness of answers. performance and data correctness.
Patent Information
- Application Number
- CN202411189501.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-10-25
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In big data, it is difficult for existing technologies to efficiently and accurately retrieve logical relationship paths, resulting in low retrieval efficiency and difficulty. It also lacks hierarchical index information and cannot deeply mine valuable data.
The logical relationship path between keywords is expressed through the bit operation of the first computing unit, and the neural network is used for supervised and unsupervised learning, collaborative calculation and adjustment of the logical relationship path, and the establishment of a three-level index (direction index, keyword index, logical relationship Path index) to improve retrieval speed and accuracy.
It improves data processing efficiency, reduces invalid calculations, realizes deep mining and accurate retrieval of big data, enriches the content of answers, reduces data serialization and deserialization, and improves data correctness.
Smart Images

Figure CN118690004B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of information data processing, and in particular to an intelligent retrieval method from questions to answers. Background Art
[0002] In the question-answering system, keywords are used based on the questions to derive logical relationship paths with the nature of answers. The logical relationship paths are composed of keywords, and there is a logical connection between the keywords. Big data has a large amount of data, and the proportion of valid data is small. The efficiency of retrieving logical relationship paths in big data is low, and the difficulty of retrieving logical relationship paths is great. At the same time, the index information of big data lacks hierarchy, and big data cannot be used efficiently and accurately.
[0003] In view of this, the prior art needs to be further improved. Summary of the invention
[0004] In view of the above problems existing in the prior art, at least one of the problems is solved and an intelligent retrieval method from question to answer is provided. The purpose of the present invention is to express the logical relationship path between keywords through the bit operation of the first computing unit and the position order between the binary characters of the keywords. The first computing unit transmits the target text containing at least the keywords to the second computing unit. For the same text, the second computing unit increases or decreases the keywords of the first computing unit. The second computing unit corrects the logical pointing of the keyword binary data in the first computing unit, adjusts its logical relationship path, and / or adds newly discovered keywords and logical relationship paths, so as to improve the speed and accuracy of retrieval and enrich the content of the answer.
[0005] The technical solution to achieve the purpose of the present invention is:
[0006] The present application provides an intelligent retrieval method from question to answer, which is implemented by means of a first computing unit, a second computing unit and a neural network. The specific steps for implementing the method are as follows:
[0007] In the first step, keywords and logical relationship paths preset based on questions and answers are placed in the neural network, and the neural network assigns the same big data to the first calculation unit and the second calculation unit for calculation, and establishes a one-to-one mapping relationship between their calculation results;
[0008] In the process from receiving to calculating the big data, the first calculation unit transmits and calculates the big data in the form of binary characters, uses bit operations and compares the binary characters of the preset keywords and the logical relationship path, and uses the position sequence between the binary characters of the keywords in the big data to express the logical relationship path between the keywords;
[0009] The second computing unit and the neural network perform supervised learning with the help of preset keywords and logical relationship paths, and perform unsupervised learning on the basis of supervised learning. The supervised learning and unsupervised learning collaboratively calculate the logical relationship paths of keywords in the big data.
[0010] The first computing unit transmits the target text containing at least the keywords to the second computing unit. For the same text, the second computing unit increases or decreases the keywords of the first computing unit. The second computing unit corrects the logical pointing of the keyword binary data in the first computing unit, and adjusts its logical relationship path, and / or adds newly discovered keywords and logical relationship paths. It should be noted that in the prior art, it is difficult to search for the logical relationship path of the keywords by keyword search. At the same time, the amount of calculation is very large when searching in big data. The present invention uses the bit operation of the first computing unit and expresses the logical relationship path between the keywords in the position order between the binary characters of the keywords. The first computing unit transmits the target text containing at least the keywords to the second computing unit. The first computing unit solves the problem of large amount of big data and low content of valuable data, performs rapid retrieval, provides accurate big data to the second computing unit and reduces invalid calculations, and then deeply mines the big data. For the same text, the second computing unit increases or decreases the keywords of the first computing unit. The second computing unit corrects the logical pointing of the keyword binary data in the first computing unit, and adjusts its logical relationship path, and / or adds newly discovered keywords and logical relationship paths, thereby improving the speed and accuracy of retrieving big data.
[0011] In the second step, when calculating the text in the big data, each text entering any first calculation unit is complete and sequential text data, and several texts in the big data enter several first calculation units in parallel; the same keywords in the parallel text data are calculated to improve the search weight of the same keywords;
[0012] The third step is to derive direction words from the logical relationship path of keywords in the big data text; establish three-level indexes for the big data text, including the first-level direction index, the second-level keyword index and the third-level keyword logical relationship path index.
[0013] Compared with the prior art, the beneficial effects of the present invention include:
[0014] (1) In the process from receiving to calculating the big data by the first computing unit, the big data from transmission to calculation is in the form of binary numbers, which reduces the serialization and deserialization of data, improves the correctness of data, reduces the form conversion between data, reduces the cost of computing power, and improves the efficiency of data processing;
[0015] (2) Through the bit operation of the first computing unit and the position order between the binary characters of the keywords to express the logical relationship path between the keywords, the first computing unit transmits the target text containing at least the keywords to the second computing unit. The first computing unit solves the problem of large amount of big data and low content of valuable data, performs rapid retrieval, provides accurate big data to the second computing unit and reduces invalid calculations, and then conducts in-depth mining of the big data. For the same text, the second computing unit increases or decreases the keywords of the first computing unit. The second computing unit corrects the logical pointing of the keyword binary data in the first computing unit and adjusts its logical relationship path, and / or adds newly discovered keywords and logical relationship paths; the first computing unit and the second computing unit cooperate in calculation to improve the speed and accuracy of retrieval and enrich the content of the answer;
[0016] (3) Establishing the first-level directional index, the second-level keyword index, and the third-level keyword logical relationship path index for big data text is conducive to accurate retrieval of big data and lightweight data volume. The lightweight data volume is reflected in the logical relationship path, which provides accurate basic data for the retrieval, annotation and reasoning of deep logical relationship paths. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0018] Figure 1 It is a flowchart of an intelligent retrieval method from question to answer;
[0019] Figure 2 It is a preset logical relationship path diagram of an intelligent retrieval method from question to answer;
[0020] Figure 3 It is a logical relationship path diagram of an intelligent retrieval method from question to answer, which is split into two keywords;
[0021] Figure 4 It is a logical relationship path diagram of an intelligent retrieval method from question to answer, which is divided into three keywords;
[0022] Figure 5 It is a schematic diagram of the logical relationship path of the extension preset of the intelligent retrieval method from question to answer;
[0023] Figure 6It is a schematic diagram of the logical relationship path of the intelligent retrieval method from question to answer, which is split into two keywords;
[0024] Figure 7 It is a schematic diagram of the logical relationship path of the intelligent retrieval method from question to answer, which is split into three keywords;
[0025] Figure 8 It is a schematic diagram of the logical relationship path of the intelligent retrieval method from question to answer, which is split into four keywords with preset extensions. DETAILED DESCRIPTION
[0026] To make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be described clearly and completely in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them.
[0027] Therefore, the following detailed description of the embodiments of the present invention is not intended to limit the scope of the invention claimed for protection, but merely represents some embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0028] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features and technical solutions in the embodiments can be combined with each other.
[0029] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0030] The present invention is further described in detail below with reference to the embodiments.
[0031] Example
[0032] Combination Figures 1 to 8 As shown, the present application provides an intelligent retrieval method from question to answer, which is implemented by means of a first computing unit, a second computing unit and a neural network. The specific steps for implementing the method are as follows:
[0033] In the first step, keywords and logical relationship paths preset based on questions and answers are placed in the neural network, and the neural network assigns the same big data to the first calculation unit and the second calculation unit for calculation, and establishes a one-to-one mapping relationship between their calculation results;
[0034] In the process from receiving to calculating the big data, the first calculation unit transmits and calculates the big data in the form of binary characters, uses bit operations and compares the binary characters of the preset keywords and the logical relationship path, and uses the position sequence between the binary characters of the keywords in the big data to express the logical relationship path between the keywords;
[0035] The second computing unit and the neural network perform supervised learning with the help of preset keywords and logical relationship paths, and perform unsupervised learning on the basis of supervised learning. The supervised learning and unsupervised learning collaboratively calculate the logical relationship paths of keywords in the big data.
[0036] The first computing unit transmits the target text containing at least keywords to the second computing unit. For the same text, the second computing unit increases or decreases the keywords of the first computing unit. The second computing unit corrects the logical pointing of the keyword binary data in the first computing unit, adjusts its logical relationship path, and / or adds newly discovered keywords and logical relationship paths.
[0037] In order to better achieve the purpose of the present invention, in some embodiments of the present invention, further, in the first step, the first computing unit receives and calculates the big data, and the big data from transmission to operation is in the form of binary numbers, which reduces the serialization and / or deserialization of the data, improves the correctness of the data, reduces the form conversion between data, reduces the cost of computing power, and improves the efficiency of processing data; the first computing unit uses bit operations to retrieve keywords in the big data. Bit operations are generally faster than ordinary arithmetic operations and logical operations because they operate directly on binary bits and are directly implemented by hardware. For example, GPU is used for calculation, giving full play to the advantages of multi-core and fast simple calculation; the basic operations of bit operations include AND, OR, XOR, NOT, left shift, right shift, etc., and the operation of bit operations is simple; bit operations can be performed in parallel on multiple bits, Since the logical relationship path contains several keywords, several keywords perform bit operations in parallel on several bits, such as 3 or 5, to improve the efficiency of retrieval; the first calculation unit can quickly lock the valuable data containing keywords in the big data; in the big data, the position order of the binary characters of the keywords is used to represent the logical pointing, and the logical relationship path is expressed by the logical pointing between the keywords. Taking the conventional reading order as an example, that is, according to the reading order of the text, the calculation is performed, the first keyword A appears first, and the second keyword B appears later. The logical pointing between the first keyword A and the second keyword B is A→B, and so on, which will not be repeated; the first calculation unit converts the binary data without logic of the keywords into binary data with logical pointing, and then forms a logical relationship path; the first calculation unit can quickly remove invalid big data and lock valuable big data in big data with low value density. The second calculation unit calculates the big data containing keywords and logical relationship paths / or keywords retrieved by the first calculation unit, and does not need to calculate the big data without keywords, saving computing power and improving computing efficiency; the second calculation unit increases or decreases the keywords of the first calculation unit, and the second calculation unit corrects the logical pointing of the keyword binary data in the first calculation unit, and adjusts its logical relationship path, and / or adds newly discovered keywords and logical relationship paths. The first calculation unit and the second calculation unit cooperate in calculation to improve the speed and accuracy of the search, and at the same time enrich the content of the answer.
[0038] In order to better achieve the purpose of the present invention, in some embodiments of the present invention, further, in the first step, the second computing unit introduces a knowledge verification unit, and through the second computing unit, the neural network's learning of authoritative data and basic principles is strengthened, the correctness of the big data is verified, and the ability to identify whether the big data is correct or not is improved.
[0039] In order to better achieve the purpose of the present invention, in some embodiments of the present invention, preferably, in the first step, the first computing unit and the second computing unit are integrated; this is beneficial to small-scale computing, and the first computing unit and the second computing unit are in the same place, which reduces the time for data transmission and improves the efficiency of collaborative computing.
[0040] In order to better achieve the purpose of the present invention, in some embodiments of the present invention, preferably, in the first step, the first computing unit and the second computing unit are separated, which is conducive to division of labor and cooperation for large-scale computing.
[0041] In order to better achieve the purpose of the present invention, in some embodiments of the present invention, further, in the first step, the question is deduced forward to the answer, and the answer is deduced backward to the question, to obtain preset keywords and logical relationship paths; it should be noted that the forward deduction from the question to the answer, and the reverse deduction from the answer to the question, can effectively improve the accuracy of the preset keywords and logical relationship paths and the diversification of answers; the logical relationship path includes logical relationships and keywords, there are logical relationships between keywords, the logical relationships are reflected by keywords, and the order in which the keywords appear in accordance with the logical relationships forms a logical relationship path, that is, the keywords are on the logical relationship path, and a logical relationship path is the logical relationship between several keywords, such as 4 or 6; from asking a question to obtaining an answer, the logical relationship path is the framework structure of the answer, and the preset keywords and logical relationship paths are obtained based on a limited knowledge structure, and therefore, have limitations and are not diverse enough, and it is necessary to retrieve valuable data in big data to form an answer.
[0042] In order to better achieve the purpose of the present invention, in some embodiments of the present invention, further, in the first step, the preset logical relationship path is split and reorganized, and the logical pointing of adjacent keywords remains unchanged during the splitting and reorganization process, thereby reducing the preset logical relationship path as the logical relationship path for retrieval; it should be noted that in big data, the preset logical relationship path is split and reorganized, for example, the preset logical relationship path is composed of the second keyword B, the third keyword C, the fourth keyword D and the fifth keyword E, and the second keyword B, the third keyword C, the fourth keyword D and the fifth keyword E have a logical relationship. Taking step-by-step deduction as an example, the logical pointing relationship of the second keyword B, the third keyword C, the fourth keyword D and the fifth keyword E is: B→C→D→E, → represents the logical pointing. Since the answer based on the question is not unique, in big data, the logical relationship between two keywords is emphasized, for example, B→C, C→D, D→E, or the logical relationship between three keywords is emphasized, for example, B→C→D, C→D→E, or the logical relationship between four keywords is emphasized, for example, B→C→D→E. Subsets of the preset logical relationship path B→C→D→E include: B→C, C→D, D→E, B→C→D, C→D→E and B→C→D→E. In big data, the supervised learning of neural networks is used to retrieve subsets of preset logical relationship paths, which can comprehensively retrieve valuable data. For example, if only the preset logical relationship path B→C→D→E is retrieved, the relevant data of the preset logical relationship path subset will be lost.
[0043] In order to better achieve the purpose of the present invention, in some embodiments of the present invention, further, in the first step, the unsupervised learning of the neural network is used to extend the logical relationship path of the subset of the preset logical relationship path, and the path is split around its extension path to form its subset, so as to give full play to the ability of the unsupervised learning of the neural network to discover new keywords and new logical relationships; it should be noted that the unsupervised learning of the neural network is used to discover new keywords in big data. For example, the first keyword A is discovered and a new logical relationship path is formed. The first keyword A, the second keyword B, the third keyword C, the fourth keyword D and the fifth keyword E constitute a new logical relationship path A→B→C→D→E. The new logical relationship path is split around the first keyword A. The logical relationship path subset containing two keywords is: A→B, and the logical relationship path subset containing three keywords is: A→B→C; the logical relationship path subset containing four keywords is: A→B→C→D; the unsupervised learning of the neural network can be fully utilized to discover valuable potential data in big data and give full play to its creative ability.
[0044] In order to better achieve the purpose of the present invention, in some embodiments of the present invention, further, in the first step, the neural network adopts a supervised learning and unsupervised learning parallel mode, and performs unsupervised learning on the basis of supervised learning, and unsupervised learning discovers new keywords or new logical relationship paths in big data; it should be noted that the supervised learning of the neural network mainly uses preset keywords and logical relationship paths for model training to optimize the performance of the model on specific tasks, such as classification, regression, etc.; supervised learning adjusts the model parameters by minimizing the loss function so that the model can accurately predict the target value in the labeled data. The unsupervised learning of the neural network is mainly used to discover new keywords and new logical relationship paths outside the preset keywords and logical relationship paths, discover potential patterns and structures in big data, and perform feature learning and data representation learning; unsupervised learning uses algorithms to discover the inherent laws and hidden features in the data, such as clustering, dimensionality reduction and other algorithms. Since big data contains a lot of noise, errors and inconsistent data, unsupervised learning is performed on the basis of supervised learning in order to make full use of the correctness of the preset keywords and logical relationship paths, thereby improving the accuracy of unsupervised learning in discovering new keywords or new logical relationship paths in big data. Since big data is large and diverse, it contains many undiscovered keywords or new logical relationship paths. Unsupervised learning can discover new keywords or new logical relationship paths in big data, which is helpful to make up for the fact that supervised learning is not good at discovering new keywords or new logical relationship paths. By combining supervised learning and unsupervised learning, it is possible to make full use of the existing data resources of preset keywords and logical relationship paths, improve the utilization efficiency of existing data, and improve the prediction ability of the model. Unsupervised learning discovers hidden logical relationship paths and keywords in big data, deeply mines valuable data in big data, and deeply mines and expands the content of the answer in multiple dimensions. The model formed by the combination of supervised learning and unsupervised learning gives different learning strategies, improves the adaptability of the model to new samples, and enhances the generalization ability of the model. Through data analysis and pattern recognition, it provides valuable decision-making basis, promotes innovation and decision support. It realizes the automation of the data analysis process, improves the level of automation and intelligence, and reduces the workload of manual intervention.
[0045] In order to better achieve the purpose of the present invention, in some embodiments of the present invention, further, in the first step, supervised learning is trained with a preset logical relationship path as a label, and the preset logical relationship path includes a subset of the preset logical relationship path; it should be noted that supervised learning is trained with a preset logical relationship path as a label, and its specific steps are as follows:
[0046] Step S1 defines the preset logical relationship path including path structure and subset generation; the path structure is to define the basic structure of the logical relationship path, for example, it can be represented by a graph structure (nodes and edges); subset generation is to extract subsets from the complete logical relationship path for multi-level knowledge representation.
[0047] Step S2, dataset construction, dataset construction includes unlabeled data collection and logical relationship extraction; unlabeled data collection is to collect a large amount of unlabeled data (for example, text, images, etc.) from domain-related data. Logical relationship extraction is to use natural language processing (NLP) or other technologies to automatically extract potential logical relationships in the data.
[0048] Step S3, generate labels; the supervised generation mechanism is to generate labels using preset logical relationship paths. Supervised learning to generate labels includes contrastive learning and reconstruction tasks. Contrastive learning is to generate similar and dissimilar instances by enhancing samples; the reconstruction task is to mask part of the data, train the model to predict the masked part, and generate labels based on the logical relationship path.
[0049] Step S4, model design and training; model selection is to select a suitable learning model, such as Transformer, Graph Neural Network (GNN), etc. The training strategy includes loss function design and training process; loss function design is to design a suitable loss function so that the model can learn the preset logical relationship path. The training process is to use the labels generated by supervision to train the model, and iterate repeatedly until the loss converges.
[0050] Step S5, evaluation and optimization; evaluation indicators are defined to test the model's ability to understand and generate logical relationships. Hyperparameter tuning is to continuously optimize model parameters through cross-validation and other techniques.
[0051] Step S6, application and feedback; the actual application is to apply the trained model to the target task, such as knowledge graph construction, information retrieval, question-answering system, etc. The feedback mechanism is to further improve the preset logical relationship path and training strategy through actual application feedback.
[0052] Step S7, iterative improvement; refining the logical relationship path is to iteratively improve the preset logical relationship path and refine the subset according to the performance of the model and application feedback. It should be noted that supervised learning uses unlabeled data to generate useful feature representations and can capture the potential structure of the data. Through supervised learning, the need for manually labeled data can be significantly reduced. The preset logical relationship path is complete, and the local logical relationship path is obtained in the big data, and the logical path is reorganized according to the logical path of the preset logical relationship path. The logical path in the big data has increased or decreased.
[0053] In order to better achieve the purpose of the present invention, in some embodiments of the present invention, further, in the first step, unsupervised learning is pre-trained and fine-tuned based on the preset logical relationship path of supervised learning, and data enhancement and generation are performed without supervised learning; it should be noted that unsupervised learning is pre-trained and fine-tuned based on the preset logical relationship path of supervised learning. Specifically, the neural network is pre-trained using an unsupervised learning method to learn the common features of the data. For example, an autoencoder, a generative adversarial network (GANs) or a variational autoencoder (VAEs) is used to learn the potential representation of the data. Based on the pre-trained model, supervised learning is used for fine-tuning. The model is applied to labeled data to optimize the performance of the model on specific tasks. Unsupervised pre-training can effectively utilize a large amount of unlabeled data and reduce dependence on labeled data. The pre-trained model can capture the deep features in the data, and can achieve higher task performance based on these features during fine-tuning. And data enhancement and generation are performed without supervised learning. Specifically, data generation is to use an unsupervised learning method to generate new data samples (such as GAN to generate new images) to expand the training data set. Data augmentation is to generate sample variants (such as image rotation and cropping) through unsupervised learning, and use these variants in supervised learning to improve the robustness of the model. Increase the diversity of training samples and improve the generalization ability of the model. Enhance robustness: Reduce the overfitting of the model to specific inputs through data augmentation and improve the robustness of the model. The synergy of unsupervised learning and supervised learning can significantly improve the performance and efficiency of neural network models. By effectively combining these two learning methods, making full use of data means effectively utilizing labeled data and unlabeled data to improve the training effect of the model. Improving feature learning means extracting useful features from large-scale data and improving the model's ability to handle complex tasks. Reducing the need for annotation means reducing dependence on manually annotated data and reducing data annotation costs.
[0054] In order to better achieve the purpose of the present invention, in some embodiments of the present invention, further, in the first step, unsupervised learning and supervised learning are trained synchronously and collaborative iteration is performed; it should be noted that unsupervised learning and supervised learning are trained synchronously to improve the efficiency of training; collaborative iteration includes a loop feedback mechanism and sample enhancement; supervised learning and unsupervised learning establish a loop feedback mechanism, the logical relationship path generated by supervised learning can be used as the initial hypothesis of unsupervised learning, and the discovery results of unsupervised learning can be used to optimize the supervised learning model; for example, if unsupervised learning discovers some new potential categories or relationships, the data processing or label generation scheme in supervised learning can be further adjusted to better capture these newly discovered features. Sample enhancement is performed between supervised learning and unsupervised learning, and the structure discovered by unsupervised learning can be used for sample generation, and more diverse data can be generated to improve the generalization ability of supervised learning; for example, by generating samples for the discovered classes, the training set of supervised learning is expanded. Unsupervised learning analyzes unlabeled data to find the structure, pattern or distribution within the data and identify potential structures and relationships in the data, such as clustering and dimensionality reduction. Clustering algorithms can be used to identify new categories in the data, or topic models can be used to discover implicit topics in the text. Unsupervised learning and supervised learning are jointly trained, where supervised learning and unsupervised learning are carried out simultaneously, influencing and optimizing each other. For example, in the feature extraction process of supervised learning, features discovered by unsupervised learning can be introduced to enhance the learning effect of the model. Unsupervised learning and supervised learning are fed back into a loop. After the joint training of unsupervised learning and supervised learning is completed, the generated model is evaluated by unsupervised learning to determine whether the generated logical relationship path is reasonable and whether the model parameters need to be adjusted or the labels need to be redefined. Supervised learning and unsupervised learning can complement each other and work together to obtain more powerful models and richer features.
[0055] In order to better achieve the purpose of the present invention, in some embodiments of the present invention, preferably, in the first step, a first computing unit is used to retrieve the target text in big data; a second computing unit is used to calculate the target text; it should be noted that the target text is quickly found in big data to improve the efficiency of finding valuable texts; at the same time, the valuable texts are deeply analyzed to reduce the deep analysis of invalid texts and reduce the waste of computing power.
[0056] In order to better achieve the purpose of the present invention, in some embodiments of the present invention, preferably, in the first step, the calculations of the first computing unit and the second computing unit are synchronized or asynchronous; it should be noted that the calculations of the first computing unit and the second computing unit are synchronized, and the synchronous calculation ensures that the data processed by each computing unit is consistent, avoids data conflicts between multiple threads or multiple processes, and simplifies the data management and error debugging process; developers do not need to consider the complexity of data transmission and state management between different computing units, and can focus on the implementation of business logic; since all computing units perform the same calculation at the same time, resource usage can be better managed and the possibility of deadlock and race conditions can be reduced; in some application scenarios, such as real-time data processing or control systems, calculation synchronization can effectively ensure timeliness and ensure that the system can respond to external events at the expected time. The calculations of the first computing unit and the second computing unit are asynchronous. Asynchronous computing allows the computing units to process different data or tasks in parallel, which can significantly improve the processing speed and make full use of the computing power of multi-core or multi-processor systems. Asynchronous computing provides more flexibility. The computing units can perform tasks independently without affecting the calculation of other units due to the delay of a certain unit, thereby improving the overall throughput of the system. In an asynchronous computing environment, if a computing unit fails, it will not affect the continued operation of other units, thereby improving the robustness of the system. The workload of each computing unit can be dynamically adjusted according to different processing tasks and resource conditions to optimize resource utilization.
[0057] In order to better achieve the purpose of the present invention, in some embodiments of the present invention, preferably, in the first step, the GPU and the CPU are integrated to reduce data transmission, small-scale calculations, and improve the efficiency of data calculations and logical deductions and logical path deductions; the GPU and the CPU are separated for large-scale centralized calculations.
[0058] The second step is that when calculating the text in the big data, each text entering any first calculation unit is complete and sequential text data, and several texts in the big data enter several first calculation units in parallel; the same keywords in the parallel text data are calculated to improve the search weight of the same keywords; it should be noted that, for example, 200 texts in the big data enter 200 first calculation units in parallel; or, when the number of texts is more than the first calculation unit, they can be divided into batches. Taking 500 texts and 200 first calculation units as an example, the first batch enters 200 first calculation units in parallel with 200 texts, the second batch enters 200 first calculation units in parallel with 200 texts, and the third batch enters 100 first calculation units in parallel with 100 texts; each text entering any first calculation unit is complete and sequential text data, and the overall calculation of each text is conducive to the first calculation unit to establish a correct logical direction, while reducing the splitting and reorganization calculation of the complete text; the parallel method can not only improve the efficiency of calculation, but also improve the efficiency of searching for the same words; the use of parallel calculation method is conducive to improving efficiency.
[0059] In order to better achieve the purpose of the present invention, in some embodiments of the present invention, preferably, in the second step, the calculation is performed in the positive order or reverse order of reading, and the final sorting is performed by logical deduction and logical path deduction in the positive order of reading; it should be noted that the use of the calculation method in positive order or reverse order and the specific arrangement or allocation based on the computing power situation are conducive to reducing waiting time.
[0060] The third step is to derive direction words from the logical relationship path of keywords in the big data text; establish three levels of indexes for the big data text, including the first level of direction index, the second level of keyword index and the third level of keyword logical relationship path index; it should be noted that the direction words are divided according to the field, and the big data text is field-oriented; in the prior art, the text to be retrieved will first be indexed, and the index is a data structure that contains the key information of each document in the document collection, such as words, phrases or other specific content fragments, and the keywords are unordered. In response to this problem, three levels of indexes are established. The first level of direction index is derived from keywords and logical relationship paths, and has the field direction of the big data text; the second level of keyword index is the core point of the big data text; the third level of keyword logical relationship path index is the logical relationship established between keywords, which can deeply reflect the essence and core content of the big data text. Specifically, the first-level directional index is an index for classifying texts by subject or field. Each text is classified into one or more directions according to its main content, such as science and technology, economy, health, etc.; it is conducive to rapid retrieval, data organization and enhanced understanding; users can quickly find texts in related fields according to the classification, saving time; making text data more systematic, convenient for subsequent analysis and processing; through the directional index, users can better understand the overall structure and subject distribution of the data. The second-level keyword index is the extraction and induction of important words or phrases in the text. Keywords can reflect the core content of the text; more accurate searches can be performed through keywords. The third-level keyword logical relationship path index records the logical relationship between keywords and reflects the correlation between topics. It is conducive to in-depth analysis, knowledge graph construction and trend prediction; it can help users understand the connection between different topics and conduct in-depth analysis; it provides a basis for building knowledge graphs and helps to visualize and analyze complex relationships; by analyzing the logical relationship between keywords, it can provide insights into potential trends and changes and provide a basis for decision-making. Establishing the first-level directional index, the second-level keyword index and the third-level keyword logical relationship path index for big data text is conducive to accurate retrieval of big data and lightweight data volume. The lightweight data volume is reflected in the logical relationship path, which provides accurate basic data for the retrieval, annotation and reasoning of deep logical relationship paths.
[0061] In order to better achieve the purpose of the present invention, in some embodiments of the present invention, preferably, in the third step, an index basis for big data is established, an intelligent index establishment mechanism is established, and idle resources and time are effectively used for calculation to establish the index; and a real-time update mechanism is established.
[0062] In order to better achieve the purpose of the present invention, in some embodiments of the present invention, preferably, in the third step, the big data is classified according to the field direction, and directional words are established, which is conducive to clarifying the field direction, facilitating classification, and improving the accuracy of retrieval data.
[0063] In order to better achieve the purpose of the present invention, in some embodiments of the present invention, preferably, in the third step, the big data is hierarchically indexed to make the big data lightweight, which is conducive to removing invalid big data and increasing the content of valuable data in the big data.
[0064] In order to better achieve the purpose of the present invention, in some embodiments of the present invention, preferably, in the third step, a local index server is established, and the first-level direction index, the second-level keyword index and the third-level keyword logical relationship path index are stored in the index server and mapped one-to-one with the corresponding data of the big data.
[0065] It should be noted that for technical features that are not fully explained, conventional technical means are used.
[0066] The above embodiments are only used to illustrate the present invention and are not intended to limit the technical solutions described in the present invention. Although the present invention has been described in detail with reference to the above embodiments, the present invention is not limited to the above specific implementation methods. Therefore, any modification or equivalent replacement of the present invention; and all technical solutions and improvements thereof that do not depart from the spirit and scope of the invention are included in the scope of the claims of the present invention.
Claims
1. An intelligent retrieval method from question to answer, the method is implemented by means of a first computing unit, a second computing unit and a neural network, characterized in that: The specific steps to implement the method are as follows: In the first step, keywords and logical relationship paths preset based on questions and answers are placed in the neural network, and the neural network assigns the same big data to the first calculation unit and the second calculation unit for calculation, and establishes a one-to-one mapping relationship between their calculation results; In the process from receiving to calculating the big data, the first calculation unit transmits and calculates the big data in the form of binary characters, uses bit operations and compares the binary characters of the preset keywords and the logical relationship path, and uses the position sequence between the binary characters of the keywords in the big data to express the logical relationship path between the keywords; The second computing unit and the neural network perform supervised learning with the help of preset keywords and logical relationship paths, and perform unsupervised learning on the basis of supervised learning. The supervised learning and unsupervised learning collaboratively calculate the logical relationship paths of keywords in the big data. The first computing unit transmits the target text containing at least the keywords to the second computing unit, and the second computing unit increases or decreases the keywords of the first computing unit for the same text, and the second computing unit corrects the logical pointing of the keyword binary data in the first computing unit, and adjusts its logical relationship path, and / or adds newly discovered keywords and logical relationship paths; In the second step, when calculating the text in the big data, each text entering any first calculation unit is complete and sequential text data, and several texts in the big data enter several first calculation units in parallel; the same keywords in the parallel text data are calculated to improve the search weight of the same keywords; The third step is to derive directional words from the logical relationship path of keywords in the big data text; classify the big data according to the field direction to establish directional words; and establish three-level indexes for the big data text, which include the first-level directional index, the second-level keyword index, and the third-level keyword logical relationship path index.
2. The intelligent retrieval method from question to answer according to claim 1, characterized in that: In a first step, the second computing unit introduces a knowledge verification unit.
3. The intelligent retrieval method from question to answer according to claim 1, characterized in that: In the first step, the first computing unit and the second computing unit are integrated.
4. The intelligent retrieval method from question to answer according to claim 1, characterized in that: In the first step, the first computing unit and the second computing unit are separated.
5. The intelligent retrieval method from question to answer according to claim 1, characterized in that: In the first step, the preset logical relationship path is split and reorganized, and the logical directions of adjacent keywords remain unchanged during the splitting and reorganization process, thereby reducing the preset logical relationship path as the retrieval logical relationship path.
6. The intelligent retrieval method from question to answer according to claim 1, characterized in that: In the first step, unsupervised learning of a neural network is used to perform logical relationship path extension on a subset of a preset logical relationship path, and path splitting is performed around the extended path to form its subset.
