Method, device, equipment and storage medium for generating production instructions
By parsing BOM information and matching instruction data sources, generating prompt word projects and inputting them into the natural language model, it solves the problem of tedious manual preparation of production instructions, achieves fast and high-quality instruction generation, and improves production efficiency and accuracy.
Patent Information
- Application Number
- CN202410856223.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-06-28
AI Technical Summary
In modern industrial production, the process for process engineers to manually prepare production instructions is cumbersome, resulting in a long production cycle and affecting the timely execution of production plans.
By receiving and parsing the BOM information of pre-launched products, we obtain material information and process types, match historical problem information and process efficiency information in the instruction data source, generate prompt word projects, and input them into the natural language model for derivation learning to generate high-quality Quality production instructions.
It improves the efficiency of generating production instructions, shortens the online cycle of pre-launch products, and improves the accuracy of instructions and production efficiency.
Smart Images

Figure CN118396250B
Abstract
Description
Technical Field
[0001] The present application relates to the field of big data technology, and in particular to a method, device, equipment and storage medium for generating production instructions. Background Art
[0002] In modern industrial production, production instructions are key documents manually prepared by process engineers according to process specifications and user process requirements. This process usually includes a detailed description of the process flow, key steps and parameter settings, quality control tips, safety operation tips, efficiency optimization suggestions and troubleshooting solutions. Manually compiling production instructions requires process engineers to repeat a lot of basic work, with a long production cycle, which affects the timely execution of production plans. Summary of the invention
[0003] The present application provides a method, device, equipment and storage medium for generating production instructions, which are used to improve the efficiency of generating production instructions.
[0004] In a first aspect, an embodiment of the present application provides a method for generating a production instruction, the method comprising:
[0005] Receive and parse the BOM information of the pre-launched product to obtain material information, wherein the material information includes: a material model and a process type corresponding to the material model, wherein the process type includes an automatic process and a manual process;
[0006] The material model corresponding to the manual process is set as the target material model, and the indication data source is matched according to the target material model, wherein the indication data source includes the first historical problem information and process efficiency information;
[0007] According to the target material model, obtaining second historical problem information from the first historical problem information;
[0008] Generate a prompt word project according to the target material model, the second historical problem information and the process efficiency information;
[0009] Inputting the prompt word project into a preset natural language model so that the natural language model completes derivation learning;
[0010] The material information, the instruction data source and the preset process specification information are input into the natural language model that has completed the derivation and learning, to generate instruction language data, and the instruction language data is filled into the preset instruction template to obtain production instructions.
[0011] In a second aspect, an embodiment of the present application provides a device for generating a production instruction, wherein the device for generating a production instruction includes:
[0012] A data interpretation module is used to receive and analyze the BOM information of the pre-launched product to obtain material information, wherein the material information includes: a material model and a process type corresponding to the material model, wherein the process type includes an automatic process and a manual process;
[0013] A data matching module, used to set the material model corresponding to the manual process as the target material model, and match the indication data source according to the target material model, wherein the indication data source includes the first historical problem information and process efficiency information;
[0014] An information determination module, configured to obtain second historical problem information from the first historical problem information according to the target material model;
[0015] A prompt synthesis module, used for generating a prompt word project according to the target material model, the second historical problem information and the process efficiency information;
[0016] A model training module, used for inputting the prompt word project into a preset natural language model so that the natural language model completes derivation learning;
[0017] The result output module is used to input the material information, the instruction data source and the preset process specification information into the natural language model that has completed the derivation and learning, generate instruction language data, and fill the instruction language data into the preset instruction template to obtain production instructions.
[0018] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising a memory and a processor;
[0019] The memory is used to store computer programs;
[0020] The processor is used to execute the computer program and implement the method for generating production instructions as described in any one of the embodiments of the present application when executing the computer program.
[0021] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the processor implements a method for generating production instructions as described in any one of the embodiments of the present application.
[0022] An embodiment of the present application provides a method for generating production instructions, the method comprising: receiving and parsing BOM information of a pre-released product to obtain material information, the material information comprising: a material model and a process type corresponding to the material model, the process type comprising an automatic process and a manual process; setting the material model corresponding to the manual process as a target material model, matching an indication data source according to the target material model, the indication data source comprising first historical problem information and process efficiency information; obtaining second historical problem information from the first historical problem information according to the target material model; generating a prompt word project according to the target material model, the second historical problem information and the process efficiency information; inputting the prompt word project into a preset natural language model so that the natural language model completes derivation learning; inputting the material information, the indication data source and the preset process specification information into the natural language model that has completed derivation learning, generating indication language data, and filling the indication language data into a preset indication template to obtain production instructions. Through the above method, material information is obtained according to the BOM information of the pre-launched product, the material model is divided through manual process and automatic process to obtain the target material model, the process difficulties in the production process are focused on, and the indication data source is matched by the target material model to utilize historical data and experience to help predict and prevent potential problems in production. The prompt word engineering is further generated by integrating historical problems and efficiency information through the indication data source, helping the natural language model to improve the unique background knowledge about the production process, improving the ability to perform complex reasoning in the natural language model, and improving the language accuracy of the natural language model, so that the natural language model can output high-quality production and manufacturing instructions according to the material information, the indication data source and the preset process specification information, quickly generate a first draft of the production and manufacturing instructions, improve the production efficiency of the production and manufacturing instructions, and help shorten the launch cycle of the pre-launched product. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions of 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 described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0024] Figure 1 A schematic flow chart of a method for generating a production instruction provided in an embodiment of the present application;
[0025] Figure 2 A schematic block diagram of a device for generating production instructions provided in an embodiment of the present application. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0027] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0028] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0029] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0030] See also Figure 1 , Figure 1 The embodiment of the present application also provides a schematic flow chart of a method for generating a production instruction. Figure 1 As shown, the specific steps of the method for generating production instructions include: S101-S106.
[0031] S101. Receive and parse BOM information of pre-launched products to obtain material information, which includes: material model and process type corresponding to the material model, and the process type includes automatic process and manual process.
[0032] Exemplarily, the BOM (Bill of Materials) information of the pre-launched product is automatically obtained through the system interface or database query. This information contains all the materials required for the product and their related attributes. The received BOM information is parsed to extract key data related to the production instructions, including the name, model, quantity, process and its attributes of the material. The parsed BOM information is further sorted and classified to form structured material information. The material information includes the model of each material and its corresponding process type. According to the process type in the material information, the process is divided into automatic process and manual process. Automatic processes are usually completed by machines and equipment, such as SMT (surface mount technology) processes; manual processes require manual operation, such as assembly and inspection processes. In the material information, each material model clearly corresponds to the type of process it needs to go through. The parsed material information and its corresponding process type are stored in the system database, which is convenient for rapid call and use in the subsequent process design and production instruction generation process.
[0033] Through the above steps, the BOM information of the pre-launched product can be quickly and accurately obtained and analyzed, and detailed material information and its corresponding process types can be generated to provide basic data support for subsequent production and manufacturing instruction design. This process not only improves the efficiency of data processing, but also reduces the error rate of manual operation, ensuring the accuracy and standardization of process design.
[0034] S102. Set the material model corresponding to the manual process as the target material model, and match the indication data source according to the target material model, where the indication data source includes the first historical problem information and process efficiency information.
[0035] Exemplarily, the material model corresponding to the manual process requires manual operation during the production process, and therefore requires special attention and processing. The identified manual process material model is set as the target material model as a key parameter for subsequent data matching and processing. After determining the target material model, the data source in the preset database is detected, and the data source is matched according to the preset matching rules and the target material model. For example, if a data source includes all target material models, then the data source is the indicative data source of the target material model. It should be noted that the indicative data source can be one or more.
[0036] The indicated data source includes: the first historical problem information and process efficiency information. The first historical problem information includes various problems and solutions encountered by the target material model in the historical production process. By analyzing these historical problem information, potential problems in production can be effectively prevented and dealt with. The process efficiency information includes the production efficiency data of the target material model in different processes, including the average completion time of the process, operating difficulties and optimization suggestions. The process efficiency information helps to optimize the production process and improve production efficiency.
[0037] Through the above steps, the material models of manual processes can be effectively identified and processed, and historical problem information and process efficiency information can be used to generate an optimized instruction data source, which improves the accuracy and reliability of production instructions and greatly improves production efficiency and product quality.
[0038] S103. Obtain second historical problem information from the first historical problem information according to the target material model.
[0039] Exemplarily, the amount of first historical problem information in the indication data source is large, and most of them are irrelevant to the target material model. Therefore, it is necessary to extract the high-value second historical problem information from the first historical problem information according to the target material model. Specifically, the first historical problem information containing the target material model is used as the second historical problem information.
[0040] Through the above steps, effective screening is performed from a large amount of first historical problem information to obtain "second historical problem information" closely related to the target material model, providing more accurate data support for subsequent production optimization, fault prevention, quality control, etc.
[0041] S104, generating a prompt word project according to the target material model, the second historical problem information and the process efficiency information.
[0042] Exemplarily, since the target material model corresponds to a manual process, there are many problems and optimization steps that are not recorded in the standard process specifications during the production process, and the process efficiency of the actual operation may not be accurate. Therefore, it is necessary to generate a corresponding prompt word project based on the second historical problem information and process efficiency information, so that the natural language model can obtain unique background knowledge related to the target material model, and perceive the logic of the problem related to the target material model when processing, so as to output a more accurate generation instruction. In the process of making prompt words, the second historical problem information and process efficiency information can be classified and labeled by the natural language model to ensure that each type of information corresponds to a clear process flow link. Through in-depth analysis of historical problem information and process efficiency information, the most valuable points and tips for production instruction design are extracted, such as process key point tips, quality control tips, safe operation tips, efficiency optimization suggestions and troubleshooting tips.
[0043] Through the above steps, a comprehensive and detailed prompt word project can be generated based on the target material model, the second historical problem information and the process efficiency information. This not only simplifies the design process of production instructions, but also ensures the accuracy and practicality of the instructions, and improves production efficiency and product quality.
[0044] S105: Input the prompt word project into a preset natural language model so that the natural language model completes derivation learning.
[0045] For example, prompt word engineering can guide natural language models to focus more on specific tasks, help natural language models better understand and follow specific contexts and contexts, and thus produce outputs that are consistent with user expectations or application requirements, helping to improve the accuracy and efficiency of the model on these tasks. At the same time, prompt word engineering includes: second historical question information and process efficiency information unique to the target material model, which helps the natural language model to improve the process knowledge related to the target material model, so that it can analyze more deeply the non-conventional requirements that are not involved in the standard process specifications to improve the accuracy of the answer.
[0046] It should be noted that the natural language model in the embodiment of the present application can be a commercial version of the natural language model, such as GPT and Tongyi Qianwen. This lowers the threshold for using the production and manufacturing instruction generation method in this application. At the same time, through the prompt word engineering, it helps the natural language model to pay more attention to the content corresponding to the production field and improve the accuracy of the output results. For data security, a private natural language model can also be used. In the embodiment of the present application, the amount of data is small, and all the data is organized according to certain specifications, which is very suitable for training a proprietary natural language model.
[0047] S106, inputting material information, instruction data source and preset process specification information into the natural language model that has completed derivation and learning, generating instruction language data, and filling the instruction language data into the preset instruction template to obtain production instructions.
[0048] Exemplarily, the natural language model that has completed the derivation learning preprocesses the material information, the instruction data source, and the process specification information, and converts them into an input form that can be processed by the natural language model. The preprocessed material information, the instruction data source, and the process specification information are input into the natural language model that has completed the derivation learning. The natural language model uses its encoding layer to perform multi-level semantic encoding on the input data, extracts key features, and uses the attention mechanism layer to analyze the key content and its relationship in the input data to ensure that the model focuses on the important information in the production instructions. In the decoding layer, based on the output of the encoding and attention mechanism, detailed instruction language data is generated, including specific process flow descriptions, key steps and parameter settings, quality control tips, safety operation tips, efficiency optimization suggestions, and troubleshooting solutions. Obtain a preset production instruction template, including a fixed title, chapter structure, and format requirements. The natural language model fills the generated instruction language data according to the structure of the preset template. For example, the specific filling position in the preset template is determined according to the material model and process type to ensure the logical connection and format consistency of the data. According to the requirements of the template, the instruction language data is formatted as necessary, including but not limited to font, font size, color, paragraph format, etc.
[0049] Through the above steps, the embodiment of the present invention can make full use of the natural language model that completes the derivation learning, generate high-quality production instructions, and provide a first draft of the production instructions much faster than manual production. Based on the first draft, the process engineer only needs to review and modify it to obtain a manuscript version that can be used online, which greatly improves the production efficiency of the production instructions and reduces the preparation cycle of pre-online products.
[0050] An embodiment of the present application provides a method for generating production instructions, the method comprising: receiving and parsing BOM information of a pre-released product to obtain material information, the material information comprising: a material model and a process type corresponding to the material model, the process type comprising an automatic process and a manual process; setting the material model corresponding to the manual process as a target material model, matching an indication data source according to the target material model, the indication data source comprising first historical problem information and process efficiency information; obtaining second historical problem information from the first historical problem information according to the target material model; generating a prompt word project according to the target material model, the second historical problem information and the process efficiency information; inputting the prompt word project into a preset natural language model so that the natural language model completes derivation learning; inputting the material information, the indication data source and the preset process specification information into the natural language model that has completed derivation learning, generating indication language data, and filling the indication language data into a preset indication template to obtain production instructions. Through the above method, material information is obtained according to the BOM information of the pre-launched product, the material model is divided through manual process and automatic process to obtain the target material model, the process difficulties in the production process are focused on, and the indication data source is matched by the target material model to utilize historical data and experience to help predict and prevent potential problems in production. The prompt word engineering is further generated by integrating historical problems and efficiency information through the indication data source, helping the natural language model to improve the unique background knowledge about the production process, improving the ability to perform complex reasoning in the natural language model, and improving the language accuracy of the natural language model, so that the natural language model can output high-quality production and manufacturing instructions according to the material information, the indication data source and the preset process specification information, quickly generate a first draft of the production and manufacturing instructions, improve the production efficiency of the production and manufacturing instructions, and help shorten the launch cycle of the pre-launched product.
[0051] In order to more clearly introduce the technical solution of the present application, the technical solution of the present application will be introduced through specific embodiments below. It should be noted that the specific embodiments are used to expand the technical solution of the present application, but are not intended to limit the present application.
[0052] In some embodiments, when implementing a prompt word project based on a target material model, a second historical problem information, and a process efficiency information, the following steps are specifically implemented: based on the target material model and the second historical problem information, determine the problem material model and the third historical problem information corresponding to the problem material model; determine a process step based on each target material model, and randomly sort the process steps to obtain a first process step; determine a key process step based on each problem material model, input a preset natural language model based on the third historical problem information, extract the problem keywords corresponding to the problem material model, and determine the sorting level between the key process steps based on the problem keywords, as well as determine the quality prompt information of the key process steps; adjust the first process step based on the sorting level to obtain a second process step; adjust the second process step based on the target material model and the process efficiency information to obtain a third process step, wherein the process steps in the third process step do not violate the sorting level; generate a prompt word project based on the third process step and the quality prompt information.
[0053] Exemplarily, according to the target material model and the second historical problem information, the material model with historical problem records is identified and determined as the problem material model. For each problem material model, the corresponding third historical problem information is extracted, which includes a detailed historical problem description and solution. According to each target material model, a corresponding process step is determined, and the determined process steps are randomly sorted to generate a first process sorting to form a preliminary process flow. For each problem material model, the third historical problem information is input into a preset natural language model to extract the problem keywords corresponding to the problem material model. For example, the process of material A is set before the process of material B, which is easy to cause material B to be damaged in the process of material A. For example, the process of material C is set before the process of material D, and material C will block the inspection of the key parts of material D. According to the problem keywords, focus on the process correlation in the third historical problem information, analyze and determine the sorting level between key process steps. This step ensures that the key process steps are sorted according to the severity of the problem and the priority of solving it. After determining the key process steps, it is also necessary to obtain the corresponding quality prompt information, including special precautions and quality control points in the operation of the key process steps.
[0054] According to the determined sorting level, the first process sorting generated initially is adjusted to generate the second process sorting so that the key process with high priority is executed first in the process. Ensure that the adjusted second process sorting can prevent and solve known problems to the greatest extent possible, and improve production efficiency and product quality. In the production process, the process can also be adjusted to optimize the bottleneck points of the process to improve production efficiency. Specifically, according to the target material model and process efficiency information, the second process sorting is optimized to obtain the third process sorting, which improves the efficiency of the overall production process while ensuring that the previously determined sorting level is not violated.
[0055] According to the finalized third process sequence and quality prompt information, a detailed prompt word project is generated. The prompt word project includes process key point prompts, quality control prompts, safety operation prompts, efficiency optimization suggestions and troubleshooting prompts. The generated prompt word project can provide detailed operation instructions and precautions for each process to ensure the accuracy and practicality of production instructions.
[0056] In some embodiments, a prompt word project is generated according to the target material model, the third historical question information, the third process ranking and the quality prompt information, including: generating a guiding question according to the target material model and the third historical question information; generating a guiding answer according to the third process ranking and the quality prompt information; performing reasoning according to the guiding question and the quality prompt information to obtain reasoning data corresponding to the guiding answer; generating a prompt word project according to the guiding question, the guiding answer and the reasoning data.
[0057] Exemplarily, first, extract the target material model and related issues from the third historical question information. For example, when the assembly tolerance of the target material model is within a certain range, what are the possible process problems? Generate a guide answer based on the third process sorting and quality prompt information. The guide answer is the sorting solution in the third process sorting and the quality control operation in the quality prompt information. According to the corresponding relationship, the sorting solution and quality control operation are gradually derived from the process problem, and the derivation process is recorded to generate a prompt word engineering.
[0058] In this way, with a standardized prompt word project, samples containing a small number of thought chain reasoning are prepared for the natural language model in the subsequent process, which can enable the natural language model to learn to think step by step, so as to improve the ability to promote complex reasoning in the natural language model and improve the language accuracy of the natural language model.
[0059] In some embodiments, when setting the material model corresponding to the manual process as the target material model and matching the indication data source according to the target material model, the indication data source includes the first historical problem information and the process efficiency information, the following steps are specifically implemented: determining at least one material combination according to the target material model, the material combination includes at least two target material models; generating a query index identifier according to the target material model in the material combination; obtaining the database address corresponding to the pre-launched product; querying the material models of all products according to the database address, and if the query index identifier is found in the same product, the product with the query index identifier is used as the target product; obtaining the data source corresponding to the target product as the indication data source.
[0060] For example, in an actual production or operation environment, a large number of historical problem records are accumulated. These records may involve problem reports of multiple materials, multiple links or different time periods. After being merged into an indication data source, the number of first historical problem information in the indication data source is large. When matching data sources according to a single target material model, it is sufficient to match from a database of similar products to the product to be launched. In this way, the matching range of the data source can be narrowed and the accuracy of the data source can be ensured.
[0061] However, multiple target material models usually affect each other in the process. All mutual effects between multiple target materials should be considered. According to the target material model, at least one material combination is determined. Each material combination includes at least two target material models. The target material models in the material combination are processed to generate a unique query index identifier. In order to reduce the difficulty of matching, the database address is usually the database corresponding to the manufacturer of the pre-launched product, or the database of the same type as the pre-launched product. According to the obtained database address, the material model information of all products in the database is queried. The queried material model information is compared with the generated query index identifier to check whether all the target material models in the query index identifier exist in the same product. If the query index identifier is found in the same product during the query process, the product is determined as the target product. The accuracy and reliability of the indicated data source are ensured by the relevance of the material combination and the query capability of the product database.
[0062] In some embodiments, second historical problem information is obtained from first historical problem information based on the target material model, including: obtaining the associated material model contained in the first historical problem information; detecting whether the associated material model is the same as the target material model, and using the first historical problem information corresponding to the associated material model that is the same as the target material model as the second historical problem information.
[0063] After collecting relevant information, data analysis is performed through a preset natural language model to obtain indicative language data. It should be noted that the natural language model in the embodiment of the present application can be a commercial version of a natural language model, such as GPT and Tongyi Qianwen. However, when data confidentiality is required, a private natural language model needs to be used. The capabilities of a private natural language model are usually slightly worse than those of a commercial version and need to be compensated for in a targeted manner. In an embodiment of the present application, the accuracy of the private natural language model is improved by indicating the linguistic information in the data source.
[0064] In some embodiments, before inputting material information, an indication data source, and a preset process specification information into a natural language model for derivation learning to generate indication language data, the following is specifically implemented: inputting the material information and the indication data source into a preset linguistic perception encoder to obtain linguistic information about the material information from the indication data source; inputting the linguistic information into a text encoder to obtain text representation information and association information, where the association information is association information between the text representation information and other text representation information in multiple text representation information; generating a linguistic feature vector based on the text representation information and the association information, and inputting the linguistic feature vector into the natural language model for derivation learning.
[0065] Exemplarily, the indication data source includes, usually including various problems and solutions written by engineers, such as process flow descriptions, key steps and parameter settings. When engineers write these contents, although they follow certain writing specifications, they still retain many personal language features. By extracting the linguistic information in the indication data source, these language features can be extracted to improve the attention of the private natural language model to key content. The acquired linguistic information is input into the text encoder, and the text encoder further performs semantic encoding and feature extraction on the input linguistic information. The text encoder generates text representation information, which represents the semantic features and content points of the input text. The associated information is the relationship and connection between the text representation information and other text representation information in multiple text representation information, ensuring a comprehensive understanding and representation of the linguistic information. According to the generated text representation information and associated information, the linguistic feature vector is comprehensively calculated and generated. By inputting the linguistic information into the private natural language model, the attention of the natural language model to key content can be improved, and the accuracy of the output results of the private natural language model can be improved.
[0066] In some embodiments, the natural language model includes an encoding layer, an attention mechanism layer, and a decoding layer. Material information, an indication data source, and preset process specification information are input into the natural language model for derivation and learning to generate indication language data, including: using the encoding layer to perform word segmentation and part-of-speech tagging on the input material information, indication data source, and process specification information to obtain encoding feature data, and embedding operations on the encoding feature data to obtain encoding vector data; using the attention mechanism layer to extract hidden states from the encoding vector data based on the linguistic feature vector to obtain hidden feature vectors; using the decoding layer to generate indication language data based on the hidden feature vectors, and the indication language data includes: process flow information, parameter setting information, and quality control prompt information.
[0067] For example, since the linguistic feature vector can fully express the semantic relationship and important information of the input data, the model can more accurately reflect the actual production needs when generating the indicative language data. The attention mechanism layer's focus on key content further enhances the output quality of the model, ensuring that the generated indicative language data is highly practical and accurate. The linguistic feature vector plays a key role in the attention mechanism layer. By capturing the semantic and grammatical features of the input data, it improves the model's depth of understanding of the input data and ensures that the generated indicative language data is highly practical and accurate.
[0068] See also Figure 2 , Figure 2 The embodiment of the present application further provides a schematic block diagram of a device for generating production instructions, wherein the device 300 for generating production instructions is used to execute the aforementioned method for generating production instructions, wherein the device 300 for generating production instructions can be configured in a server.
[0069] Among them, the server can be an independent server or a server cluster, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN) and big data and artificial intelligence platforms.
[0070] like Figure 2 As shown, the device 300 for generating production instructions includes: a data interpretation module 301, a data matching module 302, an information determination module 303, a prompt synthesis module 304, a model training module 305 and a result output module 306.
[0071] The data interpretation module 301 is used to receive and analyze the BOM information of the pre-launched product to obtain material information. The material information includes: material model and process type corresponding to the material model. The process type includes automatic process and manual process.
[0072] The data matching module 302 is used to set the material model corresponding to the manual process as the target material model, and match the indication data source according to the target material model, where the indication data source includes the first historical problem information and process efficiency information.
[0073] In some embodiments, the data matching module 302 is used to set the material model corresponding to the manual process as the target material model, and match the indication data source according to the target material model, where the indication data source includes the first historical problem information and the process efficiency information. Specifically, it is used to implement: determining at least one material combination according to the target material model, and the material combination includes at least two target material models; generating a query index identifier according to the target material model in the material combination; obtaining a database address corresponding to the pre-launched product; querying the material models of all products according to the database address, and if the query index identifier is found in the same product, the product with the query index identifier is used as the target product; obtaining the data source corresponding to the target product as the indication data source.
[0074] The information determination module 303 is used to obtain the second historical problem information from the first historical problem information according to the target material model.
[0075] In some embodiments, when the information determination module 303 is used to obtain the second historical problem information from the first historical problem information based on the target material model, it is specifically used to achieve: obtaining the associated material model contained in the first historical problem information; detecting whether the associated material model is the same as the target material model, and using the first historical problem information corresponding to the associated material model that is the same as the target material model as the second historical problem information.
[0076] The prompt synthesis module 304 is used to generate a prompt word project according to the target material model, the second historical problem information and the process efficiency information.
[0077] In some embodiments, when the prompt synthesis module 304 is used to realize the generation of prompt word engineering according to the target material model, the second historical problem information and the process efficiency information, it is specifically used to realize: determining the problem material model and the third historical problem information corresponding to the problem material model according to the target material model and the second historical problem information; determining a process step according to each target material model, and randomly sorting the process steps to obtain a first process sorting; determining a key process step according to each problem material model, inputting a preset natural language model according to the third historical problem information, extracting the problem keywords corresponding to the problem material model, and determining the sorting level between the key process steps according to the problem keywords, and determining the quality prompt information of the key process steps; adjusting the first process sorting according to the sorting level to obtain a second process sorting; adjusting the second process sorting according to the target material model and the process efficiency information to obtain a third process sorting, wherein the process steps in the third process sorting do not violate the sorting level; generating a prompt word engineering according to the target material model, the third historical problem information, the third process sorting and the quality prompt information.
[0078] In some embodiments, when the prompt synthesis module 304 is used to generate a prompt word project according to the target material model, the third historical question information, the third process sorting and the quality prompt information, it is specifically used to achieve: generating a guiding question according to the target material model and the third historical question information; generating a guiding answer according to the third process sorting and the quality prompt information; performing reasoning according to the guiding question and the quality prompt information to obtain reasoning data corresponding to the guiding answer; generating a prompt word project according to the guiding question, the guiding answer and the reasoning data.
[0079] The model training module 305 is used to input the prompt word project into a preset natural language model so that the natural language model can complete the derivation learning.
[0080] The result output module 306 is used to input material information, instruction data source and preset process specification information into the natural language model that has completed derivation learning, generate instruction language data, and fill the instruction language data into the preset instruction template to obtain production instructions.
[0081] In some embodiments, the result output module 306 is used to input material information, an indication data source, and preset process specification information into a natural language model for derivation learning to generate indication language data, and is also specifically used to implement: inputting material information and an indication data source into a preset linguistic perception encoder to obtain linguistic information about the material information from the indication data source; inputting linguistic information into a text encoder to obtain text representation information and associated information, wherein the associated information is association information between the text representation information and other text representation information in multiple text representation information; generating a linguistic feature vector based on the text representation information and the associated information, and inputting the linguistic feature vector into the natural language model for derivation learning.
[0082] In some embodiments, the result output module 306 is used to implement a natural language model including an encoding layer, an attention mechanism layer, and a decoding layer, and inputs material information, an indication data source, and a preset process specification information into the natural language model for derivation and learning to generate indication language data. Specifically, it is used to implement: using the encoding layer, performing word segmentation and part-of-speech tagging on the input material information, indication data source, and process specification information to obtain encoding feature data, and performing embedding operations on the encoding feature data to obtain encoding vector data; using the attention mechanism layer, according to the linguistic feature vector, performing hidden state extraction on the encoding vector data to obtain a hidden feature vector; using the decoding layer, according to the hidden feature vector, generating indication language data, the indication language data includes: process flow information, parameter setting information, and quality control prompt information.
[0083] An embodiment of the present application provides an electronic device, which includes a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and implement a method for generating production instructions such as any one of the embodiments of the present application when executing the computer program.
[0084] An embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the processor implements a method for generating a production instruction as described in any one of the embodiments of the present application.
[0085] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for generating a production instruction, characterized in that: The method comprises: Receive and parse the BOM information of the pre-launched product to obtain material information, wherein the material information includes: a material model and a process type corresponding to the material model, wherein the process type includes an automatic process and a manual process; The material model corresponding to the manual process is set as the target material model, and the indication data source is matched according to the target material model, wherein the indication data source includes the first historical problem information and process efficiency information; Obtaining the associated material model included in the first historical problem information; detecting whether the associated material model is the same as the target material model, and using the first historical problem information corresponding to the associated material model that is the same as the target material model as the second historical problem information; According to the target material model and the second historical problem information, determine the problem material model and the third historical problem information corresponding to the problem material model; determine a process according to each of the target material models, randomly sort the process to obtain a first process sort; determine a key process according to each of the problem material models, input a preset natural language model according to the third historical problem information, extract the problem keywords corresponding to the problem material model, determine the sorting level between the key process steps according to the problem keywords, and determine the quality prompt information of the key process steps; adjust the first process sorting according to the sorting level to obtain a second process sorting; adjust the second process sorting according to the target material model and the process efficiency information to obtain a third process sorting, wherein the process steps in the third process sorting do not violate the sorting level; generate a guide question according to the target material model and the third historical problem information; generate a guide answer according to the third process sorting and the quality prompt information; infer according to the guide question and the quality prompt information to obtain the inference data corresponding to the guide answer; generate a prompt word engineering according to the guide question, the guide answer and the inference data; Inputting the prompt word project into a preset natural language model so that the natural language model completes derivation learning; The material information, the instruction data source and the preset process specification information are input into the natural language model that has completed the derivation and learning, to generate instruction language data, and the instruction language data is filled into the preset instruction template to obtain production instructions.
2. The method for generating a production instruction according to claim 1, characterized in that: The material model corresponding to the manual process is set as the target material model, and the indication data source is matched according to the target material model, wherein the indication data source includes the first historical problem information and process efficiency information, including: Determine at least one material combination according to the target material model, wherein the material combination includes at least two of the target material models; Generate a query index identifier according to the target material model in the material combination; Obtain the database address corresponding to the pre-launched product; According to the database address, the material models of all products are queried. If the query index identifier is found in the same product, the product with the query index identifier is used as the target product; A data source corresponding to the target product is obtained as the indicating data source.
3. The method for generating a production instruction according to claim 1, wherein: Before inputting the material information, the indication data source and the preset process specification information into the natural language model that has completed the derivation learning to generate the indication language data, the method further includes: Inputting the material information and the indication data source into a preset linguistic perception encoder, and acquiring linguistic information about the material information from the indication data source; Inputting the linguistic information into a preset text encoder to obtain text representation information and association information, wherein the association information is association information between the text representation information and other text representation information in the plurality of text representation information; A linguistic feature vector is generated according to the text representation information and the associated information, and the linguistic feature vector is input into the natural language model that completes the derivation learning.
4. The method for generating a production instruction according to claim 3, wherein: The natural language model includes an encoding layer, an attention mechanism layer, and a decoding layer. The material information, the indication data source, and the preset process specification information are input into the natural language model for derivation and learning to generate indication language data, including: Using the coding layer, the input material information, the indication data source and the process specification information are segmented and tagged with parts of speech to obtain coding feature data, and the coding feature data is embedded to obtain coding vector data; Utilizing the attention mechanism layer, and according to the linguistic feature vector, extracting the hidden state of the encoding vector data to obtain a hidden feature vector; The instruction language data is generated according to the hidden feature vector by using the decoding layer, and the instruction language data includes: process flow information, parameter setting information and quality control prompt information.
5. A device for generating production instructions, characterized in that: The device for generating the production instruction comprises: A data interpretation module is used to receive and analyze the BOM information of the pre-launched product to obtain material information, wherein the material information includes: a material model and a process type corresponding to the material model, wherein the process type includes an automatic process and a manual process; A data matching module, used to set the material model corresponding to the manual process as the target material model, and match the indication data source according to the target material model, wherein the indication data source includes the first historical problem information and process efficiency information; an information determination module, configured to obtain the associated material model included in the first historical problem information; detect whether the associated material model is the same as the target material model, and use the first historical problem information corresponding to the associated material model that is the same as the target material model as the second historical problem information; a prompt synthesis module, for determining the problem material model and the third historical problem information corresponding to the problem material model according to the target material model and the second historical problem information; determining a process according to each target material model, and randomly sorting the process to obtain a first process sorting; determining a key process according to each problem material model, inputting a preset natural language model according to the third historical problem information, extracting the problem keywords corresponding to the problem material model, and determining the sorting level between the key process steps according to the problem keywords, and determining the quality prompt information of the key process steps; adjusting the first process sorting according to the sorting level to obtain a second process sorting; adjusting the second process sorting according to the target material model and the process efficiency information to obtain a third process sorting, wherein the process steps in the third process sorting do not violate the sorting level; generating a guiding question according to the target material model and the third historical problem information; generating a guiding answer according to the third process sorting and the quality prompt information; inferring according to the guiding question and the quality prompt information to obtain the inference data corresponding to the guiding answer; generating a prompt word engineering according to the guiding question, the guiding answer and the inference data; A model training module, used for inputting the prompt word project into a preset natural language model so that the natural language model completes derivation learning; The result output module is used to input the material information, the instruction data source and the preset process specification information into the natural language model that has completed the derivation and learning, generate instruction language data, and fill the instruction language data into the preset instruction template to obtain production instructions.
6. An electronic device, characterized in that: The electronic device comprises a memory and a processor; The memory is used to store computer programs; The processor is used to execute the computer program and implement the method for generating production instructions as claimed in any one of claims 1 to 4 when executing the computer program.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the method for generating production instructions according to any one of claims 1 to 4.
Citation Information
Patent Citations
Working procedure book manufacturing system
CN101989308A
Production control method and system and mobile terminal
CN111221305A
A material matching method, device and equipment based on an MI manufacturing instruction and a storage medium
CN112070384A
Steel continuous casting process quality analysis system framework method
CN117787801A
Multi-hop time sequence knowledge graph question and answer method and system
CN117829298A
