Prompt word processing method, apparatus, device, medium, and program product

By generating traceability identifiers and gateway events and uploading them to an immutable storage medium, the processing module generates verification data records, which solves the problems of low traceability and poor compliance of prompt words, and achieves the technical effects of data security and clear responsibility.

CN122113916APending Publication Date: 2026-05-29INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
INDUSTRIAL AND COMMERCIAL BANK OF CHINA
Filing Date
2026-01-12
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

Existing technologies suffer from low traceability of prompts, poor processing compliance, ambiguous attribution of responsibility, unverifiable processing links, and the possibility of tampering with stored records, failing to meet the full-process traceability requirements of industries with stringent regulations.

Method used

By receiving the prompt word request sent by the client, a traceability identifier is generated, and a gateway event containing multiple signatures is generated and uploaded to an immutable storage medium. The processing module generates an event record and uploads it. The verification data covers input, output and preceding record hashes, forming a complete processing chain record.

Benefits of technology

It improves the traceability and compliance of prompt words, enhances data security, ensures that each step of the process is traceable, clarifies the attribution of responsibility, and improves the efficiency of problem handling and system reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122113916A_ABST
    Figure CN122113916A_ABST
Patent Text Reader

Abstract

The prompt word processing method, device, equipment, medium and program product provided by the application relate to the field of blockchains. The method comprises the following steps: receiving a prompt word request sent by a client; generating a trace identifier for prompt word information according to the prompt word request; generating a gateway event according to the trace identifier and the prompt word request; uploading the gateway event into an unalterable storage medium; and sending the prompt word request and the trace identifier to a processing module, so that the processing module generates an event record when processing the prompt word request, and uploads the event record into the unalterable storage medium to form a processing link record associated with the trace identifier. The method provided by the application improves the traceability of prompt words and enhances the compliance of processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of blockchain, and in particular to a method, apparatus, device, medium, and program product for processing prompt words. Background Technology

[0002] In the financial sector, Large Language Models (LLMs) are widely used in scenarios such as intelligent customer service, document generation, risk assessment, and compliance review. However, these scenarios place extremely high demands on data security, accountability, and compliance. User-input prompts may contain sensitive information or potentially illegal content, and errors or violations in the model's output could lead to legal disputes, reputational damage, or even regulatory penalties. Therefore, developing traceable and compliant prompt processing methods has become a key requirement in the blockchain field.

[0003] In existing technologies, prompt word processing methods mainly save the prompt words input by the user and the output results of the large language model by logging; perform security checks before the prompt words are input into the model, such as keyword filtering and sensitive content identification; and use access logs to record metadata such as user identity and timestamps, and meet compliance requirements through audit interfaces.

[0004] However, existing technical solutions suffer from several shortcomings, including unclear attribution of responsibility, unverifiable processing links, tamperable storage records, and inability to meet the full-process traceability requirements of heavily regulated industries. These issues collectively lead to low traceability of prompts and poor processing compliance in existing technologies. Summary of the Invention

[0005] This application provides a method, apparatus, device, medium, and program product for processing prompt words, in order to solve the technical problems of low traceability and poor compliance of prompt words in the prior art.

[0006] Firstly, this application provides a method for processing prompt words, including:

[0007] Receive a prompt word request sent by the client; the prompt word request includes prompt word information and client signature;

[0008] Generate a traceability identifier for the prompt word information based on the prompt word request;

[0009] Based on the traceability identifier and prompt word request, a gateway event is generated; wherein, the gateway event includes the traceability identifier, the gateway signature, and the client signature;

[0010] Upload gateway events to an immutable storage medium;

[0011] The prompt word request and traceability identifier are sent to the processing module so that the processing module generates an event record when processing the prompt word request and uploads the event record to an immutable storage medium to form a processing link record associated with the traceability identifier. The event record includes the processing module identifier, the verification data corresponding to the prompt word information, and the processing module signature. The verification data includes the input data hash, the output data hash, and the preceding event record hash.

[0012] Secondly, this application provides a prompt word processing device, comprising:

[0013] The first receiving module is used to receive a prompt word request sent by the client; wherein the prompt word request includes prompt word information and client signature;

