Method and device for processing quiz data in game, and server equipment

By configuring question-and-answer strategy information on Nacos and generating a question-and-answer strategy chain using the chain of responsibility pattern, the problem of the inability to dynamically configure question-and-answer strategies in game question-and-answer systems is solved, achieving efficient, flexible, and maintainable question-and-answer processing in game question-and-answer systems.

CN116975239BActive Publication Date: 2025-12-16NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311040628.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-17
Publication Date
2025-12-16
Estimated Expiration
2043-08-17

AI Technical Summary

Technical Problem

In existing game Q&A systems, the Q&A strategy cannot be dynamically configured according to different games or scenarios, resulting in low effectiveness of Q&A results. Furthermore, the hard-coded strategy of traditional Q&A systems makes modification and maintenance difficult.

Method used

By configuring question-and-answer strategy information on Nacos and generating a question-and-answer strategy chain using the chain of responsibility pattern, the question-and-answer strategies for different games can be dynamically configured, enabling independent management of the question-and-answer strategy for each game and supporting flexible modification and maintenance.

Benefits of technology

It improves the effectiveness of the question-and-answer system's results, enhances the system's flexibility and maintainability, and adapts to different business needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116975239B_ABST
    Figure CN116975239B_ABST
Patent Text Reader

Abstract

The present disclosure provides a game question and answer data processing method and device and a server equipment, relates to the technical field of games, and alleviates the technical problem that the effectiveness of the game problem processing result is low. The method comprises the following steps: obtaining a target problem to be processed; determining a target game to which the target problem belongs, and determining target configuration information corresponding to the target game from a plurality of configuration information on the Nacos; generating a question and answer strategy chain corresponding to the target game according to a target configuration process in the target configuration information in a chain of responsibility mode; and processing the target problem through the question and answer strategy chain.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of game technology, and in particular to a method, apparatus, and server device for processing question and answer data in games. Background Technology

[0002] Currently, game question-answering systems typically employ four question-answering strategies to handle user-submitted questions: retrieval strategy, recommendation strategy, generative strategy, and fallback strategy. These strategies are algorithms or methods used to select the most appropriate answer and return it to the user. These four strategies can handle different question-answering scenarios and return different outputs based on different inputs.

[0003] However, in some games, a certain strategy may be suitable for answering questions in those games, while in other games, a different strategy may be more suitable. This affects the question-and-answer system's effectiveness and makes the game's question-and-answer results less effective. Summary of the Invention

[0004] The purpose of this disclosure is to provide a method, apparatus, and server-side device for processing question-and-answer data in games, so as to alleviate the technical problem of low effectiveness of question processing results in games.

[0005] In a first aspect, embodiments of this disclosure provide a method for processing question-and-answer data in a game. Each game corresponds to a configuration information set, and multiple configuration information sets corresponding to multiple games are set on a Dynamic Naming and Configuration Service (Nacos) platform. The configuration information includes a configuration process for at least one question-and-answer strategy, which is used to handle questions in the game's question-and-answer system. The method includes:

[0006] Obtain the target problem to be processed;

[0007] Determine the target game to which the target problem belongs, and determine the target configuration information corresponding to the target game from multiple configuration information on Nacos;

[0008] Based on the target configuration process in the target configuration information, generate the question-and-answer strategy chain corresponding to the target game according to the chain of responsibility pattern;

[0009] The target question is processed through the question-answering strategy chain.

[0010] Secondly, a device for processing question-and-answer data in a game is provided. Each game corresponds to a configuration information, and multiple configuration information corresponding to multiple games are set on Nacos. The configuration information includes a configuration process for at least one question-and-answer strategy, which is used to process questions in the game's question-and-answer system; including:

[0011] The acquisition module is used to acquire the target problem to be processed;

[0012] The determination module is used to determine the target game to which the target problem belongs, and to determine the target configuration information corresponding to the target game from multiple configuration information on the Nacos;

[0013] The generation module is used to generate the question-and-answer strategy chain corresponding to the target game according to the target configuration process in the target configuration information and the chain of responsibility pattern.

[0014] The processing module is used to process the target question through the question-answering strategy chain.

[0015] Thirdly, embodiments of this disclosure also provide a server device, including a memory and a processor, wherein the memory stores a computer program that can run on the processor, and the processor executes the computer program to implement the method described in the first aspect above.

[0016] Fourthly, embodiments of this disclosure also provide a computer-readable storage medium storing computer-executable instructions that, when invoked and executed by a processor, cause the processor to perform the method described in the first aspect above.

[0017] The embodiments disclosed herein bring the following beneficial effects:

[0018] This disclosure provides a method, apparatus, and server device for processing question-and-answer data in games. Each game corresponds to one configuration information, and multiple configuration information for multiple games is set on Nacos. The configuration information includes a configuration process for at least one question-and-answer strategy. The question-and-answer strategy is used to handle questions in the game's question-and-answer system. The method can obtain the target question to be processed, determine the target game to which the target question belongs, and determine the target configuration information corresponding to the target game from multiple configuration information on Nacos. According to the target configuration process in the target configuration information, a question-and-answer strategy chain corresponding to the target game is generated according to the chain of responsibility model, and the target question is processed through the question-and-answer strategy chain. In this solution, by using the question-and-answer strategy information configured on Nacos, different question-and-answer strategies can be dynamically configured between different games, and the question-and-answer strategies can be modified at any time as needed to adapt to different business requirements. At the same time, since each game corresponds to one configuration information, different strategies can be customized for different games. The question-and-answer strategies of each game are independent and will not affect each other, improving the effectiveness of the game's question processing results and alleviating the technical problem of low effectiveness of game question processing results.

[0019] To make the above-mentioned objects, features and advantages of this disclosure more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0020] To more clearly illustrate the technical solutions in the specific embodiments of this disclosure or the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0021] Figure 1 The illustration shows an application scenario provided by an embodiment of this disclosure;

[0022] Figure 2 A schematic diagram of the structure of a server provided in an embodiment of this disclosure is shown;

[0023] Figure 3 A flowchart illustrating a method for processing game question-and-answer data provided in an embodiment of this disclosure;

[0024] Figure 4 A schematic diagram of the interface for creating configuration information provided in an embodiment of this disclosure;

[0025] Figure 5 Another flowchart illustrating the method for processing game question-and-answer data provided in this embodiment of the disclosure;

[0026] Figure 6 A schematic diagram of the structure of a device for processing question-and-answer data in a game, provided in an embodiment of this disclosure;

[0027] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure is shown. Detailed Implementation

[0028] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.

[0029] The terms “comprising” and “having”, and any variations thereof, used in the embodiments of this disclosure are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the steps or units listed, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to such processes, methods, products, or devices.

[0030] Currently, in traditional question-answering systems, the chain of responsibility is fixed. Different games or scenarios may require different question-answering processes, but current implementations cannot dynamically configure different question-answering strategies based on different games. For example, in some scenarios, a recommendation-based strategy might be more suitable for answering questions, while in others, a generative strategy might be more appropriate. Alternatively, in some scenarios, it might be necessary to remove the generative strategy and retain only the retrieval, recommendation, and fallback strategies. However, because the chain of responsibility is fixed and cannot be dynamically configured according to different scenarios, this requirement cannot be met, resulting in lower effectiveness of the game's question-handling results. Furthermore, the strategies in traditional question-answering systems are usually hard-coded into the code, making modification and maintenance difficult.

[0031] Based on this, the present disclosure provides a method, apparatus, and server device for processing question and answer data in games. This method can alleviate the technical problem of low effectiveness of question processing results in games, and is also easy to modify and maintain.

[0032] In one embodiment of this disclosure, the method for processing game question-and-answer data can run on a local terminal device or a server. When the method for processing game question-and-answer data runs on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.

[0033] In an optional implementation, various cloud applications, such as cloud gaming, can run under the cloud interaction system. Taking cloud gaming as an example, cloud gaming refers to a gaming method based on cloud computing. In the cloud gaming operating mode, the game program and the game screen presentation are separated. The storage and execution of the question-and-answer data processing method in the game are completed on the cloud gaming server. The client device is used for data reception, transmission, and game screen presentation. For example, the client device can be a display device with data transmission capabilities located close to the user, such as a mobile terminal, television, computer, or PDA; however, the information processing is performed by the cloud gaming server in the cloud. When playing the game, the player operates the client device to send operation commands to the cloud gaming server. The cloud gaming server runs the game according to the operation commands, encodes and compresses the game screen and other data, returns it to the client device via the network, and finally, the client device decodes and outputs the game screen.

[0034] In an optional implementation, taking a game as an example, the local terminal device stores the game program and is used to display the game screen. The local terminal device is used to interact with the player through a graphical user interface (GUI), i.e., conventionally by downloading, installing, and running the game program via an electronic device. The local terminal device can provide the GUI to the player in various ways, such as rendering it on the terminal's display screen or providing it to the player via holographic projection. For example, the local terminal device can include a display screen for displaying the GUI, which includes game screens, and a processor for running the game, generating the GUI, and controlling the display of the GUI on the display screen.

[0035] In one possible implementation, this disclosure provides a method for processing question-and-answer data in a game, wherein the steps of the method are executed by a server device, and the terminal device may be the aforementioned local terminal device or a server in the aforementioned cloud interaction system.

[0036] For example, such as Figure 1 As shown, Figure 1 This is a schematic diagram illustrating an application scenario provided by an embodiment of this disclosure. The application scenario may include a client and a server device 101. The client can communicate with the server device 101 via a wired or wireless network. The client runs a virtual desktop, through which it can interact with the server device 101 to interact with content on the server device 101.

[0037] The server device 101 in this embodiment is described using server 200 as an example.

[0038] Figure 2This is a schematic diagram of the structure of a server-side device provided in an embodiment of this disclosure. Figure 1 As shown, server 200 includes memory 201 and processor 202. The memory stores a computer program that can run on the processor. When the processor executes the computer program, it implements the steps in the game question and answer data processing method provided in this embodiment of the present disclosure.

[0039] See Figure 2 The server 200 also includes a bus 203 and a communication interface 204. The processor 202, the communication interface 204 and the memory 201 are connected via the bus 203. The processor 202 is used to execute executable modules, such as computer programs, stored in the memory 201.

[0040] The embodiments of this disclosure will be further described below with reference to the accompanying drawings.

[0041] Figure 3 This is a flowchart illustrating a method for processing question-and-answer data in a game, provided in an embodiment of this disclosure. The method can be applied to a server-side device. Each game corresponds to one configuration information, and multiple configuration information entries for multiple games are set on Nacos. The configuration information includes a configuration process for at least one question-and-answer strategy, which is used to handle questions in the game's question-and-answer system. Figure 3 As shown, the method includes:

[0042] Step S310: Obtain the target problem to be processed.

[0043] It's important to note that Nacos is a dynamic service discovery, configuration management, and service management platform that facilitates the building of cloud-native applications. It supports service registration, discovery, configuration management, and monitoring across multiple data centers. Nacos's main functions include: Service registration and discovery (Nacos provides complete service registration and discovery capabilities, supporting registration and discovery of multiple protocols and service types); Configuration management (Nacos supports dynamic configuration management, enabling real-time configuration updates and supporting multiple configuration formats); Service management (Nacos provides service inspection and traffic management functions, allowing for rapid fault location and canary deployments); and Load balancing (Nacos supports various load balancing algorithms, such as round-robin, random, and least connections, which can be configured according to actual business needs).

[0044] In practical applications, Nacos demonstrates high availability, meaning it's a highly available system supporting multi-node deployment and data synchronization, ensuring system availability and data consistency. Nacos is also easy to use, providing an easy-to-use website user interface (Web UI) and rich application programming interfaces (APIs) for convenient service configuration and management. Furthermore, Nacos supports multiple languages ​​and protocols, facilitating easy integration with various applications. As an open-source project, Nacos is completely free to use. Therefore, Nacos is a powerful, easy-to-use, and highly available service discovery, configuration management, and service management platform, making it a crucial tool for cloud-native application development and management.

[0045] In this embodiment of the disclosure, multiple game configuration sets (i.e., configuration information) are created on Nacos, with each game corresponding to one configuration set. These configuration sets can be used to configure the question-answering strategy information required by a particular game. Nacos provides a solution for dynamically configuring question-answering strategies for different games, enabling different games to dynamically configure different question-answering strategies and the sequence of these strategies.

[0046] As an optional implementation, the configuration information may also include one or more of the following: the type of question-answering strategy, the priority of multiple question-answering strategies, and the identifier of the question-answering strategy. By including more data related to the question-answering strategy, such as the type and identifier, the configuration information becomes more comprehensive.

[0047] The question-answering strategy is used to handle questions in the game's question-answering system. Within the system, it's an algorithm or method for selecting the most appropriate answer and returning it to the user. This is mentioned in the configuration information, such as... Figure 4 As shown, the question-answering strategy can be initialized based on the configuration information and provides corresponding processing methods to handle questions in a given question-answering system.

[0048] In practical applications, the question-answering strategies in the configuration information can include various types, making the handling of questions in the game question-answering system more flexible and comprehensive. For example, question-answering strategies include any one or more of the following: retrieval strategy, recommendation strategy, generative strategy, fallback strategy, hybrid strategy, and interactive strategy.

[0049] Among these strategies, retrieval-based strategies find the most relevant answer from a pre-prepared question-and-answer knowledge text database by searching for keywords or phrases input by the user. Generative strategies, based on an understanding of the question, generate new answers using algorithms; these answers may be extracted from the text database or be entirely new. Hybrid strategies combine the advantages of retrieval and generative strategies, using a retrieval-based strategy for initial searching and then generating or adjusting answers based on user needs. Interactive strategies guide users to provide more information or clarify the question, gradually narrowing down the range of answers until the most suitable one is returned. Recommendation-based strategies use recommendation algorithms to return the most likely answer. A fallback strategy returns a pre-set fallback answer when all other strategies fail.

[0050] Different games can utilize different question-and-answer strategies, and the choice of a suitable strategy depends on factors such as the nature of the question, user needs, and system resources. For example, different strategies can be responsible for different question-and-answer scenarios and can return different outputs based on different inputs.

[0051] Different question-answering strategies can be implemented in the configuration information, such as... Figure 4 As shown, various question-answering strategies can be created in the configuration information, such as retrieval strategies, recommendation strategies, generative strategies, and fallback strategies, etc.

[0052] Step S320: Determine the target game to which the target problem belongs, and determine the target configuration information corresponding to the target game from multiple configuration information on Nacos.

[0053] As one possible implementation, a strategy management module can be built into the application. This module is used to retrieve the configuration process of the game's question-and-answer strategy from the configuration information corresponding to a specific game on Nacos. For example, ... Figure 4 As shown, the game's question-and-answer strategy configuration is read.

[0054] Step S330: Based on the target configuration process in the target configuration information, generate the question-and-answer strategy chain corresponding to the target game according to the chain of responsibility model.

[0055] Among them, the Chain of Responsibility pattern is a behavioral design pattern. The system can use the Chain of Responsibility pattern to define a question-and-answer process. The Chain of Responsibility pattern can form a chain of multiple objects, i.e., question-and-answer strategies, so that the request passes through each object in turn on the chain until an object handles the request or all objects are unable to handle it.

[0056] For example, in the Chain of Responsibility pattern, a request is encapsulated and passed along the question-answering strategy chain, processed by each processor in the chain. Each processor has a chance to handle the request. If a processor can handle the request, it processes it and returns the result. If a processor cannot handle the request, it is passed to the next processor until a processor capable of handling the request is found.

[0057] In this embodiment of the disclosure, the configuration information includes a corresponding question-and-answer strategy and its configuration process, such as... Figure 4 As shown, the system combines these question-and-answer strategies into a question-and-answer strategy chain according to the configuration process. The system can also obtain the latest configuration information of a game from Nacos in real time and update the corresponding question-and-answer strategy chain for that game.

[0058] For example, in a question-and-answer process, retrieval strategies, recommendation strategies, generative strategies, and fallback strategies are linked together into a chain of responsibility model. When a user asks a question, the system can first use a retrieval strategy to search for possible answers. If the retrieval strategy cannot return an answer or the answer threshold is too low, the question will be passed to the next strategy, namely the recommendation strategy. Subsequent recommendation strategies will follow the same logic; if they cannot return an answer or the answer threshold is too low, the question will be passed to the next strategy, namely the generative strategy. Finally, if the generative strategy also cannot return an answer or the answer threshold is too low, the question will be passed to the fallback strategy.

[0059] The chain-of-responsibility pattern for question-and-answer strategies separates request processing logic, making the code more flexible and maintainable. Furthermore, the chain-of-responsibility pattern allows for dynamic modification of the question-and-answer strategy chain at runtime, enabling more flexible request handling.

[0060] When implementing the Chain of Responsibility pattern, a processor interface and processor implementations in a chain can be defined. Each processor implementation can define a successor processor to pass the request to the next processor if the current processor cannot handle it. The client can then send the request to the first processor in the question-answering strategy chain, which is responsible for passing the request along the chain and to the processor that can handle it.

[0061] Step S340: Process the target question through a question-answering strategy chain.

[0062] One possible implementation is to use a question-answering engine to pass questions to the corresponding game's question-answering strategy chain for processing. The question-answering engine receives user questions and passes them to the game's question-answering strategy chain for processing. The question-answering engine can use the chain-of-responsibility pattern, sequentially passing the question to different question-answering strategies until a suitable answer is found.

[0063] For example, during a question-and-answer process, the system can pass the input question sequentially through each question-and-answer strategy in the chain. If a strategy returns a suitable answer, the entire process ends, and the system returns the answer to the user. Otherwise, the system can continue passing the question to the next strategy until a strategy returns a suitable answer or all strategies in the chain fail to return an answer. Ultimately, the entire process will return a suitable answer to the user.

[0064] When obtaining the question-and-answer strategy chain corresponding to the game, such as Figure 4 As shown, if no solution is found, the default chain of responsibility question-and-answer strategy can be returned. If the answer does not meet the requirements, the next question-and-answer strategy can be executed. If none of the question-and-answer strategies meet the requirements, the answer "No executable question-and-answer strategy found" can be returned.

[0065] In this embodiment, by using the question-and-answer strategy information configured on Nacos, different question-and-answer strategies can be dynamically configured between different games. These strategies can be modified at any time as needed to adapt to different business requirements. Furthermore, since each game corresponds to a unique configuration, different strategies can be customized for different games. Each game's question-and-answer strategy is independent and does not affect others, improving the effectiveness of game problem-solving results and making the system more flexible and maintainable. Administrators can easily add configuration information to new games and configure the corresponding information on Nacos without modifying the code, thus improving system scalability. Moreover, because the question-and-answer strategies are encapsulated as objects and combined into a question-and-answer strategy chain, administrators can combine existing question-and-answer strategy objects into new question-and-answer strategy chains for use in the question-and-answer system of new games without reimplementing the question-and-answer strategies, thereby improving system reusability.

