CN-121997913-A - Configuration file generation method, device, equipment, storage medium and program product
Abstract
The application discloses a configuration file generation method, a device, equipment, a storage medium and a program product, wherein the method comprises the steps of receiving a configuration task, wherein the configuration task comprises configuration intention information; the method comprises the steps of determining a target configuration scene and execution parameters based on configuration intention information, wherein the execution parameters comprise at least one of an execution object, an execution action, a dialogue scene and intention corresponding to the dialogue scene, calling at least one corresponding basic template file from a preset template library based on the target configuration scene, wherein the basic template file comprises a dialogue scene template file, an instruction template file and an intention-instruction mapping template file, and filling the execution parameters into corresponding fields of the basic template file to determine the target configuration file. The method can solve the problems of high development threshold, long period, difficult maintenance, inflexible configuration and the like in the prior art, and realize efficient and accurate generation of the configuration file.
Inventors
- LU KEJUN
Assignees
- 上海洛轲智能科技有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260209
Claims (12)
- 1. A method for generating a configuration file, comprising: Receiving a configuration task, wherein the configuration task comprises configuration intention information; determining a target configuration scene and execution parameters based on the configuration intention information, wherein the execution parameters comprise at least one of an execution object, an execution action, a dialogue scene and an intention corresponding to the dialogue scene; calling at least one corresponding basic template file from a preset template library based on the target configuration scene, wherein the basic template file comprises a dialogue scene template file, an instruction template file and an intention-instruction mapping template file; And filling the execution parameters into corresponding fields of the basic template file, and determining a target configuration file.
- 2. The method of claim 1, wherein the populating the execution parameters into corresponding fields of the base template file to determine a target profile comprises: Filling the dialogue scene into dialogue scene fields of the dialogue scene template file, and filling the intention into intention fields of the dialogue scene template file to obtain a first configuration file; Filling the execution object and/or the execution action into an instruction execution data field of the instruction template file to obtain a second configuration file; establishing a mapping relation between the intention and an instruction mark in the instruction template file in the intention-instruction mapping template file to obtain a third configuration file; A target profile is determined based on the first profile, the second profile, and the third profile.
- 3. The method according to claim 2, wherein the calling the corresponding at least one basic template file from a preset template library based on the target configuration scenario comprises: Calling the dialogue scene template file, the instruction template file and the intention-instruction mapping template file from a preset template library under the condition that the target configuration scene is a newly added voice dialogue function; Under the condition that the target configuration scene is to modify the existing functional parameters, calling the instruction template file from a preset template library; And calling the intent-instruction mapping template file from a preset template library under the condition that the target configuration scene is a new added intent mapping relation.
- 4. The method of claim 2, wherein the populating the dialog scene into the dialog scene field of the dialog scene template file and the populating the intent into the intent field of the dialog scene template file results in a first configuration file, comprising: detecting whether the dialogue scene exists in the dialogue scene template file; taking a template file corresponding to the dialogue scene as the first configuration file under the condition that the dialogue scene exists in the dialogue scene template file; and under the condition that the dialogue scene does not exist in the dialogue scene template file, creating a dialogue scene, and filling the intention into an intention field of the created dialogue scene to obtain the first configuration file.
- 5. The method of claim 2, wherein the instruction execution data field comprises an object field and an action field; The filling the execution object and/or the execution action into the instruction execution data field of the instruction template file to obtain a second configuration file, which comprises the following steps: And filling the execution object into the object field, and filling the execution action into the action field to obtain a second configuration file.
- 6. The method of any of claims 1-5, further comprising, after said determining the target profile: Performing configuration consistency check on the target configuration file, wherein the configuration consistency check comprises checking whether the reference relationship among the dialogue scene template file, the instruction template file and the intention-instruction mapping template file is correct; loading the target configuration file into a configuration management module of the voice dialogue system under the condition that verification is passed; and generating and outputting a configuration error report to prompt a user to correct if the verification is not passed.
- 7. The method of claim 2, wherein after determining the target profile, the method further comprises: receiving voice information input by a user, wherein the voice information is used for describing the vehicle function requirement to be executed; Extracting control intention in the voice information through a natural language understanding model; Acquiring an instruction identifier corresponding to the control intention based on the control intention and a third configuration file in the target configuration file; Determining a dialogue scene corresponding to the control intention and an intention corresponding to the dialogue scene based on the control intention and a first configuration file in a target configuration file; In the dialogue scene, acquiring instruction execution data corresponding to the instruction identifier based on the instruction identifier and a second configuration file in the target configuration file; based on the instruction execution data, a control instruction for executing the control intention is generated.
- 8. The method of claim 7, wherein after extracting the control intent in the speech information by a natural language understanding model, the method further comprises: determining a vehicle function demand type based on the control intent; determining at least one target configuration field corresponding to the vehicle function demand type based on the vehicle function demand type; Inquiring whether a current configuration file matched with the target configuration field exists in the target configuration file based on the target configuration field; Generating a control instruction for executing the control intention based on a configuration file matched with the target configuration field in a target configuration file; and in the case that the configuration file matched with the target configuration field does not exist in the target configuration file, updating the target configuration file based on the target configuration field to generate a target configuration file matched with the target configuration field.
- 9. A profile generation apparatus, the apparatus comprising: the receiving module is used for receiving a configuration task, wherein the configuration task comprises configuration intention information; The system comprises a configuration intention information module, a determining module, a target configuration scene and an execution parameter, wherein the configuration intention information is used for determining a target configuration scene and the execution parameter based on the configuration intention information, and the execution parameter comprises at least one of an execution object, an execution action, a dialogue scene and an intention corresponding to the dialogue scene; The calling module is used for calling at least one corresponding basic template file from a preset template library based on the target configuration scene, wherein the basic template file comprises a dialogue scene template file, an instruction template file and an intention-instruction mapping template file; And the filling module is used for filling the execution parameters into the corresponding fields of the basic template file and determining a target configuration file.
- 10. A profile generating apparatus comprising a processor and a memory storing computer program instructions, the processor implementing the profile generating method of any one of claims 1-8 when executing the computer program instructions.
- 11. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon computer program instructions, which when executed by a processor, implement the profile generation method according to any one of claims 1-8.
- 12. A computer program product, characterized in that instructions in the computer program product, when executed by a processor of an electronic device, enable the electronic device to perform the profile generation method of any one of claims 1-8.
Description
Configuration file generation method, device, equipment, storage medium and program product Technical Field The present application relates to the field of voice interaction technologies, and in particular, to a method, an apparatus, a device, a computer storage medium, and a computer program product for generating a configuration file. Background Along with the rapid development of intelligent cabin technology, the control functions of the voice assistant are continuously overlapped, and the development complexity of the voice dialogue system is also improved. The traditional voice dialogue system development mode needs developers to write complex codes from scratch according to different functional requirements, the requirements on the professional skills of the developers are high, the development threshold is high, the development period is long, and the functional iteration requirements are difficult to respond quickly. Meanwhile, the scattered code writing mode also increases the subsequent system maintenance and upgrading difficulty, and is not beneficial to the long-term stable operation of the system. In order to solve the problems, the development flow is simplified by adopting a templating mode in the prior art, but the prior templating scheme has the problems of single template type, unclear configuration logic, lack of unified specification in parameter filling and the like, cannot realize efficient and accurate generation of configuration files, and is difficult to meet the requirements of quick development and flexible configuration of a voice dialogue system in the scenes of an intelligent cabin and the like, and the overall performance and user experience of the voice dialogue system are directly influenced. Therefore, a need exists for a method for generating a configuration file that can reduce the development threshold, shorten the development period, facilitate maintenance, and provide flexibility, high efficiency, and accuracy, so as to adapt to the rapid iteration of the voice dialogue system. Disclosure of Invention The embodiment of the application provides a configuration file generation method, a device, equipment, a computer storage medium and a computer program product, which can solve the problems of high development threshold, long period, difficult maintenance, inflexible configuration and the like in the prior art and realize efficient and accurate generation of configuration files. In a first aspect, an embodiment of the present application provides a method for generating a configuration file, including: Receiving a configuration task, wherein the configuration task comprises configuration intention information; determining a target configuration scene and execution parameters based on the configuration intention information, wherein the execution parameters comprise at least one of an execution object, an execution action, a dialogue scene and an intention corresponding to the dialogue scene; calling at least one corresponding basic template file from a preset template library based on the target configuration scene, wherein the basic template file comprises a dialogue scene template file, an instruction template file and an intention-instruction mapping template file; And filling the execution parameters into corresponding fields of the basic template file, and determining a target configuration file. In some possible implementations, the populating the execution parameters into corresponding fields of the base template file, determining a target configuration file includes: Filling the dialogue scene into dialogue scene fields of the dialogue scene template file, and filling the intention into intention fields of the dialogue scene template file to obtain a first configuration file; Filling the execution object and/or the execution action into an instruction execution data field of the instruction template file to obtain a second configuration file; establishing a mapping relation between the intention and an instruction mark in the instruction template file in the intention-instruction mapping template file to obtain a third configuration file; A target profile is determined based on the first profile, the second profile, and the third profile. In some possible implementations, the calling, based on the target configuration scenario, the corresponding at least one basic template file from a preset template library includes: Calling the dialogue scene template file, the instruction template file and the intention-instruction mapping template file from a preset template library under the condition that the target configuration scene is a newly added voice dialogue function; Under the condition that the target configuration scene is to modify the existing functional parameters, calling the instruction template file from a preset template library; And calling the intent-instruction mapping template file from a preset template library under the condition that the target con