[0014] The first generation module is used to generate a traceability identifier for the prompt word information based on the prompt word request;

[0015] The second generation module is used to generate a gateway event based on the traceability identifier and prompt word request; wherein, the gateway event includes the traceability identifier, the gateway signature, and the client signature;

[0016] The upload module is used to upload gateway events to an immutable storage medium;

[0017] The sending module sends the prompt word request and traceability identifier to the processing module, so that the processing module generates an event record when processing the prompt word request and uploads the event record to an immutable storage medium to form a processing link record associated with the traceability identifier. The event record includes the processing module identifier, the verification data corresponding to the prompt word information, and the processing module signature. The verification data includes the input data hash, the output data hash, and the preceding event record hash.

[0018] Thirdly, embodiments of this application provide an electronic device, including: a memory and a processor;

[0019] The memory stores the instructions that the computer executes;

[0020] The processor executes computer execution instructions stored in memory, causing the processor to perform the method described in the first aspect above.

[0021] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the method described in the first aspect above.

[0022] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the method described in the first aspect above.

[0023] This application provides a method, apparatus, device, medium, and program product for processing prompt words. Upon receiving a request containing prompt word information and a client signature, it generates a traceability identifier, providing a basis for subsequent traceability and improving the traceability of prompt words. Based on the traceability identifier and the request, it generates a gateway event containing multiple signatures and uploads it to an immutable storage medium, enhancing data security and traceability. The request and traceability identifier are sent to a processing module, which generates an event record containing verification data and a signature and uploads it. The verification data covers input / output and hashes of preceding records, completely recording the processing process and ensuring that each step is traceable. This overall achieves the technical effect of improving the traceability of prompt words and enhancing processing compliance. Attached Figure Description

[0024] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0025] Figure 1 This application provides a schematic diagram of an application data processing system architecture.

[0026] Figure 2 A flowchart illustrating a prompt word processing method provided in this application embodiment. Figure 1 ;

[0027] Figure 3 A flowchart illustrating a prompt word processing method provided in this application embodiment. Figure 2 ;

[0028] Figure 4 A flowchart illustrating a prompt word processing method provided in this application embodiment. Figure 3 ;

[0029] Figure 5 This is a schematic diagram of the structure of a prompt word processing device provided in an embodiment of this application;

[0030] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0031] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0032] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0033] It should be noted that the user information (including but not limited to user device information, user personal information, user financial characteristics information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, data used for scoring, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, storage, use, processing, transmission, provision, disclosure, and application of the relevant data all comply with the relevant laws, regulations, and standards of the relevant countries and regions, have taken necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation portals for users to choose to authorize or refuse.

[0034] It should be noted that the prompt word processing methods, apparatus, devices, media, and program products provided in this application can be used in the field of fintech, or in any field other than fintech. The application fields of the prompt word processing methods, apparatus, devices, storage media, and products in this application are not limited.

[0035] Existing technical solutions suffer from several shortcomings, including unclear attribution of responsibility, unverifiable processing links, tamperable storage records, and inability to meet the stringent regulatory requirements for full-process traceability. These issues collectively lead to low traceability of prompts and poor processing compliance in existing technologies.

[0036] To address the aforementioned issues, this application provides a method, apparatus, device, medium, and program product for processing prompt words. Upon receiving a request containing prompt word information and a client signature, a traceability identifier is generated, providing a basis for subsequent traceability and improving the traceability of prompt words. Based on the traceability identifier and the request, a gateway event containing multiple signatures is generated and uploaded to an immutable storage medium, enhancing data security and traceability. The request and traceability identifier are sent to a processing module, which generates and uploads an event record containing verification data and a signature. The verification data covers input / output and hashes of preceding records, completely recording the processing process and ensuring that each step is traceable. This overall achieves the technical effect of improving the traceability of prompt words and enhancing the compliance of the processing.

[0037] Figure 1 This is a schematic diagram of an application data processing system architecture provided in an embodiment of this application. The application data processing system can be a computer device. Figure 1As shown, the above architecture includes at least one of a data acquisition device 101, a processing device 102, and a display device 103.

[0038] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the architecture of the application data processing system. In other feasible embodiments of this application, the above architecture may include more or fewer components than illustrated, or combine some components, or split some components, or arrange different components, which can be determined according to the actual application scenario and is not limited here. Figure 1 The components shown can be implemented in hardware, software, or a combination of both.

[0039] In the specific implementation process, the data acquisition device 101 may include an input / output interface or a communication interface, and the data acquisition device 101 can be connected to the processing device through the input / output interface or the communication interface.

[0040] Processing device 102 can receive requests containing prompt word information and client signatures, and generate a traceability identifier. It then uses the traceability identifier and the request to generate a gateway event containing multiple signatures and uploads it to an immutable storage medium. Afterwards, it sends the request and traceability identifier to the processing module, which generates and uploads an event record containing verification data and a signature, forming a processing chain record associated with the traceability identifier. This ensures the traceability of the prompt word and compliance with processing regulations.

[0041] The display device 103 can also be a touch screen or the screen of a terminal device, used to receive user commands while displaying the above-mentioned content, so as to realize interaction with the user.

[0042] It should be understood that the aforementioned processing device can be implemented by a processor reading instructions from memory and executing those instructions, or it can be implemented by a chip circuit.

[0043] Furthermore, the network architecture and business scenarios described in the embodiments of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided in the embodiments of this application. As those skilled in the art will know, with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.

[0044] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0045] Figure 2A flowchart illustrating a prompt word processing method provided in this application embodiment. Figure 1 The execution entity of the prompt word processing method provided in this application embodiment can be a server gateway, such as... Figure 2 As shown, the prompt word processing method provided in this application embodiment includes:

[0046] S201. Receive the prompt word request sent by the client.

[0047] In this embodiment, the prompt request includes prompt information and client signature; the prompt information is the input data hash of the prompt entered by the user into the client, and the input data hash is calculated by the client based on the prompt, session context and random number.

[0048] The server gateway receives a prompt word request from the client. This request contains prompt word information and a client signature. The prompt word information is an input data hash calculated by the client based on the user-input prompt word, session context, and a random number. The client signature is generated by the client signing the input data hash using its private key. The client adopts a minimal reporting strategy, uploading only the hash or digest by default. The complete prompt word can be uploaded or uploaded in encrypted form, depending on the strategy.

[0049] S202. Generate a traceability identifier for the prompt word information based on the prompt word request.

[0050] Based on the received prompt word request, the server gateway generates a trace identifier (TraceID) for the prompt word information. This identifier serves as a unique identifier for the interaction. After generating this identifier, the server gateway passes it along with the request to subsequent processing modules to ensure the consistency of identifiers throughout the entire processing chain.

[0051] S203. Generate a gateway event based on the traceability identifier and prompt word request.

[0052] In this embodiment, the gateway event includes a traceability identifier, a gateway signature, and a client signature.

[0053] The server gateway generates a gateway event based on the generated traceability identifier and prompt word request. The gateway event includes the traceability identifier, gateway signature, and client signature. After generating the event, the gateway signs it before writing it to a temporary queue or cache so that subsequent processing modules can obtain complete event information.

[0054] S204. Upload the gateway event to an immutable storage medium.

[0055] In this embodiment, the tamper-proof storage medium is at least one of a permissioned blockchain, a log service for trusted execution environment protection, an access control database, and a public summary log.

[0056] The server gateway uploads the generated gateway events to an immutable storage medium, which can be at least one of a permissioned blockchain, a trusted execution environment-protected log service, an access control database (ACL), and a public digest log, to ensure the authenticity and immutability of the data.

[0057] S205. Send the prompt word request and traceability identifier to the processing module so that the processing module generates an event record when processing the prompt word request and uploads the event record to an immutable storage medium to form a processing link record associated with the traceability identifier.

[0058] In this embodiment, the event log includes the processing module identifier, the verification data corresponding to the prompt word information, and the processing module signature. The verification data includes the input data hash, the output data hash, and the preceding event record hash. The prompt word information is uploaded to an immutable storage medium in encrypted form or hash digest form. The complete content of sensitive information is accessed using a controlled decryption process.

[0059] The server gateway sends the prompt word request and traceability identifier to the processing module. Upon processing the prompt word request, the processing module generates an event record and uploads it to immutable storage, forming a processing chain record associated with the traceability identifier. The event record contains the processing module identifier, verification data corresponding to the prompt word information, and the processing module's signature. The verification data includes the input data hash, output data hash, and previous event record hash. Each processing module generates and signs a log event, and these events are sequentially chained together to form an event stream, ensuring the traceability of the processing process.

[0060] This embodiment provides a method for processing prompt words. Upon receiving a request containing prompt word information and a client signature, a traceability identifier is generated, providing a basis for subsequent traceability and improving the traceability of prompt words. Based on the traceability identifier and the request, a gateway event containing multiple signatures is generated and uploaded to an immutable storage medium, enhancing data security and traceability. The request and traceability identifier are sent to a processing module, which generates and uploads an event record containing verification data and a signature. The verification data covers input / output and hashes of preceding records, completely recording the processing process and ensuring that each step is traceable. This overall achieves the technical effect of improving the traceability of prompt words and enhancing processing compliance.

[0061] Optional, Figure 3 A flowchart illustrating a prompt word processing method provided in this application embodiment. Figure 2 ,like Figure 3 As shown, this embodiment, based on the above embodiments, provides a detailed explanation of the process for generating traceability identifiers, including:

[0062] S301. Based on the prompt word request, generate a globally unique identifier and / or a universally unique, dictionary-orderable identifier.

[0063] Upon receiving a prompt word request, the server gateway initiates an identifier generation mechanism. For the globally unique identifier (UUID), a specific algorithm is used, combining the server gateway's current time, hardware information (such as the network card's MAC address), and random numbers to generate a globally unique identifier, ensuring each prompt word request has a distinct identifier. For the universally unique, dictionary-orderable identifier (ULID), it is generated based on a timestamp and randomness in a dictionary-orderable manner, guaranteeing both uniqueness and ease of sorting management. Both can be generated individually or simultaneously.

[0064] S302. Generate a traceability identifier for prompt word information based on a globally unique identifier and / or a universally unique, dictionary-orderable identifier.

[0065] After obtaining globally unique identifiers and / or universally unique, dictionary-orderable identifiers, the system will combine these identifiers with key information in the prompt word request (such as prompt word content characteristics, request source, etc.) and generate a traceability identifier specifically used to trace prompt word information through specific encoding rules (such as hash encoding, concatenation encryption, etc.), thereby associating the entire prompt word processing process.

[0066] This embodiment provides a method for processing prompt words. A globally unique identifier generated by a server network ensures that each prompt word request is independently identifiable, avoiding confusion. A universally unique, dictionary-ordered, sortable identifier guarantees uniqueness while facilitating sorting and management; both provide a foundation for subsequent traceability. Combining relevant identifiers with key prompt word information to generate a traceability identifier fully links each stage of prompt word processing. In case of subsequent problems, this identifier can be used to quickly locate the prompt word request, accurately trace the processing process, clarify responsibilities at each stage, and improve problem-solving efficiency and system reliability.

[0067] Optional, Figure 4 A flowchart illustrating a prompt word processing method provided in this application embodiment. Figure 3 ,like Figure 4As shown, this embodiment, based on the above embodiment, provides supplementary explanations of the subsequent process after sending the prompt word request and traceability identifier to the processing module, including:

[0068] S401, Obtain and process link records.

[0069] After the prompt word request and traceability identifier are sent to the processing module, the server gateway will automatically record the operation information of each step in the entire process of the processing module processing the prompt word request, including prompt word reception, processing steps, output results, etc. These records are integrated in chronological and logical order to form a complete processing chain record, providing basic data for subsequent analysis.

[0070] S402. Based on the processed link record, perform link playback processing to obtain the link playback result.

[0071] In this embodiment, the link replay result includes at least one of the following: detection score, triggering rule, and text differences before and after rewriting.

