CN114327891A - Computer self-adaptive dialogue method and device - Google Patents

Computer self-adaptive dialogue method and device Download PDF

Info

Publication number
CN114327891A
CN114327891A CN202111615610.9A CN202111615610A CN114327891A CN 114327891 A CN114327891 A CN 114327891A CN 202111615610 A CN202111615610 A CN 202111615610A CN 114327891 A CN114327891 A CN 114327891A
Authority
CN
China
Prior art keywords
sub
message
server
messages
modification
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.)
Withdrawn
Application number
CN202111615610.9A
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202111615610.9A priority Critical patent/CN114327891A/en
Publication of CN114327891A publication Critical patent/CN114327891A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention relates to a dialogue method based on computer self-adaptation, which comprises the following steps: determining a request server and a receiving server according to the mutual relation between a requesting party and a requested party; configuring a plurality of sub-process strategies for a request server according to a main process strategy of a receiving server, wherein the configuration principle is that the main process strategy is divided according to a sequence to obtain sub-messages required by a plurality of sub-events in sequence, and each sub-message comprises the type and content of the message and user identity information of the sent message; and sequentially verifying the plurality of sub-messages acquired by the request server, feeding back error information to the receiving server when the verification fails, and feeding back corresponding message contents to the receiving server by the receiving server when the verification passes. The conversation is stably carried out through the preset verification condition, the condition that once an error occurs in any conversation link of a user, the error can be reported can be avoided, and the use experience of the user is improved.

Description