[0066] The steps described above will be explained in detail below.

[0067] In some embodiments, configuration information for multiple different games can be configured on Nacos to accommodate question-and-answer processes for more diverse games. As an example, prior to step S320, the method may further include the following steps:

[0068] Step a) Create configuration information for multiple games on Nacos.

[0069] In practical applications, information can be configured on Nacos based on the input content of input operations. For example, such as... Figure 5 As shown, multiple game configuration sets are created on Nacos based on the content entered in the graphical user interface. Each configuration set corresponds to one game. In each configuration set, the question-and-answer strategy information required by the game can be configured, including the type and priority of the strategy.

[0070] In this embodiment of the disclosure, by configuring the configuration information of multiple different games on Nacos, the question-and-answer process of more different games can be applied, thereby improving the scalability and reusability of the system.

[0071] In some embodiments, configuration information can be obtained through the API interface provided by Nacos to improve the efficiency of configuration information retrieval. As an example, step S320 above may include the following steps:

[0072] Step b) uses the API provided by Nacos through the Nacos client to determine and obtain the target configuration information corresponding to the target game from multiple configuration information on the Nacos server.

[0073] In practical applications, to obtain configuration information from Nacos more quickly and efficiently, such as Figure 4 As shown, a Nacos client can be added to the application. This Nacos client can obtain configuration information from the Nacos server through the API provided by Nacos.

[0074] In this embodiment of the disclosure, by adding a Nacos client to the application, the Nacos client can obtain configuration information through the API interface provided by Nacos, thereby improving the efficiency of obtaining configuration information.

[0075] In some embodiments, a question-answering strategy chain can also be obtained by combining the created question-answering strategies to improve the efficiency of question-answering strategy chain generation. As an example, step S330 above may include the following steps:

[0076] Step c) Create a target question-and-answer strategy based on at least one target question-and-answer strategy in the target configuration information, and combine at least one target question-and-answer strategy according to the chain of responsibility pattern based on the target configuration process in the target configuration information to generate the question-and-answer strategy chain corresponding to the target game.

[0077] A strategy management module can be built into the application. This module retrieves the configuration flow of the question-and-answer strategy for a specific game from the configuration information on Nacos, creates corresponding strategy objects based on the configuration information, and combines them into a strategy chain. The strategy management module can obtain the latest question-and-answer strategy configuration information from Nacos in real time and update the strategy chain for the corresponding game.

[0078] For example, first construct a question-answering strategy, such as Figure 4 As shown, all question-and-answer strategy implementation classes are scanned, and a question-and-answer strategy responsibility chain is generated for each game according to the Nacos configuration. The chain is then placed into the corresponding question-and-answer strategy responsibility chain Map collection for each game based on the name, thereby setting the question-and-answer strategy responsibility chain for each game.

[0079] In this embodiment of the disclosure, the question-answering strategy chain is generated by combining the created question-answering strategies, which can make the generation efficiency of the question-answering strategy chain higher.

[0080] In some embodiments, personnel can also modify the configuration information corresponding to different games to improve the maintainability of the system. As an example, the configuration information also includes the priority of multiple question-answering strategies; the method may also include the following steps:

[0081] Step d) In response to a modification operation on the configuration information, the priority of multiple question-and-answer strategies in the configuration information is modified according to the modification operation.

[0082] As one possible implementation, the strategy management module in the application can obtain the latest question-and-answer strategy configuration information from Nacos in real time and maintain and modify the strategy chain of the corresponding game, thereby solving the problem of difficult modification and maintenance of strategy configuration in the game question-and-answer system.

[0083] Because the configuration information is centrally stored on Nacos, personnel can easily modify and manage policies through the Nacos management interface without modifying the code, thereby improving the maintainability of the system.

[0084] In some embodiments, the question-answering engine can receive questions and pass them to the corresponding game's question-answering strategy chain for processing, thereby improving the efficiency of question processing. As an example, step S340 above may include the following steps:

[0085] Step e) Receive the target question through the question-and-answer engine corresponding to the question-and-answer system, and transmit the target question to the question-and-answer strategy chain corresponding to the target game;

[0086] Step f) involves processing the target problem using a question-and-answer strategy chain based on the chain of responsibility model.

[0087] In practical applications, a question-answering engine can receive user questions and pass them to the corresponding game's strategy chain for processing. This engine can use the chain-of-responsibility pattern, passing the question sequentially to different strategy objects until a suitable answer is found. By receiving questions and passing them to the game's question-answering strategy chain through a question-answering engine, the efficiency of question processing is improved.

[0088] Figure 6 A schematic diagram of a device for processing question-and-answer data in a game is provided. Multiple configuration information corresponding to multiple games is set on Nacos, and the configuration information includes a configuration process for at least one question-and-answer strategy, which is used to handle questions in the game's question-and-answer system. Figure 6 As shown, the question-and-answer data processing device 600 in the game includes:

[0089] Module 601 is used to acquire the target problem to be processed;

[0090] The determination module 602 is used to determine the target game to which the target problem belongs, and to determine the target configuration information corresponding to the target game from multiple configuration information on the Nacos;

[0091] The generation module 603 is used to generate the question-and-answer strategy chain corresponding to the target game according to the target configuration process in the target configuration information and the chain of responsibility pattern.

[0092] Processing module 604 is used to process the target question through the question-answering strategy chain.

[0093] By using the above method and the question-and-answer strategy information configured on Nacos, different question-and-answer strategies can be dynamically configured for different games. The question-and-answer strategies can be modified at any time as needed to adapt to different business requirements. At the same time, since each game corresponds to a configuration information, different strategies can be customized for different games. The question-and-answer strategies of each game are independent and will not affect each other, which improves the effectiveness of the game's problem handling results and alleviates the technical problem of low effectiveness of the game's problem handling results.

[0094] In one feasible implementation, the device further includes:

[0095] A creation module is used to create configuration information for multiple games on the Nacos platform.

[0096] In one feasible implementation, the configuration information also includes any one or more of the following:

[0097] The question-answering strategy type, the priority of multiple question-answering strategies, and the identifier of the question-answering strategy.

[0098] In a feasible implementation, the module is specifically used for:

[0099] By using the API interface provided by Nacos through the Nacos client, the target configuration information corresponding to the target game can be determined and obtained from multiple configuration information on the Nacos server.

[0100] In one feasible implementation, the generation module is specifically used for:

[0101] The target question-answering strategy is created based on at least one target question-answering strategy in the target configuration information, and the target question-answering strategy is combined according to the chain of responsibility pattern based on the target configuration process in the target configuration information to generate the question-answering strategy chain corresponding to the target game.

[0102] In one feasible implementation, the question-answering strategy includes any one or more of the following:

[0103] Search-based strategies, recommendation-based strategies, generative strategies, fallback strategies, hybrid strategies, and interactive strategies.

[0104] In one feasible implementation, the configuration information further includes priorities for multiple question-answering strategies; the device also includes:

[0105] The modification module is used to respond to a modification operation on the configuration information and modify the priority of multiple question-answering strategies in the configuration information according to the modification operation.

[0106] In one feasible implementation, the processing module is specifically used for:

[0107] The system receives the target question through its question-answering engine and transmits it to the question-answering strategy chain corresponding to the target game.

[0108] The target question is addressed using the question-and-answer strategy chain based on the chain of responsibility pattern.

[0109] The game question and answer data processing device provided in this embodiment has the same technical features as the game question and answer data processing method provided in the above embodiment, so it can also solve the same technical problems and achieve the same technical effects.

[0110] Figure 7This diagram illustrates the structure of an electronic device 700 according to an embodiment of the present disclosure. The electronic device 700 includes a processor 701, a storage medium 702, and a bus 703. The storage medium 702 stores machine-readable instructions executable by the processor 701. When the electronic device runs the method as described in the embodiment, the processor 701 communicates with the storage medium 702 via the bus 703. The processor 701 executes the machine-readable instructions. The preamble of the method item of the processor 701 performs the following steps:

[0111] Obtain the target problem to be processed;

[0112] Determine the target game to which the target problem belongs, and determine the target configuration information corresponding to the target game from multiple configuration information on Nacos;

[0113] Based on the target configuration process in the target configuration information, generate the question-and-answer strategy chain corresponding to the target game according to the chain of responsibility pattern;

[0114] The target question is processed through the question-answering strategy chain.

[0115] In one feasible implementation, before determining the target configuration information corresponding to the target game from the plurality of configuration information on the Nacos, the processor is further configured to:

[0116] Multiple configuration information corresponding to the aforementioned games are created on the Nacos.

[0117] In one feasible implementation, the configuration information also includes any one or more of the following:

[0118] The question-answering strategy type, the priority of multiple question-answering strategies, and the identifier of the question-answering strategy.

[0119] In one feasible implementation, when the processor determines the target configuration information corresponding to the target game from a plurality of configuration information on the Nacos, it is specifically used for:

[0120] By using the API interface provided by Nacos through the Nacos client, the target configuration information corresponding to the target game can be determined and obtained from multiple configuration information on the Nacos server.

[0121] In one feasible implementation, when the processor executes the target configuration process based on the target configuration information and generates the question-answering strategy chain corresponding to the target game according to the chain of responsibility pattern, it is specifically used for:

[0122] The target question-answering strategy is created based on at least one target question-answering strategy in the target configuration information, and the target question-answering strategy is combined according to the chain of responsibility pattern based on the target configuration process in the target configuration information to generate the question-answering strategy chain corresponding to the target game.

[0123] In one feasible implementation, the question-answering strategy includes any one or more of the following:

[0124] Search-based strategies, recommendation-based strategies, generative strategies, fallback strategies, hybrid strategies, and interactive strategies.

[0125] In one feasible implementation, the configuration information further includes priorities for multiple question-answering strategies; the processor is also used for:

[0126] In response to a modification operation on the configuration information, the priority of multiple question-answering strategies in the configuration information is modified according to the modification operation.

[0127] In one feasible implementation, when the processor processes the target question through the question-answering strategy chain, it specifically performs the following:

[0128] The system receives the target question through its question-answering engine and transmits it to the question-answering strategy chain corresponding to the target game.

[0129] The target question is addressed using the question-and-answer strategy chain based on the chain of responsibility pattern.

[0130] By using the above method and the question-and-answer strategy information configured on Nacos, different question-and-answer strategies can be dynamically configured for different games. The question-and-answer strategies can be modified at any time as needed to adapt to different business requirements. At the same time, since each game corresponds to a configuration information, different strategies can be customized for different games. The question-and-answer strategies of each game are independent and will not affect each other, which improves the effectiveness of the game's problem handling results and alleviates the technical problem of low effectiveness of the game's problem handling results.

[0131] In practical applications, the storage medium 702 may include high-speed random access memory (RAM) and may also include non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface (which can be wired or wireless), such as the Internet, wide area network, local area network, metropolitan area network, etc.

[0132] Bus 703 can be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 7 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.

[0133] The storage medium 702 is used to store a program. After receiving an execution instruction, the processor 701 executes the program. The method executed by the apparatus defined by the process disclosed in any of the foregoing embodiments of this disclosure can be applied to the processor 701 or implemented by the processor 701.

[0134] The processor 701 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of the processor 701 or by instructions in software form. The processor 701 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be 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 disclosure. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this disclosure can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module 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 storage medium 702. The processor 701 reads the information from storage medium 702 and, in conjunction with its hardware, completes the steps of the above method.

[0135] This disclosure also provides a computer-readable storage medium storing a computer program that is executed by a processor, wherein the processor performs the following steps:

[0136] Obtain the target problem to be processed;

[0137] Determine the target game to which the target problem belongs, and determine the target configuration information corresponding to the target game from multiple configuration information on Nacos;

[0138] Based on the target configuration process in the target configuration information, generate the question-and-answer strategy chain corresponding to the target game according to the chain of responsibility pattern;

[0139] The target question is processed through the question-answering strategy chain.

[0140] In one feasible implementation, before determining the target configuration information corresponding to the target game from the plurality of configuration information on the Nacos, the processor is further configured to:

[0141] Multiple configuration information corresponding to the aforementioned games are created on the Nacos.

[0142] In one feasible implementation, the configuration information also includes any one or more of the following:

[0143] The question-answering strategy type, the priority of multiple question-answering strategies, and the identifier of the question-answering strategy.

[0144] In one feasible implementation, when the processor determines the target configuration information corresponding to the target game from a plurality of configuration information on the Nacos, it is specifically used for:

[0145] By using the API interface provided by Nacos through the Nacos client, the target configuration information corresponding to the target game can be determined and obtained from multiple configuration information on the Nacos server.

[0146] In one feasible implementation, when the processor executes the target configuration process based on the target configuration information and generates the question-answering strategy chain corresponding to the target game according to the chain of responsibility pattern, it is specifically used for:

[0147] The target question-answering strategy is created based on at least one target question-answering strategy in the target configuration information, and the target question-answering strategy is combined according to the chain of responsibility pattern based on the target configuration process in the target configuration information to generate the question-answering strategy chain corresponding to the target game.

[0148] In one feasible implementation, the question-answering strategy includes any one or more of the following:

[0149] Search-based strategies, recommendation-based strategies, generative strategies, fallback strategies, hybrid strategies, and interactive strategies.

[0150] In one feasible implementation, the configuration information further includes priorities for multiple question-answering strategies; the processor is also used for:

[0151] In response to a modification operation on the configuration information, the priority of multiple question-answering strategies in the configuration information is modified according to the modification operation.

[0152] In one feasible implementation, when the processor processes the target question through the question-answering strategy chain, it specifically performs the following:

[0153] The system receives the target question through its question-answering engine and transmits it to the question-answering strategy chain corresponding to the target game.

[0154] The target question is addressed using the question-and-answer strategy chain based on the chain of responsibility pattern.

