CN113254614A - Intelligent question answering method, device, equipment and computer readable storage medium - Google Patents

Intelligent question answering method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN113254614A
CN113254614A CN202110571016.8A CN202110571016A CN113254614A CN 113254614 A CN113254614 A CN 113254614A CN 202110571016 A CN202110571016 A CN 202110571016A CN 113254614 A CN113254614 A CN 113254614A
Authority
CN
China
Prior art keywords
configuration
target
template
question
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110571016.8A
Other languages
Chinese (zh)
Inventor
李翠
刘永铭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Securities Co Ltd
Original Assignee
Ping An Securities Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Securities Co Ltd filed Critical Ping An Securities Co Ltd
Priority to CN202110571016.8A priority Critical patent/CN113254614A/en
Publication of CN113254614A publication Critical patent/CN113254614A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3329Natural language query formulation or dialogue systems

Abstract

The invention relates to the technical field of data processing, and discloses an intelligent question answering method, an intelligent question answering device, intelligent question answering equipment and a computer readable storage medium. The method comprises the steps of receiving an input target problem and obtaining a target template matched with the target problem in a preset cache service; determining interface address information in the target template and acquiring answer data corresponding to the target question according to the target question and the interface address information; optimizing the answer data according to the configuration information in the target template to obtain target data, and outputting the target data; the problem of the low efficiency of the intelligent question answering equipment in the correlation technique is solved. That is, the target template matched with the target problem is preset in the cache service in advance, so that when the target problem is received, the target template matched with the target problem can be directly obtained in the cache service, and target data is obtained and output according to configuration information in the target template; the problem of low question-answering efficiency of intelligent question-answering equipment in the prior art is avoided.

Description

