Prompt word sharing management system and method, electronic equipment and storage medium
By building a prompt word lifecycle management system, the problem of prompt words not being able to be shared in enterprise-level large language models has been solved, enabling cross-departmental sharing and continuous optimization, and improving the application efficiency of AI tools.
Patent Information
- Application Number
- CN202511850842.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-09
- Publication Date
- 2026-03-17
AI Technical Summary
In enterprise-level large language model application scenarios, the lack of a unified prompt word management mechanism makes it difficult for different technical teams to share prompt words across departments, resulting in resource waste and limited improvement of AI tool application efficiency.
This paper provides a prompt word sharing and management system, including an optimization template management module, a prompt word management module, an optimization testing module, and a community hot list module. Through the collaborative operation of these modules, a prompt word lifecycle management system is built to realize cross-departmental prompt word sharing and optimization.
This solved the problem of information silos, enabled cross-departmental sharing of prompts, formed a virtuous cycle of continuous optimization, and improved the application efficiency of AI tools.
Smart Images

Figure CN121683755A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to a prompt word sharing management system, method, electronic device, and storage medium. Background Technology
[0002] In enterprise-level large language model applications, the granular management of prompts is a key factor in ensuring the reliability and business adaptability of AI (Artificial Intelligence) output. A common challenge is that, due to the lack of a unified prompt management mechanism, prompts developed by different technical teams are difficult to share across departments. This leads to different teams having to repeatedly invest resources in developing similar prompts for similar business needs such as customer service script generation and data analysis report writing. This fragmented information silo phenomenon not only results in a serious waste of human resources within the organization but also, overall, restricts the improvement of the application efficiency of AI tools. Summary of the Invention
[0003] In view of this, embodiments of this application provide a prompt word sharing management system, method, electronic device, and storage medium, which can effectively alleviate the information silo phenomenon caused by the inability to share existing prompt words.
[0004] In a first aspect, embodiments of this application provide a prompt word sharing management system, which includes an optimized template management module, a prompt word management module, an optimized testing module, and a community hot list module; The optimized template management module is used to maintain multiple user-defined and / or preset optimized templates, and to associate and store each optimized template with template identification information; wherein, the optimized template is used to define optimization strategies for improving prompt words; The prompt word management module is used to receive the input original prompt word, and when an optimization instruction is detected, parse the optimization instruction to obtain user identification information, application name and template identification information, encapsulate the original prompt word, user identification information, application name and template identification information into an optimization data packet and send it to the optimization test module; The optimization testing module is used to parse the optimization data packet to obtain the user identification information, the application name, the template identification information, and the original prompt word; obtain the target login information based on the user identification information and the application name; obtain the target optimization template from the optimization template management module based on the template identification information; connect to the target test optimization server through the target login information and send the original prompt word and the target optimization template, so that the target test optimization server optimizes the original prompt word according to the target optimization template; receive the feedback optimization prompt word; and send the optimization prompt word to the prompt word management module. The prompt word management module is also used to establish and save the association between the original prompt words and the optimized prompt words, and then encapsulate the original prompt words and their associated optimized prompt words in a public state into a prompt word data package and send it to the community hot list module for public display.
[0005] Optionally, as described above, the prompt word management module includes a version management unit; the version management unit is used to generate a version number corresponding to the optimized prompt word, and to combine the version number and the user identification information into a composite primary key to version-store the optimized prompt word and the original prompt word.
[0006] Optionally, as described above, the prompt word management module further includes a prompt word processing unit; the prompt word processing unit is used to parse the processing instruction upon receiving a processing instruction to obtain the operation type, and to perform processing operations on the original prompt word and / or the optimized prompt word according to the operation type; wherein, the operation type includes the following: add type, delete type, modify type and query type.
[0007] Optionally, as described above, the prompt word management module further includes a version comparison unit; The version comparison unit is used to, when a version comparison instruction is detected, parse the version comparison instruction to obtain a first version number, a second version number and the user identification information, extract the first optimization prompt word corresponding to the first version number and the second optimization prompt word corresponding to the second version number from the version management unit through a composite query, compare the content differences between the first optimization prompt word and the second optimization prompt word, and send the comparison result to the display interface for difference display.
[0008] Optionally, as described above, the prompt word management module is further configured to receive input test content, and when a test instruction is detected, parse the test instruction to obtain the user identification information, the application name, and the third version number, extract the third optimized prompt word corresponding to the third version number from the version management unit through a compound query, encapsulate the original prompt word, the user identification information, the application name, the test content, and the third optimized prompt word into a test data packet, and send it to the optimization test module; The optimization testing module is further configured to: parse the test data packet to obtain the original prompt word, the user identification information, the application name, the test content, and the third optimized prompt word; obtain the target login information based on the user identification information and the application name; connect to the target test optimization server through the target login information and send the original prompt word, the test content, and the third optimized prompt word; so that the target test optimization server generates a first test result based on the original prompt word and the test content, and generates a second test result based on the third optimized prompt word and the test content; receive the feedback of the first test result and the second test result; and send the first test result and the second test result to the prompt word management module. Optionally, as described above, the optimization testing module is further configured to disconnect from the target test optimization server when it detects that the optimization prompt word has been sent to the prompt word management module, or when the first test result and the second test result have been sent to the prompt word management module.
[0009] Optionally, as described above, the community hot list module is used to: obtain the popularity parameters, publication time, and current time of the prompt word data package; determine the popularity value based on the popularity parameters, the publication time, and the current time; and sort and display the prompt word data package according to the popularity value.
[0010] Secondly, embodiments of this application provide a prompt word sharing management method, the method being applied to the aforementioned prompt word sharing management system, the method comprising: Maintain multiple user-defined and / or preset optimization templates, and associate and store each optimization template with template identification information; wherein, the optimization template is used to define optimization strategies for improving prompt words; The system receives the input original prompt word. When an optimization instruction is detected, the system parses the optimization instruction to obtain user identification information, application name, and template identification information. The system then encapsulates the original prompt word, user identification information, application name, and template identification information into an optimization data packet. The optimized data packet is parsed to obtain the user identification information, the application name, the template identification information, and the original prompt word. Target login information is obtained based on the user identification information and the application name. The target optimized template is obtained from multiple optimized templates based on the template identification information. The target login information is used to connect to the target test optimization server and send the original prompt word and the target optimized template, so that the target test optimization server optimizes the original prompt word according to the target optimized template, and receives the feedback optimized prompt word. After establishing and saving the association between the original prompt words and the optimized prompt words, the original prompt words and their associated optimized prompt words, which are in a public state, are packaged into a prompt word data package for public display.
[0011] Thirdly, embodiments of this application provide an electronic device, which includes a processor and a memory. The processor is used to execute a program for managing prompt word sharing stored in the memory to implement the above-described prompt word sharing management method.
[0012] Fourthly, embodiments of this application provide a storage medium, wherein the storage medium stores one or more programs, which can be executed by one or more processors to implement the above-mentioned prompt word sharing management method.
[0013] The prompt word sharing management system, method, electronic device, and storage medium provided in this application embodiment construct a complete prompt word lifecycle management system through the coordinated operation of four functional modules: optimization template management module, prompt word management module, optimization testing module, and community hot list module. Among them, the optimization template management module accumulates the experience of business experts to form a standardized optimization strategy library; the prompt word management module establishes a full-link tracking from original input to optimized output; the optimization testing module realizes automated quality improvement of prompt words through testing and optimization server-side integration; and finally, the public sharing function of the community hot list module breaks down departmental barriers, enabling high-quality prompt word assets to flow throughout the organization. This systematic design not only solves the problem of information silos and realizes cross-departmental prompt word sharing, but also forms a virtuous cycle of continuous optimization through knowledge accumulation, ultimately achieving a large-scale improvement in the application efficiency of AI tools. Attached Figure Description
[0014] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 This application provides a schematic diagram of the structure of a prompt word sharing management system. Figure 2 A schematic diagram of a template management interface provided in an embodiment of this application; Figure 3 A schematic diagram of a prompt word management interface provided in an embodiment of this application; Figure 4 A schematic diagram of an application management interface provided in an embodiment of this application; Figure 5 A schematic diagram of a community hot list interface provided in an embodiment of this application; Figure 6 A schematic diagram of another prompt word sharing management system provided in this application embodiment; Figure 7 A schematic diagram of a prompt word list interface provided in an embodiment of this application; Figure 8 A schematic diagram of a display interface provided in an embodiment of this application; Figure 9 A schematic diagram of a test result comparison and display interface provided in an embodiment of this application; Figure 10 A flowchart illustrating an embodiment of a prompt word sharing management method provided in this application; Figure 11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0017] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0018] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0019] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0020] The embodiments of this application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence is the theory, method, technology, and application system that uses digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.
[0021] Foundational technologies in artificial intelligence generally include sensors, dedicated AI chips, cloud computing, storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies mainly encompass computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning.
[0022] It should be understood that the sequence number of each step in the following embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0023] To facilitate understanding of the embodiments of this application, the following will provide further explanation and description with reference to the accompanying drawings and specific embodiments. These embodiments do not constitute a limitation on the embodiments of this application.
[0024] This invention provides a prompt word sharing management system, such as... Figure 1 The diagram shows the structure of a prompt word sharing management system, which includes: an optimized template management module 101, a prompt word management module 102, an optimized testing module 103, and a community hot list module 104.
[0025] The optimized template management module is used to maintain multiple user-defined and / or preset optimized templates, and to associate and store each optimized template with template identification information. The optimization template is used to define optimization strategies for improving prompts. This can be understood as different optimization templates employing different optimization strategies for prompts. For example, optimization template 1 uses a strategy to adjust the word order of prompts, while optimization template 2 uses a strategy to enrich the wording of prompts. In practical applications, optimization templates can be used to... Figure 2 The template management interface shown allows for optimized template customization and viewing, such as... Figure 2 As shown, the template management interface displays three types of optimized templates preset by the system: general optimized templates, general optimized templates with output format requirements, and analytical structure optimized templates. Users can view the detailed configuration rules of each optimized template in real time through the viewing control 200 on the interface. The interface also includes a second add control 201. After the user triggers the second add control 201 (supporting single / double click operation), the interface dynamically generates an input box 202. This supports both creating new optimized templates from scratch and providing a shortcut path to copy and paste preset optimized templates. Users can obtain the content of preset optimized templates through the copy control 203, paste it into the input box 202, and then edit it. This inheritance modification mechanism significantly reduces the threshold for template customization and achieves efficient integration between standardized templates and personalized needs. This module also has the function of deleting custom or preset optimized templates.
[0026] The prompt word management module is used to receive the input raw prompt words, and when an optimization instruction is detected, it parses the optimization instruction to obtain user identification information, application name and template identification information, encapsulates the raw prompt words, user identification information, application name and template identification information into an optimization data packet and sends it to the optimization test module. The prompt word management module plays a core role in the system, responsible for receiving raw prompt words, optimizing instruction parsing, and encapsulating data. Specifically, the prompt word management module uses an intuitive prompt word management interface to input and manage raw prompt words, such as... Figure 3As shown, the core functional area of the prompt word management interface includes three required input components: the system prompt word input box 300 receives the original prompt word content input by the user; the prompt word name input box 301 allows adding a custom identifier name to the prompt word; and the description input box 302 is used to supplement the description of the prompt word's functional characteristics and application scenarios. After the user completes the content input in the system prompt word input box 300, the module will capture and store the original prompt word data in real time, and combine it with the name and description information to form a complete metadata record, providing structured support for subsequent operations.
[0027] The prompt word management interface also provides two key drop-down selection controls: the application name drop-down control 303 and the template identifier drop-down control 304. The application name drop-down control 303 provides the names of all test optimization servers for users to select, while the template identifier drop-down control 304 provides the template identifier information of all available optimization templates for users to select. After the user completes the dual selection of the application name and template identifier, clicking the "Start Optimization" control 305 in the interface will generate a complete optimization command containing user identification information (such as user ID, username, or other unique information that identifies the user), the selected application name, and the template identifier information, thereby triggering the subsequent prompt word optimization process.
[0028] The prompt word management module uses regular expressions and natural language processing technology to perform structured parsing of optimization instructions, accurately extracting key fields such as user identification information, application name, and template identification information. Then, through data encapsulation technology, the original prompt words and parsing results are integrated into a standardized JSON data packet, while adding timestamps and request hash values to ensure data traceability. Finally, the encapsulated optimization data packet is transmitted to the optimization testing module, providing a structured input foundation for subsequent automatic prompt word optimization processing.
[0029] The optimization testing module is used to parse the optimization data packet to obtain user identification information, application name, template identification information and original prompt words; obtain target login information based on user identification information and application name; obtain target optimization template from optimization template management module based on template identification information; connect to target test optimization server through target login information and send original prompt words and target optimization template, so that target test optimization server optimizes original prompt words according to target optimization template; receive feedback optimization prompt words and send optimization prompt words to prompt word management module; As the core interaction hub between the system and the external testing and optimization server, the optimization testing module adopts an intelligent layered processing mechanism in its workflow: First, it performs structured decomposition of the optimization data package and simultaneously implements user permission verification and template validity verification to ensure the integrity and compliance of key fields such as extracted user identification information, application name, template identification information, and original prompt words; then, it starts a dual-path parallel query mechanism to obtain the target login information on the one hand and the target optimization template simultaneously on the other.
[0030] The acquisition of target login information can be achieved through the application management module built into the prompt word sharing management system. This application management module is used to maintain the login information configured by the user, and to associate and store the login information by forming a composite primary key with the user identification information and the application name. The login information includes the access address and authentication key for logging into the test optimization server, and the application name is the identifier name of the test optimization server. In this embodiment, it can be accessed through... Figure 4 The provided visual application management interface enables login information configuration, such as... Figure 4 As shown, the application management interface includes an API (Application Programming Interface) address input control 400 and an API key input control 401. Users can enter the access address corresponding to the test optimization server in the API address input control 200 and the authentication key corresponding to the test optimization server in the API key input control 401. The aforementioned test optimization server can be a large language model server or a RAG (Retrieval-Augmented Generation) platform; this is not specified here. To indicate which specific test optimization server the user's login information corresponds to, [further details are provided in the original text]. Figure 4 The interface also includes an application name input control 402, where users can specifically enter the identifier name of the test optimization server, such as DeepSeek Large Language Model, to indicate that the login information configured above is the access address and authentication key corresponding to the DeepSeek Large Language Model server.
[0031] In practical applications, users can also configure login information for multiple different test optimization servers according to their actual needs, such as... Figure 4As shown, the interface also includes a first add control 403. When the user performs a single click or double click on the first add control, another test optimization server (such as the GPT (Generative Pre-trained Transformer) large language model server) can be added to the interface, along with the API address input control, API key input control, and application name input control. This allows the user to add login information for another test optimization server. The number of test optimization server login information that the user wants to configure can be set according to actual needs, and is not limited here.
[0032] When a user logs into the system, the application management module immediately identifies and associates their unique identity (such as username or user ID). This module employs a relational database design with user identification information and application name as the composite primary key and login information as the foreign key. As the core control unit of the system, this module also utilizes a two-layer encryption architecture to ensure data security. First, it uses the AES (Advanced Encryption Standard)-256 algorithm to perform high-strength symmetric encryption on the user's access address. Then, it uses the RSA (Rivest-Shamir-Adleman) asymmetric encryption mechanism to protect the authentication key. This combined encryption method not only ensures the security of sensitive information transmission but also enhances the overall system's resistance to attacks through the asymmetric nature of key distribution.
[0033] In this embodiment, the optimization testing module can obtain the corresponding target login information from the application management module using the parsed user identification information and application name. This target login information is then used to establish an encrypted communication tunnel with the target test optimization server. Afterward, the encapsulated target optimization template and the original prompt word are securely transmitted, and the server's response status is continuously monitored. When an optimization prompt word is received, the module intelligently appends metadata such as the server version number, millisecond-level execution timestamp, and confidence score, and sends it back to the prompt word management module via an encrypted channel. If a server timeout or error response is detected, a three-level retry strategy is automatically executed (the interval increases exponentially using a backoff algorithm). Simultaneously, the abnormal event is recorded in detail in a structured fault-tolerant log, including the error type, occurrence timestamp, and number of retries, providing data support for subsequent system optimization.
[0034] The prompt word management module is also used to establish and save the association between the original prompt words and the optimized prompt words, and then encapsulate the original prompt words and their associated optimized prompt words into a prompt word data package and send it to the community hot list module for public display.
[0035] After establishing the association between original and optimized prompts, the prompt management module stores them in the database. Then, it automatically filters out the original prompts marked as public by users and their associated optimized prompts, and packages them into standardized prompt data packages using data encapsulation technology. The data package contains metadata such as the original prompt content, optimized prompt version, public status identifier, and public time. Finally, the prompt management module asynchronously pushes the prompt data package to the community hot list module through a message queue.
[0036] The community trending topics module, as the system's output display terminal, can sort and publicly display content based on the popularity value of the prompt keyword data packets (e.g., ...). Figure 5 The popular rankings on the right are displayed in sorted order by popularity score. Figure 5 The right side of the middle section displays the results in a sorted manner based on the length of time the data has been published. Specifically, the system obtains the popularity parameters, publication time, and current time of the prompt word data package, determines the popularity value based on the popularity parameters, publication time, and current time, and then sorts and displays the prompt word data packages according to the popularity value.
[0037] The popularity parameters include at least the number of likes and the number of favorites. In this embodiment, the calculation process of the popularity value is explained using the number of likes and favorites as examples. According to the above, the calculation formula for the popularity value is as follows: Popularity value = [(number of likes + number of favorites) × λ] / [1 + e^(-0.1 × t)]; where t is the time difference between the current time and the publication time, and λ is the time weight, which is closely related to t. For example, if t ≤ 24 hours, then λ = 1.5; 24 <t ≤ 72小时,该λ="0.8;t">For 72 hours, λ = 0.3. In practical applications, the specific correspondence between λ and t can be set according to actual needs, and is not limited here.
[0038] For example, if prompt message data package 1 has 80 likes, 40 favorites, a current time of 12:00, and a public time of 08:00, and since t = 4 hours, then λ is 1.5. Substituting these values into the above formula, we can obtain a popularity value of prompt message data package 1 ≈ 107.77. The calculation process for the popularity value of other prompt message data packages is the same as above and will not be repeated here.
[0039] The community's trending topics module allows users to interact with optimized keywords by liking, commenting, and further optimizing them, forming a closed-loop ecosystem from optimization to display. It also supports searching, saving, and topic discussions (such as...). Figure 5 As shown in the image, features such as [list of features] allow for personalized recommendations of relevant keywords based on user behavior (e.g., likes / favorites), replacing the unified trending list. The community trending list module's public sharing function breaks down departmental barriers, enabling high-quality keyword assets to circulate throughout the organization. This systematic design not only solves the problem of information silos but also achieves cross-departmental keyword sharing.
[0040] This prompt word sharing and management system constructs a complete prompt word lifecycle management system through the coordinated operation of four major functional modules: optimization template management module, prompt word management module, optimization testing module, and community hot list module. Among them, the optimization template management module accumulates the experience of business experts to form a standardized optimization strategy library; the prompt word management module establishes a full-link tracking from original input to optimized output; the optimization testing module realizes automated quality improvement of prompt words through testing and optimization server-side integration; and finally, the open sharing function of the community hot list module breaks down departmental barriers, enabling high-quality prompt word assets to flow throughout the organization. This systematic design not only solves the problem of information silos and realizes cross-departmental prompt word sharing, but also forms a virtuous cycle of continuous optimization through knowledge accumulation, ultimately achieving a large-scale improvement in the application efficiency of AI tools.
[0041] exist Figure 1 On this basis, Figure 6 This diagram illustrates the structure of another prompt word sharing management system, such as... Figure 6 As shown, the prompt word management module 102 includes a version management unit 601; wherein, the version management unit is used to generate a version number corresponding to the optimized prompt word, and to form a composite primary key with the version number and user identification information, and to store the optimized prompt word and the original prompt word in a versioned manner.
[0042] The version management unit, as the core component of the prompt word optimization module, is primarily responsible for establishing a complete version control system. Its workflow includes the following key mechanisms: First, it automatically generates a unique version number based on public time and a hash algorithm (typically a semantic version of "vX.YZ" or a hybrid encoding of "UUID + time series"). Then, this version number is combined with the user's unique identifier (such as user ID or username) using a specific separator to form a composite primary key (e.g., "user123_v1.0.0"). Finally, this versioned storage mechanism uses the composite primary key as the core index, encapsulating the optimized prompt word and its associated original prompt word into a single storage record. In practical applications, the same original prompt word can be optimized multiple times; each optimized prompt word is then encapsulated into a record following the same process. This design ensures both global uniqueness and version attribution traceability, providing a data foundation for subsequent version backtracking and difference comparison.
[0043] In practical applications, users can, for example, Figure 7 The suggested keyword list interface manages all created original suggested keywords in real time. This list clearly displays the key attributes of each record in a structured table format, including but not limited to the suggested keyword name, detailed description, status (distinguishing between public and private), creation timestamp (record generation time), and custom title (for easy categorization and retrieval). Furthermore, it offers interactive features: users can click the "+" to the left of each suggested keyword name to expand the control and view the history of all optimized versions corresponding to that original suggested keyword. The version number markers allow for intuitive tracking of the number of optimizations, providing a complete understanding of the suggested keyword's iterative evolution.
[0044] like Figure 6 As shown, the prompt word management module 102 also includes a prompt word processing unit 602; wherein, the prompt word processing unit is used to parse the processing instruction to obtain the operation type when a processing instruction is received, and to process the original prompt word and / or optimized prompt word according to the operation type; wherein, the operation types include the following: add type, delete type, modify type and query type.
[0045] The prompt word processing unit, as the core execution unit of the prompt word management module, adopts an instruction-driven architecture to achieve full-process operation control. Upon receiving a processing instruction from the user, it first performs structured parsing of the instruction using syntax analysis technology to extract the operation type (CRUD). Then, it executes differentiated processing flows based on the operation type: for CRUD operations, a new original prompt word can be created; for CRUD operations, the original prompt word and / or optimized prompt word can be deleted; for CRUD operations, the original prompt word and / or optimized prompt word can be modified; and for CRUD operations, multi-dimensional retrieval is supported, allowing for rapid location of the target record from multiple records stored in the version management unit based on version number and user identification information. All operations ensure data consistency through atomic transaction mechanisms.
[0046] like Figure 6 As shown, the prompt word management module 102 also includes a version comparison unit 603; wherein, when a version comparison instruction is detected, the version comparison unit is used to parse the version comparison instruction to obtain a first version number, a second version number and user identification information, extract the first optimized prompt word corresponding to the first version number and the second optimized prompt word corresponding to the second version number from the version management unit through a composite query, compare the content differences between the first optimized prompt word and the second optimized prompt word, and send the comparison result to the display interface for display of differences.
[0047] The above version comparison command can be generated through Figure 3 In addition, the prompt word management interface also provides a key drop-down selection control: version number drop-down control 306. Version number drop-down control 306 provides all version numbers for the user to select. After the user completes the selection of the version number, clicking the version comparison control 307 in the interface will generate a complete version comparison instruction containing the user identification information, the selected first version number, and the second version number of the optimized prompt word displayed in the optimized prompt word display box 308 in the interface, thereby triggering the subsequent version comparison process.
[0048] The version comparison unit, as the core difference analysis component in the intelligent prompt word management module, employs a three-stage processing mechanism to achieve accurate version content comparison: First, it decomposes the version comparison command using command parsing technology, extracting a complete parameter set containing the first version number (e.g., v2.1.0), the second version number (e.g., v2.0.3), and user identification information (e.g., username 123); then, it triggers a composite query operation, initiating a parallel retrieval of two versions to the version management unit, using an optimistic locking mechanism to ensure data consistency while obtaining the complete optimized prompt words corresponding to the two versions; in the difference comparison stage, it uses an intelligent algorithm based on edit distance for multi-dimensional analysis, not only identifying character-level differences at the text level but also detecting potential semantic changes through semantic vectorization technology; finally, it uses a multi-dimensional algorithm based on edit distance for comparison. Figure 8 The visual display interface shown will display the comparison results, supporting side-by-side display, inline annotation, and various collapsible viewing modes. In practical applications, to highlight the differences, the dissimilar parts of the comparison results can be highlighted. Figure 8 The gray area on the right side of the image highlights the differences for easier viewing. In practice, underlines, wavy lines, etc., can also be used to display differences; this is not a limitation here. The entire process uses transactional processing to ensure data integrity, and the comparison results are cached in a distributed storage system to support subsequent export of difference snapshots or team sharing.
[0049] like Figure 3 As shown, the interface also includes a further optimization control 309. When a user is not satisfied with the optimized prompt words displayed in the optimized prompt word display box 308 in the interface after comparing the results, they can click the further optimization control 309 to optimize the prompt words again.
[0050] In practical applications, to enhance the aesthetics of the optimized prompts displayed in the prompt display box 308, the optimization testing module can process the received optimized prompts, removing unnecessary content to improve user viewing. The optimization testing module then sends both the unprocessed and processed optimized prompts to the prompt management module for selection and viewing within the prompt display box 308. Figure 3 As shown, the interface also includes a source code control 310 and a rendering control 311. When the user clicks the source code control 310, the optimized prompt before beautification is displayed in the prompt display box 308. When the user clicks the rendering control 311, the optimized prompt after beautification is displayed in the prompt display box 308.
[0051] To scientifically evaluate the improvement in test accuracy of optimized prompts compared to original prompts, this system allows for testing of both. The specific testing process is as follows: The prompt management module receives input test content. When a test command is detected, it parses the command to obtain user identification information, application name, and third version number. Through a composite query, it extracts the third optimized prompt corresponding to the third version number from the version management unit. The original prompt, user identification information, application name, test content, and third optimized prompt are encapsulated into a test data packet and sent to the optimization test module. The optimization test module parses the test data packet to obtain the original prompt, user identification information, application name, test content, and third optimized prompt. Based on the user identification information and application name, it obtains the target login information, connects to the target test optimization server through the target login information, and sends the original prompt, test content, and third optimized prompt. The target test optimization server then generates a first test result based on the original prompt and test content, and a second test result based on the third optimized prompt and test content. The module receives the feedback of the first and second test results and sends them to the prompt management module.
[0052] The prompt word management module plays a core role in the system, responsible for receiving test content, parsing test commands, and encapsulating data. Specifically, it uses an intuitive prompt word management interface to enable the input and management of test content, such as... Figure 3 As shown, the interface also includes a test content input box 312, which is used to receive the specific test content input by the user. After the user completes the test content input in the test content input box 312, the module will capture and store the test content in real time. When the user selects the third version number using the version number drop-down control 306, the optimization prompt can be displayed in the prompt display box 308 to facilitate the user to view the content of the optimization prompt corresponding to the third version number. Then, when the user clicks the start test control 313 in the interface, a complete test instruction including user identification information, application name and third version number can be generated, thereby triggering the subsequent test instruction process.
[0053] The prompt word management module also uses regular expressions and natural language processing technology to perform structured parsing of test commands, accurately extracting key fields such as user identification information, application name, and third version number. Subsequently, a query mechanism is initiated to extract the third optimized prompt word corresponding to the third version number from the version management unit using the user identification information and the third version number. Finally, data encapsulation technology is used to integrate the original prompt word, user identification information, application name, test content, and third optimized prompt word into a standardized JSON data packet, while attaching a timestamp and request hash value to ensure data traceability. Finally, the encapsulated test data packet is transmitted to the optimization test module, providing a structured input foundation for subsequent automated test processing.
[0054] The optimized testing module employs an intelligent, layered processing mechanism: First, it structurally disassembles the test data package, simultaneously performing user permission verification and template validity checks to ensure the integrity and compliance of key fields such as extracted user identification information, application name, original prompt words, and third-generation version number. Then, it initiates a query mechanism, using user identification information and application name to retrieve target login information from the application management module. After establishing an encrypted communication tunnel with the target test optimization server, it securely transmits the encapsulated original prompt words, test content, and third-generation optimized prompt words, continuously monitoring the server's response status. Upon receiving the first test result generated by the target test optimization server based on the original prompt words and test content, and the second test result generated based on the third-generation optimized prompt words and test content, it sends the results back to the prompt word management module via an encrypted channel.
[0055] To facilitate viewing, a dual-result comparison display mechanism can be used, displaying the first test result and the second test result separately in... Figure 3 The interface uses independent display areas for visualization: the original result box 314 displays the first test result, and the optimized result box 315 displays the second test result. Both areas are equipped with proportional scaling controls (supporting mouse wheel and touch screen gestures). Users can adjust the display ratio by dragging (e.g., range 10%-400%), or click the full-screen button to enter an immersive comparison mode (e.g., ...). Figure 9 (As shown).
[0056] The aforementioned optimization testing module is also used to disconnect the connection with the target test optimization server when it is detected that the optimization prompt word has been sent to the prompt word management module, or the first test result and the second test result have been sent to the prompt word management module.
[0057] This can be understood as follows: the connection between the optimization and testing module and the target test optimization server needs to be disconnected after each optimization or test is completed. When optimization or testing is needed again, the connection is re-established. This approach brings three main advantages: First, by releasing network connection resources in a timely manner, the memory usage of the system in high-concurrency testing scenarios can be significantly reduced. Second, the forced disconnection strategy effectively avoids the risk of test result contamination caused by long connections. For example, when the target test optimization server experiences an abnormal state, the old connection may return historical cached data instead of real-time calculation results. This mechanism ensures that each test is executed in a completely new session environment. Finally, this on-demand connection architecture design conforms to the zero-trust security principle, minimizing the exposure window. Even if the target test optimization server is attacked by a man-in-the-middle attack, attackers cannot perform lateral penetration through persistent connections.
[0058] Therefore, when conducting the above tests, it is necessary to retrieve the target login information from the application management module based on the user identification information and application name. Then, the target login information is used to connect to the target test optimization server. In actual application, the user identification information and application name may be different from those used during optimization. If the user identification information and application name are different, it indicates that a different user is conducting the test. If the user identification information is the same but the application name is different, it indicates that the same user is conducting the test using a different test optimization server.
[0059] This application provides a prompt word sharing management method, which is applied to the aforementioned prompt word sharing management system. See also: Figure 10 , Figure 10 This is a flowchart illustrating an embodiment of a prompt word sharing management method provided in this application. Figure 10 The process shown may include the following steps: Step 1001: Maintain multiple user-defined and / or preset optimization templates, and associate and store each optimization template with template identification information; wherein, the optimization template is used to define optimization strategies for improving prompt words; Step 1002: Receive the input original prompt word. When an optimization instruction is detected, parse the optimization instruction to obtain user identification information, application name, and template identification information. Encapsulate the original prompt word, user identification information, application name, and template identification information into an optimization data packet. Step 1003: Parse the optimization data packet to obtain user identification information, application name, template identification information and original prompt words; obtain target login information based on user identification information and application name; obtain target optimization template from multiple optimization templates based on template identification information; connect to the target test optimization server through the target login information and send the original prompt words and target optimization template, so that the target test optimization server can optimize the original prompt words according to the target optimization template; and receive the feedback optimization prompt words. Step 1004: After establishing and saving the association between the original prompt words and the optimized prompt words, the original prompt words and their associated optimized prompt words that are in a public state are packaged into a prompt word data package for public display. The execution process of this method is the same as the system described above, and will not be repeated here.
[0060] Figure 11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 11 The illustrated electronic device 1200 includes at least one processor 1201, a memory 1202, at least one network interface 1204, and other user interfaces 1203. The various components in the electronic device 1200 are coupled together via a bus system 1205. It is understood that the bus system 1205 is used to implement communication between these components. In addition to a data bus, the bus system 1205 also includes a power bus, a control bus, and a status signal bus. However, for clarity, ... Figure 11 The general labeled all buses as Bus System 1205.
[0061] The user interface 1203 may include a display, keyboard, or clicking device (e.g., mouse, trackball, touchpad, or touchscreen).
[0062] It is understood that the memory 1202 in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 1202 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0063] In some implementations, memory 1202 stores elements, executable units or data structures, or subsets thereof, or extended sets thereof: operating system 12021 and application program 12022.
[0064] The operating system 12021 includes various system programs, such as the framework layer, core library layer, and driver layer, used to implement various basic business functions and handle hardware-based tasks. The application program 12022 includes various applications, such as a media player and a browser, used to implement various application functions. The program implementing the method of this application embodiment can be included in the application program 12022.
[0065] In this embodiment of the application, the processor 1201 executes the method steps provided by each method embodiment by calling the program or instructions stored in the memory 1202, specifically the program or instructions stored in the application program 12022.
[0066] The methods disclosed in the embodiments of this application can be applied to or implemented by the processor 1201. The processor 1201 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware or by instructions in the form of software in the processor 1201. The processor 1201 may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software units in the decoding processor. The software unit can reside in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory 1202. Processor 1201 reads the information in memory 1202 and, in conjunction with its hardware, completes the steps of the above method.
[0067] It is understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described herein, or combinations thereof.
[0068] For software implementation, the techniques described herein can be implemented by units that perform the functions described herein. The software code can be stored in memory and executed by a processor. The memory can be implemented in the processor or external to the processor.
[0069] The electronic device provided in this embodiment may be as follows: Figure 11 The electronic device shown can perform the following: Figure 10 All steps of the prompt word sharing management method are implemented to achieve [the goal]. Figure 10 For details on the technical effects of the suggested word sharing management method, please refer to [link / reference]. Figure 10 The relevant descriptions are presented concisely and will not be elaborated upon here.
[0070] This application also provides a storage medium (computer-readable storage medium). This storage medium stores one or more programs. The storage medium may include volatile memory, such as random access memory; it may also include non-volatile memory, such as read-only memory, flash memory, hard disk, or solid-state drive; and it may also include combinations of the above types of memory.
[0071] When one or more programs in the storage medium can be executed by one or more processors to implement the above-mentioned prompt word sharing management method.
[0072] The processor is used to execute a program for prompt word sharing management stored in the memory to implement the steps of the prompt word sharing management method.
[0073] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0074] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0075] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of this application. It should be understood that the above description is only a specific embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.< / t>
Claims
1. A prompt word sharing management system characterized by, The prompt word sharing management system comprises an optimization template management module, a prompt word management module, an optimization test module and a community hot list module. The optimization template management module is configured to maintain a plurality of optimization templates customized by users and / or preset, and store each optimization template in association with template identification information; wherein the optimization template is configured to define an optimization strategy for prompt word improvement. The prompt word management module is configured to receive an inputted original prompt word, analyze an optimization instruction when the optimization instruction is detected to obtain user identification information, an application name and the template identification information, encapsulate the original prompt word, the user identification information, the application name and the template identification information into an optimization data packet, and send the optimization data packet to the optimization test module. The optimization test module is configured to analyze the optimization data packet to obtain the user identification information, the application name, the template identification information and the original prompt word, obtain target login information based on the user identification information and the application name, obtain a target optimization template from the optimization template management module based on the template identification information, connect to a target test optimization server through the target login information and send the original prompt word and the target optimization template, so that the target test optimization server performs optimization on the original prompt word according to the target optimization template, receive a feedback optimization prompt word, and send the optimization prompt word to the prompt word management module. The prompt word management module is further configured to save an association between the original prompt word and the optimization prompt word, encapsulate the original prompt word in a public state and its associated optimization prompt word into a prompt word data packet, and send the prompt word data packet to the community hot list module for public display.
2. The method of claim 1, wherein, The prompt word management module comprises a version management unit. The version management unit is configured to generate a version number corresponding to the optimization prompt word, and group the version number and the user identification information into a composite primary key, and perform versioned storage on the optimization prompt word and the original prompt word.
3. The method of claim 2, wherein, The prompt word management module further comprises a prompt word processing unit. The prompt word processing unit is configured to analyze a processing instruction to obtain an operation type when the processing instruction is received, and perform a processing operation on the original prompt word and / or the optimization prompt word according to the operation type; wherein the operation type comprises the following: an increase type, a deletion type, a modification type and a query type.
4. The method of claim 2, wherein, The prompt word management module further comprises a version comparison unit. The version comparison unit is configured to analyze a version comparison instruction to obtain a first version number, a second version number and the user identification information when the version comparison instruction is detected, extract a first optimization prompt word corresponding to the first version number and a second optimization prompt word corresponding to the second version number from the version management unit through a composite query, compare the first optimization prompt word and the second optimization prompt word in content difference, and send the comparison result to a display interface for difference display.
5. The method of claim 4, wherein, The prompt word management module is further configured to receive input test content, parse the test instruction to obtain the user identification information, the application name and a third version number when the test instruction is detected, extract a third optimized prompt word corresponding to the third version number from the version management unit through a composite query, encapsulate the original prompt word, the user identification information, the application name, the test content and the third optimized prompt word into a test data packet, and send the test data packet to the optimization test module; The optimization test module is further configured to parse the test data packet to obtain the original prompt word, the user identification information, the application name, the test content and the third optimized prompt word, obtain the target login information based on the user identification information and the application name, connect to the target test optimization server through the target login information and send the original prompt word, the test content and the third optimized prompt word, so that the target test optimization server generates a first test result based on the original prompt word and the test content, and generates a second test result based on the third optimized prompt word and the test content, receives the feedback first test result and the second test result, and sends the first test result and the second test result to the prompt word management module.
6. The method of claim 5, wherein, The optimization test module is further configured to disconnect the connection with the target test optimization server when it is detected that the optimized prompt word is issued to the prompt word management module, or the first test result and the second test result are issued to the prompt word management module.
7. The method of claim 1, wherein, The community hot list module is configured to obtain a heat parameter, a public time and a current time of the prompt word data packet, determine a heat value based on the heat parameter, the public time and the current time, and sort and display the prompt word data packet according to the heat value.
8. A prompt word sharing management method characterized by comprising: The method is applied to the prompt word sharing management system of any one of claims 1 to 7, and the method comprises: maintaining a plurality of optimization templates customized and / or preset by a user, and storing each optimization template in association with template identification information; wherein the optimization template is used to define an optimization strategy for improving a prompt word; receiving an input original prompt word, parsing the optimization instruction to obtain user identification information, an application name and the template identification information when an optimization instruction is detected, and encapsulating the original prompt word, the user identification information, the application name and the template identification information into an optimization data packet; The optimization data packet is parsed to obtain the user identification information, the application name, the template identification information and the original prompt word, target login information is acquired based on the user identification information and the application name, a target optimization template is acquired from a plurality of optimization templates based on the template identification information, the target test optimization server is connected through the target login information and the original prompt word and the target optimization template are sent, so that the target test optimization server performs optimization on the original prompt word according to the target optimization template, and the feedback optimization prompt word is received; After the association relationship between the original prompt word and the optimization prompt word is established and saved, the original prompt word in the public state and the associated optimization prompt word are packaged into a prompt word data packet for public display.
9. An electronic device, comprising: Comprise: A processor and a memory, the processor is used for executing the program of prompt word sharing management stored in the memory, to realize the prompt word sharing management method in claim 8.
10. A storage medium, characterized by The storage medium stores one or more programs, which can be executed by one or more processors to realize the prompt word sharing management method in claim 8.