[0155] By using the above method and the question-and-answer strategy information configured on Nacos, different question-and-answer strategies can be dynamically configured for different games. The question-and-answer strategies can be modified at any time as needed to adapt to different business requirements. At the same time, since each game corresponds to a configuration information, different strategies can be customized for different games. The question-and-answer strategies of each game are independent and will not affect each other, which improves the effectiveness of the game's problem handling results and alleviates the technical problem of low effectiveness of the game's problem handling results.

[0156] In this embodiment of the disclosure, the computer program, when run by the processor, can also execute other machine-readable instructions to perform other methods as described in the embodiments. For details on the specific execution steps and principles, please refer to the description of the embodiments, which will not be repeated here.

[0157] In the embodiments provided in this disclosure, it should be understood that the disclosed apparatus and methods can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the displayed or discussed mutual couplings or direct couplings or communication connections may be through some communication interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.

[0158] For example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0159] 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.

[0160] In addition, the functional units in the embodiments provided in this disclosure 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.

[0161] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this disclosure, in essence, 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 game question-and-answer data processing method described in the various embodiments of this disclosure. The aforementioned storage medium includes: USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, optical disks, and other media capable of storing program code.

[0162] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0163] Finally, it should be noted that the above-described embodiments are merely specific implementations of this disclosure, used to illustrate the technical solutions of this disclosure, and not to limit it. The scope of protection of this disclosure is not limited thereto. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this disclosure; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this disclosure. All should be covered within the scope of protection of this disclosure. Therefore, the scope of protection of this disclosure should be determined by the scope of the claims.

Claims

1. A method for processing question-and-answer data in a game, characterized in that, Each game corresponds to a configuration information, and multiple configuration information for multiple games are set on Nacos. The configuration information includes a configuration process for at least one question-answering strategy, which is used to handle questions in the game's question-answering system. The method includes: Obtain the target problem to be processed; Determine the target game to which the target problem belongs, and determine the target configuration information corresponding to the target game from multiple configuration information on Nacos; The target question-answering strategy is created based on at least one target question-answering strategy in the target configuration information, and the target question-answering strategy is combined according to the chain of responsibility pattern according to the target configuration process in the target configuration information to generate the question-answering strategy chain corresponding to the target game. The target question is processed through the question-answering strategy chain.

2. The method according to claim 1, characterized in that, Before the step of determining the target configuration information corresponding to the target game from the plurality of configuration information on the Nacos, the method further includes: Multiple configuration information corresponding to the aforementioned games are created on the Nacos.

3. The method according to claim 1, characterized in that, The configuration information also includes any one or more of the following: The question-answering strategy type, the priority of multiple question-answering strategies, and the identifier of the question-answering strategy.

4. The method according to claim 1, characterized in that, The step of determining the target configuration information corresponding to the target game from multiple configuration information on the Nacos includes: By using the API interface provided by Nacos through the Nacos client, the target configuration information corresponding to the target game can be determined and obtained from multiple configuration information on the Nacos server.

5. The method according to claim 1, characterized in that, The question-answering strategy includes any one or more of the following: Search-based strategies, recommendation-based strategies, generative strategies, fallback strategies, hybrid strategies, and interactive strategies.

6. The method according to claim 1, characterized in that, The configuration information also includes the priorities of multiple question-answering strategies; and also includes: In response to a modification operation on the configuration information, the priority of multiple question-answering strategies in the configuration information is modified according to the modification operation.

7. The method according to claim 1, characterized in that, The step of processing the target question through the question-answering strategy chain includes: The system receives the target question through its question-answering engine and transmits it to the question-answering strategy chain corresponding to the target game. The target question is addressed using the question-and-answer strategy chain based on the chain of responsibility pattern.

8. A device for processing question-and-answer data in a game, characterized in that, Each game corresponds to a configuration information, and multiple configuration information for multiple games are set on Nacos. The configuration information includes a configuration process for at least one question-answering strategy, which is used to handle questions in the game's question-answering system; including: The acquisition module is used to acquire the target problem to be processed; The determination module is used to determine the target game to which the target problem belongs, and to determine the target configuration information corresponding to the target game from multiple configuration information on the Nacos; The generation module is used to generate the question-and-answer strategy chain corresponding to the target game according to the target configuration process in the target configuration information and the chain of responsibility pattern. The processing module is used to process the target question through the question-answering strategy chain; The generation module is specifically used to: create the target question-and-answer strategy based on at least one target question-and-answer strategy in the target configuration information, and combine at least one target question-and-answer strategy according to the chain of responsibility pattern based on the target configuration process in the target configuration information to generate the question-and-answer strategy chain corresponding to the target game.

9. A server-side device, comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, characterized in that, When the processor executes the computer program, it implements the method described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions that, when invoked and executed by a processor, cause the processor to perform the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Business data pushing method and device and storage medium

    CN111953763A

  • Distributed caching method and system for IOT scene

    CN113392132A