Intelligent question answering method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to an intelligent question and answer method, an intelligent question and answer apparatus, an intelligent question and answer device, and a computer-readable storage medium.
Background
In order to make the security service more intelligent, companies in the industry have put forward intelligent question-answering equipment such as intelligent robot service, so that the online transaction of various businesses and the question-answering of stock service of users are realized, and the user experience is improved. At present, when a problem is received, the intelligent robot service searches corresponding problem answer data from one template, so that the searching time of a plurality of problem answer data is wasted, the efficiency is very low, the problem answer data is output slowly, and the use experience of a user is reduced.
Therefore, how to improve the question answering efficiency of the intelligent question answering equipment is a problem to be solved urgently.
Disclosure of Invention
The invention mainly aims to provide an intelligent question and answer method, an intelligent question and answer device, intelligent question and answer equipment and a computer readable storage medium, and aims to improve the question and answer efficiency of intelligent question and answer equipment.
In order to achieve the above object, the present invention provides an intelligent question-answering method, which comprises the following steps:
receiving an input target problem, acquiring a plurality of preset configuration templates in a cache service, matching the target problem with each configuration template, and taking the configuration template matched with the target problem as the target template if the configuration template matched with the target problem exists in each configuration template;
determining interface address information in the target template, and acquiring answer data corresponding to the target question according to the target question and the interface address information;
and optimizing the answer data according to the configuration information in the target template to obtain target data, and outputting the target data.
Optionally, the step of obtaining answer data corresponding to the target question according to the target question and the interface address information includes:
determining a target website corresponding to the interface address information;
and accessing the target website according to a preset http request mode to obtain answer data corresponding to the target question.
Optionally, the step of optimizing the answer data according to the configuration information in the target template to obtain target data includes:
acquiring a style character string in the configuration information;
splicing the style character string and the answer data according to a preset style label to obtain spliced data;
and determining target data according to the splicing data.
Optionally, the step of determining target data according to the splicing data includes:
acquiring componentized configuration in the configuration information;
and loading the componentized configuration and the splicing data into target data according to a preset loading mode.
Optionally, the step of obtaining a plurality of preset configuration templates in the cache service includes:
determining a configuration platform corresponding to the cache service; the configuration platform is provided with a plurality of original templates in advance, a target original template is determined in each original template according to an input first selection instruction, and configuration information is added to the target original template to obtain a configuration template;
obtaining a plurality of configuration templates from the configuration platform through the caching service; and the configuration templates obtained from the configuration platform are preset configuration templates in the cache service.
Optionally, the step of obtaining a plurality of configuration templates from the configuration platform through the caching service includes:
matching the existing configuration template in the cache service with each configuration template of the configuration platform;
if the common configuration template which is the same as the configuration template of the configuration platform does not exist in the existing configuration templates in the cache service, storing the configuration template of the configuration platform into the cache service;
if the shared configuration template identical to the configuration template of the configuration platform exists in the configuration templates existing in the cache service, the configuration template of the configuration platform is abandoned, or the shared configuration template in the cache service is replaced by the configuration template of the configuration platform.
Optionally, after the step of obtaining a plurality of configuration templates from the configuration platform through the cache service, the intelligent question answering method further includes:
obtaining an updated configuration template from the configuration platform through the cache service; the configuration platform is provided with a plurality of configuration templates in advance, a target configuration template is determined in each configuration template according to an input second selection instruction, and the target configuration template is updated to obtain an updated configuration template.
In addition, in order to achieve the above object, the present invention also provides an intelligent question answering device, including:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for receiving an input target problem, acquiring a plurality of preset configuration templates in a cache service, matching the target problem with each configuration template, and taking the configuration template matched with the target problem as the target template if the configuration template matched with the target problem exists in each configuration template;
the second acquisition module is used for determining interface address information in the target template and acquiring answer data corresponding to the target question according to the target question and the interface address information;
and the optimization module is used for optimizing the answer data according to the configuration information in the target template so as to obtain target data and output the target data.
In addition, to achieve the above object, the present invention also provides an intelligent question answering apparatus, including: a memory, a processor and a smart question-and-answer program stored on the memory and running on the processor, the smart question-and-answer program when executed by the processor implementing the steps of the smart question-and-answer method as above.
In addition, to achieve the above object, the present invention also provides a computer readable storage medium having stored thereon a smart question-and-answer program, which when executed by a processor, implements the steps of the smart question-and-answer method as above.
According to the technical scheme provided by the invention, the input target problem is received, a plurality of preset configuration templates are obtained in the cache service, the target problem is matched with each configuration template, and if the configuration template matched with the target problem exists in each configuration template, the configuration template matched with the target problem is used as the target template; determining interface address information in the target template, and acquiring answer data corresponding to the target question according to the target question and the interface address information; optimizing answer data according to configuration information in the target template to obtain target data and outputting the target data; the problem of the low efficiency of the intelligent question answering equipment in the correlation technique is solved.
That is, according to the technical scheme provided by the invention, the target template matched with the target problem is preset in the cache service in advance, so that when the target problem is received, the target template matched with the target problem can be directly obtained in the cache service, and the answer of the target problem is optimized according to the configuration information in the target template, so that the target data is obtained and output; the phenomenon that the answer searching time is long in the prior art is avoided, and the question answering efficiency of the intelligent question answering equipment is improved to a great extent.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the structures shown in the drawings without creative efforts.
FIG. 1 is a schematic diagram of an intelligent question answering device of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first embodiment of the intelligent question answering method according to the present invention;
FIG. 3 is a schematic flow chart of a second embodiment of the intelligent question answering method according to the present invention;
FIG. 4 is a schematic flow chart of a third embodiment of the intelligent question-answering method according to the present invention;
FIG. 5 is a schematic flow chart of a fourth embodiment of the intelligent question answering method according to the present invention;
fig. 6 is a block diagram showing the structure of the first embodiment of the intelligent question answering device according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an intelligent question-answering device in a hardware operating environment according to an embodiment of the present invention.
The intelligent question answering device comprises: at least one processor 1001, a memory 1002, and a smart question-and-answer program stored on the memory and executable on the processor, the smart question-and-answer program being configured to implement the steps of the smart question-and-answer method of any one of the following embodiments.
Processor 1001 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 1001 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1001 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also referred to as a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1001 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. Processor 1001 may also include an AI (Artificial Intelligence) processor for processing relevant intelligent question-answering method operations so that an intelligent question-answering method model may train learning autonomously, improving efficiency and accuracy.
Memory 1002 may include one or more computer-readable storage media, which may be non-transitory. Memory 1002 may also include high-speed random access memory, as well as non-volatile memory, such as one or more of a disk-storage smart question-answering device, a flash-storage smart question-answering device. In some embodiments, a non-transitory computer readable storage medium in memory 1002 is used to store at least one instruction for execution by processor 1001 to implement the intelligent question-answering method provided by the method embodiments herein.
In some embodiments, the smart question answering device may further include: a communication interface 1003 and at least one peripheral device. The processor 1001, the memory 1002, and the communication interface 1003 may be connected by a bus or signal line. Various peripheral devices may be connected to communications interface 1003 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1004, a display screen 1005, and a power supply 1006.
The communication interface 1003 may be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 1001 and the memory 1002. In some embodiments, processor 1001, memory 1002, and communication interface 1003 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1001, the memory 1002 and the communication interface 1003 may be implemented on separate chips or circuit boards, which is not limited by the embodiment.
The Radio Frequency circuit 1004 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuit 1004 communicates with a communication network and other communication smart question answering devices through electromagnetic signals. The radio frequency circuit 1004 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1004 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1004 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 1004 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1005 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1005 is a touch display screen, the display screen 1005 also has the ability to capture touch signals on or over the surface of the display screen 1005. The touch signal may be input to the processor 1001 as a control signal for processing. At this point, the display screen 1005 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 1005 may be one, the front panel of the smart question answering device; in other embodiments, the number of the display screens 1005 may be at least two, and the at least two display screens 1005 are respectively disposed on different surfaces of the intelligent question answering device or are in a folding design; in some embodiments, the display screen 1005 may be a flexible display screen disposed on a curved surface or a folded surface of the smart question answering device. Even more, the display screen 1005 may be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The Display screen 1005 may be made of LCD (liquid crystal Display), OLED (Organic Light-Emitting Diode), and the like.
Power supply 1006 is used to power the various components of the smart question answering device. The power supply 1006 may be ac, dc, disposable or rechargeable. When the power supply 1006 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
Those skilled in the art will appreciate that the configuration shown in FIG. 1 does not constitute a limitation of the intelligent question answering device, and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
Based on the above hardware structure, embodiments of the present invention are proposed.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the intelligent question-answering method of the present invention, and the intelligent question-answering method includes the following steps:
step S10: receiving an input target problem, acquiring a plurality of preset configuration templates in a cache service, matching the target problem with each configuration template, and taking the configuration template matched with the target problem as the target template if the configuration template matched with the target problem exists in each configuration template.
The intelligent question answering device in the embodiment includes, but is not limited to, an intelligent robot, and the following description will be given by taking the intelligent robot as an example. The intelligent robot can be used for realizing on-line transaction of various businesses of a user, stock service and other questions and answers.
It can be understood that, in the existing intelligent robot service, developers use tools to develop corresponding functions, and the functions are tested and then released to a production environment for users to use; the whole process needs to pass through the processes of product manager review, development, test, release and the like, the process is complex, the online time is long, and the development efficiency of the intelligent robot is seriously influenced.
Therefore, in the embodiment, the intelligent robot question-answer configuration platform is developed, the product rapidly configures the front-end display template and the interface required by display, service release is rapidly realized, and the development efficiency of the intelligent robot is improved. It can be understood that before receiving an input target problem, the intelligent robot needs to be configured with various parameters, that is, a UM account number input by a configurator is received in a configuration platform page for login, and after the configurator successfully logs in, a corresponding page window is actively displayed, and when it is detected that a user triggers a template configuration key in the page window, the page window is converted into an editable window for the configurator to edit and configure a template selected in advance in the editable window; such as editing parameter information in an editable window, such as configuration template name, template description, template ID, interface ID, style string, and componentized configuration.
It can be understood that after the configuration of the template is completed by the configurator, when a preview button instruction triggered by the configurator can be received, the page can be previewed according to the preview button instruction, that is, the page requests the server interface according to various configured parameter information in the editable window, and after data corresponding to the preview button instruction is acquired according to the server interface, a corresponding UI is displayed in the preview page according to the configured style character string and the componentized configuration information. The data corresponding to the preview button instruction acquired by the configuration platform is acquired through an interface configured in http request information, and after the data is acquired, the data is displayed on a pop-up layer in the configuration platform. And if the template configuration key of the user is detected again, the template is edited and configured again. However, if an input saving instruction is detected, the edited template is saved and issued to the redis cache service for the user to apply during intelligent question answering. Namely, the template in the redis cache service is used for the central control node service to call.
It should be noted that, in the redis caching service in this embodiment, not only the currently configured template is stored, but also other templates are reserved, and all the other templates are configured in advance and issued to the redis caching service, that is, the number of templates in the redis is greater than 1. And redis an open source (BSD licensed), ANSIC language written, high-level key-value (key-value) cache and supporting persistent storage NoSql databases that can be used as database, cache and messaging middleware. It supports multiple data types including, but not limited to, string (string), dictionary (hash), list (list), set (set), ordered set.
It can be understood that, in this embodiment, when there are each configured template in the redis caching service, a question input by a user, that is, a target question, may be received in an input box of the robot question and answer page, and after the target question is received, the target question may be sent to the central control node service through an http request, and the central control node service determines the target template in the redis caching service according to the input target question, and after the target template is determined, sends the target question to the target website according to interface address information in the target template, so as to obtain answer data. The method for determining the target template according to the target problem may be to determine the target template in each template according to the tag information carried by the target problem itself.
In this embodiment, when determining a target template matching a target problem, it is necessary to first obtain a plurality of configuration templates preset in a cache service, and then match the target problem with each configuration template in sequence, that is, match the tag information carried by the target problem with a plurality of configuration templates in a central control node and a redis cache service. If a certain configuration template is found to be matched with the mark information carried by the target problem, the configuration template can be used as the target template, that is, when a configuration template matched with the target problem exists in each configuration template, the configuration template matched with the target problem can be used as the target template. Wherein the flag information may determine the type of the target question, e.g., the target question is a question, e.g., "what are you called? "or the target question is a judgment sentence, such as" is you little excellent or small? "and the like. And the target templates corresponding to different types of target questions are different.
Step S20: and determining interface address information in the target template, and acquiring answer data corresponding to the target question according to the target question and the interface address information.
In this embodiment, after the target template corresponding to the target question is acquired in the cache service through the central control node service, the configuration information in the target template is actively extracted, and after the configuration information is extracted, the interface address information in the configuration information is acquired, the target website is determined according to the interface address information, and the data (i.e., answer data) corresponding to the target question is acquired in the target website in a http request data manner. The http request comprises a request line, a request header, a null line and a data body. The request line includes a request method, a request address URL, and an HTTP protocol version. There are various request methods such as GET (request for a resource in its entirety), POST (submit form), PUT (upload file), DELETE (DELETE), PATCH, HEAD (request only response header), OPTIONS (method supported by returning the requested resource), and TRACE (agent passed in the middle of pursuing a resource request). The request address URL (uniform resource locator) is an abstract unique identification method of a resource position, and comprises a protocol (protocol)/< host > < port >/< path >. The http protocol version is a deterministic version format. The request header adds some additional information to the request message. The request data contains specific content information of the target question.
In this embodiment, the step of obtaining answer data corresponding to the target question according to the target question and the interface address information may include the following steps:
firstly, determining a target website corresponding to interface address information;
and then, accessing the target website according to a preset http request mode to acquire answer data corresponding to the target question.
In this embodiment, when obtaining answer data corresponding to a target question, a target website corresponding to interface address information needs to be determined first, then the target website is accessed according to a preset http request mode, and data information, that is, answer data, associated with the target question is obtained in the target website.
Step S30: and optimizing the answer data according to the configuration information in the target template to obtain target data and outputting the target data.
In this embodiment, after the answer data is obtained through the central control node service, each piece of configuration information in the target template needs to be obtained first, so that the answer data is optimized according to the configuration information, and the target data is obtained; for example, the answer data is spliced to the stylized character string in the configuration information, the answer data of the spliced stylized character string and the componentized configuration in the configuration information are componentized by an vue componentization method to obtain target data, and the target data is output.
In this embodiment, the step of optimizing the answer data according to the configuration information in the target template to obtain the target data may include the following steps:
firstly, acquiring a style character string in configuration information;
then, splicing the style character string and the answer data according to a preset style label to obtain spliced data;
and then, determining target data according to the splicing data.
In this embodiment, when optimizing answer data, it is necessary to first obtain a style string in configuration information, then splice the style string and the answer data according to a preset style label to obtain spliced data, and then perform vue componentization on the spliced data to obtain target data. Wherein the < style > tag is used to define style information for the HTML document.
In this embodiment, the step of determining the target data according to the splicing data may include the following steps:
firstly, acquiring componentized configuration in configuration information;
and then, loading the componentized configuration and splicing data into target data according to a preset loading mode.
In this embodiment, the set componentized configuration in the configuration information is obtained, and the componentized configuration and the spliced data are loaded together in a preset loading manner to become target data. Namely, the splicing data and the componentization configuration are initialized into a new component (namely target data) in a loading mode, and the application interface calls the new component to display. Wherein, the loading mode can be vue modularization method.
In the embodiment, the target template matched with the target problem is obtained in the preset cache service by receiving the input target problem; determining interface address information in the target template, and acquiring answer data corresponding to the target question according to the target question and the interface address information; optimizing answer data according to configuration information in the target template to obtain target data and outputting the target data; the problem of low development efficiency of intelligent question answering equipment in the related art is solved. That is, in this embodiment, by presetting a target template matching the target problem in the cache service in advance, when the target problem is received, the target template matching the target problem can be directly obtained in the cache service, and the answer to the target problem is optimized according to the configuration information in the target template, so as to obtain the target data and output the target data; the phenomenon that the answer searching time is long in the prior art is avoided, and the question answering efficiency of the intelligent question answering equipment is improved to a great extent.
Referring to fig. 3, fig. 3 is a schematic flowchart illustrating a WIFI attack detection method according to a second embodiment of the present invention; in this embodiment, the step of obtaining a plurality of preset configuration templates in the caching service in step S10 may include the following steps:
step S100: determining a configuration platform corresponding to the cache service; the configuration platform is preset with a plurality of original templates, a target original template is determined in each original template according to an input first selection instruction, and configuration information is added to the target original template to obtain a configuration template;
step S101: obtaining a plurality of configuration templates from a configuration platform through a cache service; the configuration templates obtained from the configuration platform are preset configuration templates in the cache service.
It can be understood that, in this embodiment, when the preset configuration templates are obtained in the cache service, it is necessary to first determine a configuration platform corresponding to the cache service (the configuration platform and the cache service at least establish a communication connection), and then obtain the configuration templates sent by the configuration platform. Namely, a plurality of original templates which are not subjected to parameter configuration need to be set in advance in the configuration platform, so that a user can perform parameter configuration on each original template to generate a configuration template. When the configuration template is generated, a first selection instruction input by a user, namely the template configuration key is required to be obtained, a target original template (namely the original template corresponding to the selection instruction) is determined in each original template according to the first selection instruction, after the target original template is determined, configuration information, such as parameter information of template name, template description, template ID, interface ID, style character string and componentization configuration, is added to the target original template, the target original template with the configuration information is used as the configuration template, and the configuration template is sent to the cache service.
In this embodiment, because the configuration platform corresponding to the cache service is set, the configuration personnel can configure the original template in the configuration platform page to generate the configuration template, so that a great deal of convenience is brought to the configuration personnel, a complex development process in the prior art is avoided, and the development efficiency of the intelligent question and answer equipment is improved.
Referring to fig. 4, fig. 4 is a schematic flowchart illustrating a WIFI attack detection method according to a third embodiment of the present invention; in this embodiment, the step S101 of obtaining a plurality of configuration templates from the configuration platform through the caching service may include the following steps:
step S1010: matching the existing configuration template in the cache service with each configuration template of the configuration platform;
step S1011, if the common configuration template which is the same as the configuration template of the configuration platform does not exist in the existing configuration templates in the cache service, storing the configuration template of the configuration platform into the cache service;
step S1012, if the common configuration template identical to the configuration template of the configuration platform exists in the configuration templates existing in the cache service, the configuration template of the configuration platform is discarded, or the common configuration template in the cache service is replaced with the configuration template of the configuration platform.
It can be understood that, in this embodiment, the configuration information in each configuration template is different, and when the configuration template is sent to the caching service, it may also be detected whether a common configuration template that is the same as the configuration template currently sent by the configuration platform exists in the existing configuration templates in the caching service. If the shared configuration template which is the same as the configuration template currently sent by the configuration platform exists in the existing configuration templates in the cache service, replacing the shared configuration template in the cache service with the configuration template currently sent by the configuration platform, or directly abandoning the configuration template currently sent by the configuration platform; if the same template which is the same as the configuration template currently sent by the configuration platform does not exist in the existing configuration templates in the cache service, directly storing the configuration template currently sent by the configuration platform into the cache service; therefore, different configuration templates in the cache service are ensured, and waste of storage resources is reduced.
In the embodiment, whether a common configuration template which is the same as the configuration template currently sent by the configuration platform exists in the existing configuration templates in the cache service is detected, so that the configuration templates in the cache service are different, and the waste of storage resources is reduced.
Referring to fig. 5, fig. 5 is a schematic flowchart illustrating a WIFI attack detection method according to a fourth embodiment of the present invention; in this embodiment, the step S101 of obtaining a plurality of configuration templates from the configuration platform through the caching service may include the following steps:
step S102: obtaining an updated configuration template from the configuration platform through a cache service; the configuration platform is preset with a plurality of configuration templates, a target configuration template is determined in each configuration template according to an input second selection instruction, and the target configuration template is updated to obtain an updated configuration template.
It can be understood that, in practical application, the problem that the configuration template needs to be adjusted according to the service requirement is often faced; therefore, in this embodiment, the updated configuration template may be obtained from the configuration platform through the cache service. In other words, in the configuration templates generated by the configuration platform, a second selection instruction input by the user needs to be obtained first, where the second selection instruction refers to a configuration template update key, a target configuration template (i.e., a configuration template corresponding to the selection instruction) is determined in each configuration template according to the second selection instruction, and after the target configuration template is determined, the target configuration template is modified, such as parameter information including template name, template description, template ID, interface ID, style string, componentization configuration, and the like, and the modified target configuration template is used as an updated configuration template, and then the updated configuration template is sent to the cache service.
In this embodiment, because the configuration platform corresponding to the cache service is set, the configuration personnel can update the configuration template in the configuration platform page to generate the updated configuration template, so that great convenience is brought to the configuration personnel, a complex development process in the prior art is avoided, and the development efficiency of the intelligent question-answering device is improved.
In addition, referring to fig. 6, an embodiment of the present invention further provides an intelligent question-answering device based on the above intelligent question-answering method, where the intelligent question-answering device includes:
a first obtaining module 601, configured to receive an input target problem, obtain multiple preset configuration templates in a cache service, match the target problem with each configuration template, and if a configuration template matching the target problem exists in each configuration template, use the configuration template matching the target problem as the target template;
a second obtaining module 602, configured to determine interface address information in the target template, and obtain answer data corresponding to the target question according to the target question and the interface address information;
and the optimizing module 603 is configured to optimize the answer data according to the configuration information in the target template to obtain target data, and output the target data.
The first obtaining module 601 is further configured to determine a configuration platform corresponding to the cache service; the method comprises the steps that a plurality of original templates are preset in a configuration platform, a target original template is determined in each original template according to an input selection instruction, and configuration information is added to the target original template to obtain a configuration template; obtaining a plurality of configuration templates from a configuration platform through a cache service; the configuration templates obtained from the configuration platform are preset configuration templates in the cache service.
The first obtaining module 601 is further configured to match an existing configuration template in the cache service with each configuration template of the configuration platform; if the configuration template which is the same as the configuration template of the configuration platform does not exist in the existing configuration templates in the cache service, storing the configuration template of the configuration platform into the cache service; if the configuration template which is the same as the configuration template of the configuration platform exists in the existing configuration templates in the cache service, the configuration template of the configuration platform is abandoned, or the configuration template of the configuration platform is used for replacing the configuration template which is the same as the configuration template in the cache service.
The first obtaining module 601 is further configured to obtain the updated configuration template from the configuration platform through the cache service; the configuration platform is preset with a plurality of configuration templates, a target configuration template is determined in each configuration template according to an input selection instruction, and the target configuration template is updated to obtain an updated configuration template.
In a specific implementation, the second obtaining module 602 is configured to determine a target website corresponding to the interface address information; and accessing the target website according to a preset http request mode to obtain answer data corresponding to the target question.
In a specific implementation, the optimization module 603 is configured to obtain a style string in the configuration information; splicing the style character string and the answer data according to a preset style label to obtain spliced data; and determining target data according to the splicing data.
The optimization module 603 is further configured to obtain componentized configuration in the configuration information; and loading the componentized configuration and splicing data into target data according to a preset loading mode.
It should be noted that the intelligent question-answering device in this embodiment may further optionally include other corresponding modules to implement the steps of the intelligent question-answering method.
In the embodiment, the intelligent question answering device receives the input target question and obtains a target template matched with the target question in the preset cache service; determining interface address information in the target template, and acquiring answer data corresponding to the target question according to the target question and the interface address information; optimizing answer data according to configuration information in the target template to obtain target data and outputting the target data; the problem of low development efficiency of intelligent question answering equipment in the related art is solved. That is, in the embodiment, the intelligent question-answering device presets the target template matched with the target question in the cache service in advance, so that when the target question is received, the target template matched with the target question can be directly obtained in the cache service, and the answer of the target question is optimized according to the configuration information in the target template, so that the target data is obtained and output; the phenomenon that the answer searching time is long in the prior art is avoided, and the question answering efficiency of the intelligent question answering equipment is improved to a great extent.
It should be noted that the intelligent question answering device of this embodiment adopts all the technical solutions of all the embodiments described above, so that at least all the beneficial effects brought by the technical solutions of the embodiments described above are achieved, and details are not repeated herein.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where an intelligent question-answering program is stored on the computer-readable storage medium, and when the intelligent question-answering program is executed by a processor, the steps of the intelligent question-answering method are implemented.
The computer-readable storage media include volatile or nonvolatile, removable or non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, computer program modules or other data. Computer-readable storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically erasable Programmable Read-Only Memory), flash Memory or other Memory technology, CD-ROM (Compact disk Read-Only Memory), Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage, or any other medium which can be used to store the desired information and which can be accessed by a computer.
It will be apparent to one skilled in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An intelligent question-answering method is characterized by comprising the following steps:
receiving an input target problem, acquiring a plurality of preset configuration templates in a cache service, matching the target problem with each configuration template, and taking the configuration template matched with the target problem as the target template if the configuration template matched with the target problem exists in each configuration template;
determining interface address information in the target template, and acquiring answer data corresponding to the target question according to the target question and the interface address information;
and optimizing the answer data according to the configuration information in the target template to obtain target data, and outputting the target data.
2. The intelligent question answering method according to claim 1, wherein the step of obtaining answer data corresponding to the target question according to the target question and the interface address information comprises:
determining a target website corresponding to the interface address information;
and accessing the target website according to a preset http request mode to obtain answer data corresponding to the target question.
3. The intelligent question-answering method according to claim 1, wherein the step of optimizing the answer data according to the configuration information in the target template to obtain target data comprises:
acquiring a style character string in the configuration information;
splicing the style character string and the answer data according to a preset style label to obtain spliced data;
and determining target data according to the splicing data.
4. The intelligent question-answering method according to claim 3, wherein the step of determining target data from the concatenated data comprises:
acquiring componentized configuration in the configuration information;
and loading the componentized configuration and the splicing data into target data according to a preset loading mode.
5. The intelligent question-answering method according to any one of claims 1-4, wherein the step of obtaining a plurality of preset configuration templates in the cache service comprises:
determining a configuration platform corresponding to the cache service; the configuration platform is provided with a plurality of original templates in advance, a target original template is determined in each original template according to an input first selection instruction, and configuration information is added to the target original template to obtain a configuration template;
obtaining a plurality of configuration templates from the configuration platform through the caching service; and the configuration templates obtained from the configuration platform are preset configuration templates in the cache service.
6. The intelligent question-answering method of claim 5, wherein the step of obtaining a plurality of configuration templates from the configuration platform via the caching service comprises:
matching the existing configuration template in the cache service with each configuration template of the configuration platform;
if the common configuration template which is the same as the configuration template of the configuration platform does not exist in the existing configuration templates in the cache service, storing the configuration template of the configuration platform into the cache service;
if the shared configuration template identical to the configuration template of the configuration platform exists in the configuration templates existing in the cache service, the configuration template of the configuration platform is abandoned, or the shared configuration template in the cache service is replaced by the configuration template of the configuration platform.
7. The intelligent question-answering method of claim 5, wherein after the step of obtaining a plurality of configuration templates from the configuration platform through the caching service, the intelligent question-answering method further comprises:
obtaining an updated configuration template from the configuration platform through the cache service; the configuration platform is provided with a plurality of configuration templates in advance, a target configuration template is determined in each configuration template according to an input second selection instruction, and the target configuration template is updated to obtain an updated configuration template.
8. An intelligent question answering device, characterized in that the intelligent question answering device comprises:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for receiving an input target problem, acquiring a plurality of preset configuration templates in a cache service, matching the target problem with each configuration template, and taking the configuration template matched with the target problem as the target template if the configuration template matched with the target problem exists in each configuration template;
the second acquisition module is used for determining interface address information in the target template and acquiring answer data corresponding to the target question according to the target question and the interface address information;
and the optimization module is used for optimizing the answer data according to the configuration information in the target template so as to obtain target data and output the target data.
9. An intelligent question-answering device, characterized in that it comprises: a memory, a processor and a smart question-and-answer program stored on the memory and running on the processor, the smart question-and-answer program when executed by the processor implementing the steps of the smart question-and-answer method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a smart question-and-answer program, which when executed by a processor, implements the steps of the smart question-and-answer method according to any one of claims 1 to 7.
CN202110571016.8A 2021-05-25 2021-05-25 Intelligent question answering method, device, equipment and computer readable storage medium Pending CN113254614A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110571016.8A CN113254614A (en) 2021-05-25 2021-05-25 Intelligent question answering method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110571016.8A CN113254614A (en) 2021-05-25 2021-05-25 Intelligent question answering method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN113254614A true CN113254614A (en) 2021-08-13