[0072] Based on the acquired processing link records, the server gateway initiates the link replay processing mechanism. By simulating the processing module's processing flow, the processing logic is rerun, key nodes in the processing process are detected and scored to identify the circumstances that trigger security rules, and the text content before and after rewriting is compared. Finally, a link replay result is obtained, which includes at least one of the following: detection score, triggering rule, and text differences before and after rewriting.

[0073] S403. Generate an audit package based on the processing link records.

[0074] In this embodiment, the audit package includes at least one of the following: event original information, signature information, timestamp information, and integrity verification result.

[0075] The server gateway generates an audit package based on the processing link record. It integrates and encapsulates at least one of the following: the original event information, the signature information for signing the event, the timestamp information for recording the time of the event occurrence, and the integrity verification result for verifying data integrity, to form an audit package for subsequent auditing and tracing.

[0076] S404. Verify the processing link record to determine the integrity of the signature of the processing link record.

[0077] The server gateway uses specific encryption algorithms and verification mechanisms to verify the integrity of the signature information in the processing link record, check whether the signature has been tampered with, ensure the authenticity and reliability of the processing link record, and prevent data from being tampered with during transmission and processing.

[0078] S405. Based on the processing link record, analyze and process it through the responsibility determination model or preset rules to generate a responsibility attribution conclusion for the prompt word request processing process.

[0079] In this embodiment, the responsibility attribution conclusion includes a responsibility score for at least one of the client, server gateway, and processing module; the preset rules include at least one of the following:

[0080] If the original content corresponding to the warning message contains preset violations, the client's responsibility score will be increased.

[0081] If the processing log shows that the server gateway has passed through a request identified as high-risk, then the server gateway's responsibility score will be increased.

[0082] If the output data hash indicates an increased risk compared to the input data hash, then the responsibility score of the processing module is increased.

[0083] The server gateway utilizes the processing link records and, through a responsibility determination model, inputs various data characteristics in the link and outputs a responsibility probability distribution. Alternatively, it can generate a responsibility attribution conclusion for the processing of the prompt word request based on preset rules, such as increasing the client's score if the original content of the prompt word violates regulations, increasing its own score if the server gateway allows high-risk requests, or increasing its score if the processing module causes an increase in risk.

[0084] Specifically, after the prompt word request and traceability identifier are sent to the processing module, subsequent analysis is conducted based on the formed processing chain records. On the one hand, a responsibility determination model can be used. This model takes event characteristics, detection scores, historical behavior patterns, etc. as input and outputs a responsibility probability distribution to generate a responsibility attribution conclusion. On the other hand, it can be processed according to preset rules. If the original content corresponding to the prompt word information (the complete prompt word is decrypted and obtained according to the strategy) contains preset violation content, such as explicit violation guidance based on a list of prohibited words or regular expression matching, the client's responsibility score is increased. If the processing chain records show that the server gateway allowed the request identified as high-risk, the server gateway's responsibility score is increased. If the output data hash indicates an increased risk compared to the input data hash, such as the rewriting module changing the prompt word to a more dangerous form, the processing module's responsibility score is increased. The final responsibility attribution conclusion includes responsibility scores for at least one of the client, server gateway, and processing module.

[0085] This embodiment provides a prompt word processing method that, by acquiring processing link records, fully records the processing process to provide data support for subsequent analysis; by performing link replay processing, it can accurately locate the processing problem, clarify the triggering rules and text changes; by generating an audit package, it facilitates audit traceability and ensures data traceability; by verifying the integrity of the signature of the processing link record, it ensures the authenticity and reliability of the data; and by generating a responsibility attribution conclusion through a responsibility determination model or preset rules, it clarifies the responsibility of each link, improves problem handling efficiency and system security.

[0086] Figure 5 This is a schematic diagram of a prompt word processing device provided in an embodiment of this application. The device in this embodiment can be in the form of software and / or hardware. Figure 5 As shown in the embodiment of this application, a prompt word processing device 500 is provided. The device includes: a first receiving module 501, a first generating module 502, a second generating module 503, an uploading module 504, and a sending module 505.

[0087] The first receiving module 501 is used to receive a prompt word request sent by the client; wherein the prompt word request includes prompt word information and client signature;

[0088] The first generation module 502 is used to generate a traceability identifier for the prompt word information according to the prompt word request;

[0089] The second generation module 503 is used to generate a gateway event based on the traceability identifier and the prompt word request; wherein the gateway event includes the traceability identifier, the gateway signature, and the client signature;

[0090] Upload module 504 is used to upload gateway events to an immutable storage medium;

[0091] The sending module 505 is used to send the prompt word request and the traceability identifier to the processing module, so that the processing module generates an event record when processing the prompt word request and uploads the event record to an immutable storage medium to form a processing link record associated with the traceability identifier; wherein, the event record includes the processing module identifier, the verification data corresponding to the prompt word information and the processing module signature, and the verification data includes the input data hash, the output data hash and the preceding event record hash.

[0092] In one possible implementation, the first receiving module 501 is further configured to receive prompt word information, which is the input data hash of the prompt word input by the user to the client, and the input data hash is calculated by the client based on the prompt word, the session context and a random number.

[0093] In one possible implementation, the first generation module 502 is further configured to:

[0094] Based on the prompt word request, generate a globally unique identifier and / or a universally unique, dictionary-orderable identifier;

[0095] Generate a traceability identifier for prompt word information based on a globally unique identifier and / or a universally unique, dictionary-orderable identifier.

[0096] In one possible implementation, the risk analysis module 802 is further configured to:

[0097] Based on the user's historical banking operation habits data and the corresponding risk tags, the initial risk category identification model is trained to obtain a trained risk category identification model.

[0098] Based on the trained risk category identification model, risk identification processing is performed on the behavioral data of sensitive banking business activities to obtain the risk category of sensitive banking business activities.

[0099] In one possible implementation, the upload module 504 is also used for an immutable storage medium, which is at least one of a permissioned blockchain, a log service for trusted execution environments, an access control database, and a public summary log.

[0100] In one possible implementation, the sending module 505 is further configured to:

[0101] Obtain and process link records;

[0102] The processing link record is verified to determine the integrity of its signature.

[0103] In one possible implementation, the sending module 505 is further configured to:

[0104] Based on the processed link record, perform link replay processing to obtain the link replay result; wherein, the link replay result includes at least one of the following: detection score, trigger rule, and text differences before and after rewriting.

[0105] In one possible implementation, the sending module 505 is further configured to:

[0106] Based on the processing link records, an audit package is generated; wherein the audit package includes at least one of the following: original event information, signature information, timestamp information, and integrity verification result.

[0107] In one possible implementation, the sending module 505 is further configured to:

[0108] Based on the processing link records, the system analyzes and processes the data using a responsibility determination model or preset rules to generate a responsibility attribution conclusion for the prompt word request processing process; the responsibility attribution conclusion includes a responsibility score for at least one of the client, server gateway, and processing module.

[0109] In one possible implementation, the sending module 505 is further configured to preset rules, the preset rules including at least one of the following:

[0110] If the original content corresponding to the warning message contains preset violations, the client's responsibility score will be increased.

[0111] If the processing log shows that the server gateway has passed through a request identified as high-risk, then the server gateway's responsibility score will be increased.

[0112] If the output data hash indicates an increased risk compared to the input data hash, then the responsibility score of the processing module is increased.

[0113] In one possible implementation, the sending module 505 is also used for prompt word information, which is uploaded to an immutable storage medium in encrypted form or hash digest form; the complete content of the sensitive information is accessed using a controlled decryption process.

[0114] The prompt word processing device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.

[0115] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 6 As shown, the electronic device 600 provided in this embodiment includes at least one processor 601 and a memory 602. Optionally, the device 600 further includes a communication component 603. The processor 601, memory 602, and communication component 603 are connected via a bus.

[0116] In a specific implementation, at least one processor 601 executes computer execution instructions stored in memory 602, causing at least one processor 601 to perform the above-described method.

[0117] The specific implementation process of processor 601 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.

[0118] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.

[0119] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.

[0120] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0121] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.

[0122] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.

[0123] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.

[0124] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.

[0125] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0126] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0127] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0128] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0129] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0130] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.

Claims

1. A method for processing prompt words, characterized in that, include: Receive a prompt word request sent by the client; wherein the prompt word request includes prompt word information and client signature; Generate a traceability identifier for the prompt word information based on the prompt word request; A gateway event is generated based on the traceability identifier and the prompt word request; wherein the gateway event includes the traceability identifier, the gateway signature, and the client signature; The gateway event is uploaded to an immutable storage medium; The prompt word request and the traceability identifier are sent to the processing module, so that the processing module generates an event record when processing the prompt word request, and uploads the event record to an immutable storage medium to form a processing link record associated with the traceability identifier; wherein, the event record includes a processing module identifier, verification data corresponding to the prompt word information and a processing module signature, and the verification data includes an input data hash, an output data hash and a preceding event record hash.

2. The method according to claim 1, characterized in that, The prompt information is the input data hash of the prompt word entered by the user into the client. The input data hash is calculated by the client based on the prompt word, the session context, and a random number.

3. The method according to claim 1, characterized in that, The step of generating a traceability identifier for the prompt word information according to the prompt word request includes: Based on the prompt word request, generate a globally unique identifier and / or a universally unique, dictionary-orderable identifier. A traceability identifier for the prompt word information is generated based on the globally unique identifier and / or a universally unique, dictionary-orderable identifier.

4. The method according to any one of claims 1 to 3, characterized in that, The immutable storage medium is at least one of a permissioned blockchain, a log service for trusted execution environment protection, an access control database, and a public summary log.

5. The method according to any one of claims 1 to 3, characterized in that, After sending the prompt word request and the traceability identifier to the processing module, the method further includes: Obtain the processing link record; The processing link record is verified to determine the integrity of its signature.

6. The method according to claim 5, characterized in that, After obtaining the processing link record, the process further includes: Based on the processing link record, link replay processing is performed to obtain the link replay result; wherein, the link replay result includes at least one of the detection score, triggering rule, and text differences before and after rewriting.

7. The method according to claim 5, characterized in that, After obtaining the processing link record, the process further includes: An audit package is generated based on the processing link record; wherein the audit package includes at least one of the following: original event information, signature information, timestamp information, and integrity verification result.

8. The method according to any one of claims 1 to 3, characterized in that, After sending the prompt word request and the traceability identifier to the processing module, the method further includes: Based on the processing link record, the system analyzes and processes the data using a responsibility determination model or preset rules to generate a responsibility attribution conclusion for the prompt word request processing process; wherein, the responsibility attribution conclusion includes a responsibility score for at least one of the client, server gateway, and processing module.

9. The method according to claim 8, characterized in that, The preset rules include at least one of the following: If the original content corresponding to the prompt message contains preset violation content, the client's responsibility score will be increased; If the processing link record shows that the server gateway has passed a request identified as high-risk, then the server gateway's responsibility score is increased. If the output data hash indicates an increased risk compared to the input data hash, then the responsibility score of the processing module is increased.

10. The method according to any one of claims 1 to 3, characterized in that, The prompt word information is uploaded to an immutable storage medium in encrypted or hash digest form; the complete content of sensitive information is accessed using a controlled decryption process.

11. A prompt word processing device, characterized in that, include: The first receiving module is used to receive a prompt word request sent by the client; wherein the prompt word request includes prompt word information and client signature; The first generation module is used to generate a traceability identifier for the prompt word information based on the prompt word request; The second generation module is used to generate a gateway event based on the traceability identifier and the prompt word request; wherein the gateway event includes the traceability identifier, the gateway signature, and the client signature; The upload module is used to upload the gateway events to an immutable storage medium; A sending module is used to send the prompt word request and the traceability identifier to the processing module, so that the processing module generates an event record when processing the prompt word request, and uploads the event record to an immutable storage medium to form a processing link record associated with the traceability identifier; wherein, the event record includes a processing module identifier, verification data corresponding to the prompt word information and a processing module signature, and the verification data includes an input data hash, an output data hash and a preceding event record hash.

12. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as claimed in any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1 to 10.

14. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method of any one of claims 1 to 10.