Computer self-adaptive dialogue method and device
Technical Field
The invention relates to the technical field of artificial intelligence, in particular to a dialogue method and a dialogue device based on computer self-adaptation.
Background
With the development of human-computer interaction technology, more and more intelligent products based on human-computer interaction technology are produced, such as chat robots (chatterbots) and the like. These smart products can chat with the user and generate answer information based on the user's questions.
The existing self-adaptive conversation method is often not high in stability, once an error occurs in any conversation link of a user, the error is reported, and the use experience of the user is influenced.
Disclosure of Invention
The invention aims to solve at least one of the defects of the prior art and provides a computer-adaptive-based dialogue method and a device thereof.
In order to achieve the above object, the present invention adopts the following technical means,
specifically, a computer-adaptive-based dialog method is provided, which comprises the following steps:
determining a request server and a receiving server according to the mutual relation between a requesting party and a requested party;
configuring a plurality of sub-process strategies for a request server according to a main process strategy of a receiving server, wherein the configuration principle is that the main process strategy is divided according to a sequence to obtain sub-messages required by a plurality of sub-events in sequence, and each sub-message comprises the type and content of the message and user identity information of the sent message;
and sequentially verifying the plurality of sub-messages acquired by the request server, feeding back error information to the receiving server when the verification fails, and feeding back corresponding message contents to the receiving server by the receiving server when the verification passes.
Further, the method may further comprise,
when the receiving server has the main process strategy modification, acquiring a modification sub-message corresponding to the modified sub-event, marking the modification sub-message as a fuzzy sub-message, calling the sub-message before modification to perform judgment for 2 times when the fuzzy sub-message does not pass the verification result of the requesting server, marking the current modification sub-message as a temporary passing state if the judgment for 2 times passes, and when all the modification sub-messages are in the temporary passing state, triggering a modification mechanism to synchronously configure the requesting server by using the modified sub-process strategy, prompting a user to modify the verification process corresponding to the sub-message, and removing the state of the fuzzy sub-message.
Further, specifically, the principle of passing the verification includes the following,
judging whether the first sub-message is a fuzzy sub-message, if so, judging whether the first sub-message acquired by the request server can be judged for 2 times, if not, directly feeding back error information, and if so, continuously judging all sub-messages acquired by the request server by referring to the method;
if the first sub-message is not the fuzzy sub-message, judging all the sub-messages acquired by the request server, when the types and the content information of the sub-messages are matched but the user identity information of the transmitted message is not matched, defining the sub-messages as potential passing sub-messages, acquiring the proportion of the potential passing sub-messages in all the sub-messages, and when the proportion of the potential passing sub-messages exceeds a first threshold value of all the sub-messages, indicating that the verification is passed, otherwise, indicating that the verification is not passed.
Further, specifically, the first threshold is 90%.
Further, when a plurality of request servers interact with a receiving server, in order to ensure stable conversation, assuming that the expected maximum simultaneous average interaction correlation parameter between the request servers and the receiving server is a, and the number of available communication channels is s, wherein a and s are both natural numbers;
then there is a change in the number of,
Figure BDA0003436311350000021
wherein,
Figure BDA0003436311350000022
Figure BDA0003436311350000023
and calculating the average request times of each request server when interacting with the receiving server by combining the relation:
Figure BDA0003436311350000024
the method comprises the following steps:
Figure BDA0003436311350000025
where ρ is a/s and ρ < 1,
Figure BDA0003436311350000026
waiting for the average number of requests in a queue for one interaction between a request server and a receiving server;
the resulting average response time is:
Figure BDA0003436311350000031
wherein λ and μ are constants, satisfying λ/μ ═ a;
by setting the values of a and s, the average response time E [ w ] is made lower than the second threshold value to make the conversation proceed stably.
The invention also provides a computer-adaptive-based dialogue device, which comprises:
the server definition module is used for determining a request server and a receiving server according to the mutual relation between the requesting party and the requested party;
the server strategy configuration module is used for configuring a plurality of sub-process strategies for the request server according to the main process strategy of the receiving server, and the configuration principle is that the main process strategy is divided according to the sequence to obtain sub-messages required by a plurality of sub-events in sequence, wherein each sub-message comprises the type and the content of the message and the user identity information of the sent message;
and the verification module is used for sequentially verifying the plurality of sub-messages acquired by the request server, feeding back error information to the receiving server when the sub-messages do not pass the verification, and feeding back corresponding message contents to the receiving server by the receiving server when the sub-messages pass the verification.
The device further comprises a modification module, configured to, when the receiving server is modified by the main process policy, obtain a modification sub-message corresponding to a modified sub-event, mark the modification sub-message as a fuzzy sub-message, and when the validation result of the fuzzy sub-message at the requesting server is that the fuzzy sub-message fails, call the sub-message before modification to perform 2 judgments, if the 2 judgments pass, mark the current modification sub-message as a tentative passing state, and when all the modification sub-messages are in the tentative passing state, trigger a modification mechanism to synchronously configure the requesting server by using the modified sub-process policy, prompt a user to modify the validation process corresponding to the sub-message, and remove the state of the fuzzy sub-message.
The invention has the beneficial effects that:
the invention provides a dialogue method based on computer self-adaptation, which can stably carry out the dialogue by configuring strategies for a determined request server and a receiving server and presetting verification conditions, can avoid the situation that once any dialogue link of a user has errors, the errors can be reported, and improves the use experience of the user.
Drawings
The foregoing and other features of the present disclosure will become more apparent from the detailed description of the embodiments shown in conjunction with the drawings in which like reference characters designate the same or similar elements throughout the several views, and it is apparent that the drawings in the following description are merely some examples of the present disclosure and that other drawings may be derived therefrom by those skilled in the art without the benefit of any inventive faculty, and in which:
FIG. 1 is a flow chart of the computer-based adaptive dialog method of the present invention.
Detailed Description
The conception, the specific structure and the technical effects of the present invention will be clearly and completely described in conjunction with the embodiments and the accompanying drawings to fully understand the objects, the schemes and the effects of the present invention. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The same reference numbers will be used throughout the drawings to refer to the same or like parts.
Referring to fig. 1, embodiment 1, the present invention provides a dialog method based on computer adaptation, which includes the following steps:
step 110, determining a request server and a receiving server according to the mutual relation between a requesting party and a requested party;
step 120, configuring a plurality of sub-process strategies for the request server according to the main process strategy of the receiving server, wherein the configuration principle is that the main process strategy is divided according to a sequence to sequentially obtain sub-messages required by a plurality of sub-events, and each sub-message comprises the type and content of the message and user identity information of the sent message;
step 130, sequentially verifying the plurality of sub-messages acquired by the request server, feeding back error information to the receiving server when the verification fails, and feeding back corresponding message contents to the receiving server when the verification passes.
As a preferred embodiment of the present invention, the method further comprises,
when the receiving server has the main process strategy modification, acquiring a modification sub-message corresponding to the modified sub-event, marking the modification sub-message as a fuzzy sub-message, calling the sub-message before modification to perform judgment for 2 times when the fuzzy sub-message does not pass the verification result of the requesting server, marking the current modification sub-message as a temporary passing state if the judgment for 2 times passes, and when all the modification sub-messages are in the temporary passing state, triggering a modification mechanism to synchronously configure the requesting server by using the modified sub-process strategy, prompting a user to modify the verification process corresponding to the sub-message, and removing the state of the fuzzy sub-message.
As a preferred embodiment of the present invention, specifically, the principle of passing the verification includes the following,
judging whether the first sub-message is a fuzzy sub-message, if so, judging whether the first sub-message acquired by the request server can be judged for 2 times, if not, directly feeding back error information, and if so, continuously judging all sub-messages acquired by the request server by referring to the method;
if the first sub-message is not the fuzzy sub-message, judging all the sub-messages acquired by the request server, when the types and the content information of the sub-messages are matched but the user identity information of the transmitted message is not matched, defining the sub-messages as potential passing sub-messages, acquiring the proportion of the potential passing sub-messages in all the sub-messages, and when the proportion of the potential passing sub-messages exceeds a first threshold value of all the sub-messages, indicating that the verification is passed, otherwise, indicating that the verification is not passed.
Specifically, in a preferred embodiment of the present invention, the first threshold is 90%.
As a preferred embodiment of the present invention, when there are a plurality of request servers interacting with a receiving server, in order to ensure stable conversation, assuming that a maximum expected simultaneous average interaction correlation parameter between the request servers and the receiving server is a, and the number of available communication channels is s, where a and s are both natural numbers;
then there is a change in the number of,
Figure BDA0003436311350000051
wherein,
Figure BDA0003436311350000052
Figure BDA0003436311350000053
and calculating the average request times of each request server when interacting with the receiving server by combining the relation:
Figure BDA0003436311350000054
the method comprises the following steps:
Figure BDA0003436311350000055
where ρ is a/s and ρ < 1,
Figure BDA0003436311350000056
waiting for the average number of requests in a queue for one interaction between a request server and a receiving server;
the resulting average response time is:
Figure BDA0003436311350000057
wherein λ and μ are constants, satisfying λ/μ ═ a;
by setting the values of a and s, the average response time E [ w ] is made lower than the second threshold value to make the conversation proceed stably.
The invention also provides a computer-adaptive-based dialogue device, which comprises:
the server definition module is used for determining a request server and a receiving server according to the mutual relation between the requesting party and the requested party;
the server strategy configuration module is used for configuring a plurality of sub-process strategies for the request server according to the main process strategy of the receiving server, and the configuration principle is that the main process strategy is divided according to the sequence to obtain sub-messages required by a plurality of sub-events in sequence, wherein each sub-message comprises the type and the content of the message and the user identity information of the sent message;
and the verification module is used for sequentially verifying the plurality of sub-messages acquired by the request server, feeding back error information to the receiving server when the sub-messages do not pass the verification, and feeding back corresponding message contents to the receiving server by the receiving server when the sub-messages pass the verification.
As a preferred embodiment of the present invention, the apparatus further includes a modification module, configured to, when the receiving server has a main process policy modification, obtain a modification sub-message corresponding to a modified sub-event, mark the modification sub-message as a fuzzy sub-message, and when the result of the verification performed by the requesting server of the fuzzy sub-message is that the modified sub-event does not pass, call the sub-message before modification to perform 2 judgments, if the 2 judgments pass, mark the current modification sub-message as a tentative passing state, and when all the modification sub-messages are in the tentative passing state, trigger a modification mechanism to synchronously configure the requesting server by using the modified sub-process policy, and prompt a user to modify the verification process corresponding to the sub-message, and remove the state of the fuzzy sub-message.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium and can implement the steps of the above-described method embodiments when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or system capable of carrying said computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, etc. It should be noted that the computer readable medium includes content that can be suitably increased or decreased according to the requirements of legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunication signals according to legislation and patent practice.
While the present invention has been described in considerable detail and with particular reference to a few illustrative embodiments thereof, it is not intended to be limited to any such details or embodiments or any particular embodiments, but it is to be construed as effectively covering the intended scope of the invention by providing a broad, potential interpretation of such claims in view of the prior art with reference to the appended claims. Furthermore, the foregoing describes the invention in terms of embodiments foreseen by the inventor for which an enabling description was available, notwithstanding that insubstantial modifications of the invention, not presently foreseen, may nonetheless represent equivalent modifications thereto.
The above description is only a preferred embodiment of the present invention, and the present invention is not limited to the above embodiment, and the present invention shall fall within the protection scope of the present invention as long as the technical effects of the present invention are achieved by the same means. The invention is capable of other modifications and variations in its technical solution and/or its implementation, within the scope of protection of the invention.

Claims (7)

1. A computer-based adaptive dialog method, comprising the steps of:
determining a request server and a receiving server according to the mutual relation between a requesting party and a requested party;
configuring a plurality of sub-process strategies for a request server according to a main process strategy of a receiving server, wherein the configuration principle is that the main process strategy is divided according to a sequence to obtain sub-messages required by a plurality of sub-events in sequence, and each sub-message comprises the type and content of the message and user identity information of the sent message;
and sequentially verifying the plurality of sub-messages acquired by the request server, feeding back error information to the receiving server when the verification fails, and feeding back corresponding message contents to the receiving server by the receiving server when the verification passes.
2. The computer-adaptive-based dialog method of claim 1, further comprising,
when the receiving server has the main process strategy modification, acquiring a modification sub-message corresponding to the modified sub-event, marking the modification sub-message as a fuzzy sub-message, calling the sub-message before modification to perform judgment for 2 times when the fuzzy sub-message does not pass the verification result of the requesting server, marking the current modification sub-message as a temporary passing state if the judgment for 2 times passes, and when all the modification sub-messages are in the temporary passing state, triggering a modification mechanism to synchronously configure the requesting server by using the modified sub-process strategy, prompting a user to modify the verification process corresponding to the sub-message, and removing the state of the fuzzy sub-message.
3. The computer-adaptive-based dialog method according to claim 2, characterized in that the principle of passing the verification comprises, in particular,
judging whether the first sub-message is a fuzzy sub-message, if so, judging whether the first sub-message acquired by the request server can be judged for 2 times, if not, directly feeding back error information, and if so, continuously judging all sub-messages acquired by the request server by referring to the method;
if the first sub-message is not the fuzzy sub-message, judging all the sub-messages acquired by the request server, when the types and the content information of the sub-messages are matched but the user identity information of the transmitted message is not matched, defining the sub-messages as potential passing sub-messages, acquiring the proportion of the potential passing sub-messages in all the sub-messages, and when the proportion of the potential passing sub-messages exceeds a first threshold value of all the sub-messages, indicating that the verification is passed, otherwise, indicating that the verification is not passed.
4. The computer-adaptive dialog method according to claim 3, characterized in that the first threshold value is in particular 90%.
5. The computer-based adaptive conversation method according to claim 1, further comprising, when there are a plurality of requesting servers interacting with the receiving server, assuming that the maximum expected simultaneous average interaction correlation parameter between the requesting server and the receiving server is a and the number of available communication channels is s, in order to ensure stable conversation, where a and s are both natural numbers;
then there is a change in the number of,
Figure FDA0003436311340000021
wherein,
Figure FDA0003436311340000022
Figure FDA0003436311340000023
and calculating the average request times of each request server when interacting with the receiving server by combining the relation:
Figure FDA0003436311340000024
the method comprises the following steps:
Figure FDA0003436311340000025
where ρ is a/s and ρ < 1,
Figure FDA0003436311340000026
waiting for the average number of requests in a queue for one interaction between a request server and a receiving server;
the resulting average response time is:
Figure FDA0003436311340000027
wherein λ and μ are constants, satisfying λ/μ ═ a;
by setting the values of a and s, the average response time E [ w ] is made lower than the second threshold value to make the conversation proceed stably.
6. A computer-based adaptive dialog device, comprising:
the server definition module is used for determining a request server and a receiving server according to the mutual relation between the requesting party and the requested party;
the server strategy configuration module is used for configuring a plurality of sub-process strategies for the request server according to the main process strategy of the receiving server, and the configuration principle is that the main process strategy is divided according to the sequence to obtain sub-messages required by a plurality of sub-events in sequence, wherein each sub-message comprises the type and the content of the message and the user identity information of the sent message;
and the verification module is used for sequentially verifying the plurality of sub-messages acquired by the request server, feeding back error information to the receiving server when the sub-messages do not pass the verification, and feeding back corresponding message contents to the receiving server by the receiving server when the sub-messages pass the verification.
7. The computer-based adaptive dialog device of claim 6, further comprising a modification module, configured to, when the receiving server has a main process policy modification, obtain a modification sub-message corresponding to a modified sub-event, mark the modification sub-message as a fuzzy sub-message, and when the result of the verification performed by the requesting server of the fuzzy sub-message is that the fuzzy sub-message fails, call the sub-message before modification to perform 2 judgments, if the 2 judgments pass, mark the current modification sub-message as a tentative passing state, and when all the modification sub-messages are in the tentative passing state, trigger a modification mechanism to synchronously configure the modified sub-process policy as the requesting server, prompt a user to modify the verification process corresponding to the sub-message, and remove the state of the fuzzy sub-message.
CN202111615610.9A 2021-12-27 2021-12-27 Computer self-adaptive dialogue method and device Withdrawn CN114327891A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111615610.9A CN114327891A (en) 2021-12-27 2021-12-27 Computer self-adaptive dialogue method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111615610.9A CN114327891A (en) 2021-12-27 2021-12-27 Computer self-adaptive dialogue method and device

Publications (1)

Publication Number Publication Date
CN114327891A true CN114327891A (en) 2022-04-12

Family

ID=81013646

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111615610.9A Withdrawn CN114327891A (en) 2021-12-27 2021-12-27 Computer self-adaptive dialogue method and device

Country Status (1)

Country Link
CN (1) CN114327891A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115314476A (en) * 2022-06-20 2022-11-08 深圳市臻为科技有限公司 Teleconference solution method and system based on audio and video conference device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115314476A (en) * 2022-06-20 2022-11-08 深圳市臻为科技有限公司 Teleconference solution method and system based on audio and video conference device

Similar Documents

Publication Publication Date Title
KR20190005930A (en) Automatic reply method, apparatus, facility and computer readable storage medium
CN109753561B (en) Automatic reply generation method and device
CN109451020B (en) Timeout management method, timeout management device, and computer-readable storage medium
CN114327891A (en) Computer self-adaptive dialogue method and device
CN108564345B (en) Insurance platform data processing method, electronic device and computer readable storage medium
CN109409079A (en) Weak passwurd check method and device
CN112437163A (en) Communication processing method and system based on block chain and big data
CN115470318A (en) Customer service problem processing method and device
CN115239450A (en) Financial data processing method and device, computer equipment and storage medium
CN110209768B (en) Question processing method and device for automatic question answering
CN109740335A (en) The classification method and device of identifying code operation trace
CN113407823A (en) IOS message pushing method and system
CN106162345B (en) Gray scale upgrading method and system for smart television system
CN107911315B (en) Message classification method and network equipment
CN110022359A (en) A method of end user status is obtained based on mobile terminal data
CN107633173A (en) Document handling method and device
CN113282384A (en) Cooperative office management method and device based on Internet and cooperative management platform
CN113938473A (en) Automatic Mock method, device, equipment and storage medium based on flow
CN112822113A (en) Method and device for acquiring routing address, electronic equipment and readable storage medium
CN112084767B (en) Information response processing method, intelligent voice equipment and storage medium
CN116680685B (en) User login control method, system and storage medium based on distributed storage
CN109327814A (en) Processing method, device, electronic equipment and the readable storage medium storing program for executing of short message
CN114679336B (en) Authentication method, authentication system, authentication device, and readable storage medium
CN116503107B (en) Business big data processing method and system applying artificial intelligence
CN114598561B (en) Group application management method, device, equipment, storage medium and program product

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20220412

WW01 Invention patent application withdrawn after publication