Family

ID=77184253

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110571016.8A Pending CN113254614A (en) 2021-05-25 2021-05-25 Intelligent question answering method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113254614A (en)

Similar Documents

Publication Publication Date Title
CN104866383B (en) Interface calling method and device and terminal
CN106970790B (en) Application program creating method, related equipment and system
CN108345543B (en) Data processing method, device, equipment and storage medium
CN109901834A (en) Document file page generation method, device, computer equipment and storage medium
CN111949522B (en) Automatic testing method and device for user interface
KR101086620B1 (en) Smart office system and server for managing the sames and method for managing the sames
CN110168496A (en) The method and system presented for application
CN108984202B (en) Electronic resource sharing method and device and storage medium
CN110633219A (en) Page testing method and device, storage medium and electronic equipment
CN114138244A (en) Method and device for automatically generating model files, storage medium and electronic equipment
CN113138757A (en) Method, device, server, system and medium for automatically generating front-end code
US20220245208A1 (en) Method for switching skin of mini-program page, and electronic device
CN110716804A (en) Method and device for automatically deleting useless resources, storage medium and electronic equipment
CN107423291A (en) A kind of data translating method and client device
CN113254614A (en) Intelligent question answering method, device, equipment and computer readable storage medium
CN115640790A (en) Information processing method and device and electronic equipment
CN113656041A (en) Data processing method, device, equipment and storage medium
CN114201565A (en) Image processing method, image processing apparatus, electronic device, and medium
CN113076262A (en) Automatic webpage testing method and device
CN113448578A (en) Page data processing method, processing system, electronic device and readable storage medium
CN113761402A (en) Link debugging method, device, equipment and storage medium
CN108170557B (en) Method and apparatus for outputting information
CN105373524A (en) Demonstration text editing method and apparatus
CN110796137A (en) Method and device for identifying image
CN111176718A (en) Script online method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination