Intelligent evaluation set generation method and device, equipment and medium

By using a large language model for semantic cleaning and generalization generation, combined with colloquialization optimization, the problems of inconsistent data distribution and high cost of manual intervention in the generation of evaluation datasets for in-vehicle voice interaction systems are solved, and high-quality, automated evaluation dataset generation is achieved.

CN123178908APending Publication Date: 2026-11-27BEIJING CHJ AUTOMOTIVE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611710193.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-30
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing methods for generating evaluation datasets for in-vehicle voice interaction systems suffer from issues such as inconsistency between the generated data and the actual distribution, insufficient semantic diversity, and high costs associated with manual intervention, lacking end-to-end automated solutions.

Method used

By acquiring original online voice Q&A statements, semantic cleaning is performed using a large language model to remove invalid statements. When the amount of data is insufficient, generalization is performed based on sentence structure distribution and intent category distribution. Combined with synonym replacement, scene parameter transformation and question type expansion, supplementary query statements are generated. Finally, the statements are optimized and rewritten in a conversational style to form a fully automated closed-loop process.

Benefits of technology

It achieves the generation of high-quality, highly realistic evaluation datasets, avoids semantic bias and homogenization issues, reduces the cost of manual intervention, and provides an efficient end-to-end automated evaluation data foundation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178908A_ABST
    Figure CN123178908A_ABST
Patent Text Reader

Abstract

The application relates to an intelligent evaluation set generation method and device, equipment and a medium, and relates to the technical field of vehicle-mounted voice interaction and artificial intelligence. The method comprises the following steps: obtaining online real voice question and answer sentences as seed data, using a large language model to clean up the semantics to eliminate invalid sentences, and when the amount of real data is insufficient, controlling the large language model to generate based on the sentence structure distribution and the intention category distribution of the candidate set to supplement in a targeted manner, and finally outputting the evaluation set after oral optimization and rewriting, thereby forming a full-automatic closed loop process from data pulling to result output. The method generates the process with real distribution constraints, effectively avoids semantic drift and sentence homogenization problems, calls the generation capability on demand with a conditional trigger mechanism, reduces unnecessary computing consumption, replaces manual rule writing and auditing with end-to-end automation, significantly reduces labor costs, and provides high-quality and high-accuracy evaluation data for a vehicle-mounted voice question and answer system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the fields of in-vehicle voice interaction and artificial intelligence technology, and in particular to a method, apparatus, device and medium for generating intelligent evaluation sets. Background Technology

[0002] With the increasing prevalence of in-vehicle intelligent voice interaction systems, accurate and comprehensive evaluation of voice question-and-answer systems is becoming increasingly important, and the quality of the evaluation dataset directly affects the reliability of the evaluation results. Currently, automated dataset generation mainly includes the following methods: data collection based on real user behavior, followed by data filtering and classification using rule-based or statistical methods; expanding data using generative large models and combining data augmentation techniques to improve data diversity; removing noisy data based on natural language processing methods, and ensuring data quality through manual review or semi-automated annotation.

[0003] However, the existing solutions still have the following technical drawbacks: First, the generated data is inconsistent with the real distribution. Simply relying on large models to generate data may lead to distribution bias. The generated sentences may not conform to natural expression habits, and the generated data format is relatively simple, often only replacing a few words, making it difficult to simulate the semantic diversity of real user query sentences. Second, manual intervention is costly and has a low degree of automation. Existing cleaning, classification and review methods rely on manually written rules or manual review, which is difficult to deploy on a large scale and lacks an end-to-end automated solution from data retrieval to evaluation set output. Summary of the Invention

[0004] To address the aforementioned technical problems, this application provides an intelligent evaluation set generation method, apparatus, device, and medium.

[0005] Firstly, this application provides an intelligent evaluation set generation method, including: Obtain the target query statement and target number of generated original online voice Q&A; The target query statement is semantically cleaned using a large language model to obtain a set of candidate query statements; If the number of candidate query statements does not reach the target number of generated statements, the large language model is used to generalize and generate supplementary query statements based on the sentence structure distribution and intent category distribution of the candidate query statement set, and these supplementary query statements are then merged with the candidate query statement set to obtain an expanded query statement set. The extended query statement set or the candidate query statement set is optimized and rewritten using the large language model, and the rewritten query statement set is output.

[0006] In some embodiments, after semantically cleaning the target query statement using a large language model, the method further includes: Based on the semantic cleaning results, obtain the cleaning confidence score for each target query statement; If the confidence score of the cleaning is lower than the preset confidence threshold, the large language model is called again for secondary semantic cleaning, or the target query statement is marked as a statement to be reviewed. If the cleaning confidence score is higher than or equal to the preset confidence threshold, the semantic cleaning result is directly retained.

[0007] In some embodiments, the step of using the large language model to generalize and generate supplementary query statements based on the sentence structure distribution and intent category distribution of the candidate query statement set includes: Extract the sentence structure distribution and intent category distribution of the candidate query statement set; Using the sentence structure distribution and the intent category distribution as constraints when generating the large language model, the large language model is controlled to generate a first query statement with the corresponding sentence structure according to the sentence structure distribution, and a second query statement with the corresponding intent category according to the intent category distribution. Based on the first query statement and the second query statement, the supplementary query statement is generated through synonym replacement, scene parameter transformation and / or question type expansion.

[0008] In some embodiments, the expanded query statement set is obtained by merging the candidate query statement set with the candidate query statement set, including: Calculate the semantic similarity between the supplementary query statement and each query statement in the candidate query statement set; Duplicate supplementary query statements with semantic similarity exceeding a preset threshold are removed, and the remaining supplementary query statements are merged into the candidate query statement set to obtain the expanded query statement set.

[0009] In some embodiments, after obtaining the target query statement and the target number of generated original online voice question-and-answer responses, the method further includes: Determine whether the number of candidate query statements has reached the target number of queries generated. If the number of candidate query statements has reached the target number of generated statements, then skip the step of using the large language model to generalize and generate supplementary query statements based on the sentence structure distribution and intent category distribution of the candidate query statement set, and merge them with the candidate query statement set to obtain an expanded query statement set, and retain the candidate query statement set.

[0010] In some embodiments, after obtaining the expanded query statement set, the method further includes: The quality of the expanded query statement set is verified, and the number of valid samples in the expanded query statement set is counted based on the verification results. If the number of valid samples does not reach the target number of samples generated, the expected number of samples to be generated in the next round is determined based on the difference between the number of valid samples and the target number of samples generated, and the step of generating the generalized supplementary query statement is repeated based on the expected number of samples to be generated in the next round until the number of valid samples reaches the target number of samples generated.

[0011] Secondly, this application provides an intelligent evaluation set generation device, comprising: The data acquisition module is used to acquire the target query statement and the target number of generated original online voice Q&A responses; The first processing module is used to perform semantic cleaning on the target query statement using a large language model to obtain a set of candidate query statements. The second processing module is used to generate supplementary query statements by generalizing based on the sentence structure distribution and intent category distribution of the candidate query statement set and merging them with the candidate query statement set if the number of candidate query statement sets does not reach the target number of generated statements. The third processing module is used to optimize and rewrite the expanded query statement set or the candidate query statement set using the large language model, and output the rewritten query statement set.

[0012] Thirdly, this application provides an intelligent evaluation set generation device, comprising: processor; Memory, used to store executable instructions; The processor is used to read executable instructions from memory and execute the executable instructions to implement the intelligent evaluation set generation method of the first aspect.

[0013] Fourthly, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to implement the intelligent evaluation set generation method of the first aspect.

[0014] Fifthly, this application provides a mobile device that may include the intelligent evaluation set generation device described in the second aspect. The mobile device may include, but is not limited to, vehicles, mobile intelligent terminals, robots, embodied intelligence, etc.

[0015] The technical solution provided in this application has the following advantages compared with the prior art: The intelligent evaluation set generation method, apparatus, device, and medium of this application's embodiments acquire online real voice question-and-answer statements as seed data, utilize a large language model for semantic cleaning to eliminate invalid statements, and when the amount of real data is insufficient, control the large language model to generalize and generate data based on the sentence structure distribution and intent category distribution of the candidate set to supplement it in a targeted manner. Finally, after colloquial optimization and rewriting, the evaluation set is output, forming a fully automated closed-loop process from data retrieval to result output. This method constrains the generation process with real distribution, effectively avoiding semantic deviation and statement homogenization problems; it uses a conditional trigger mechanism to call generation capabilities on demand, reducing unnecessary computational consumption; and it replaces manual rule writing and review with end-to-end automation, significantly reducing labor costs and providing a high-quality, high-fidelity evaluation data foundation for in-vehicle voice question-and-answer systems. Attached Figure Description

[0016] The above and other features, advantages, and aspects of the embodiments of this application will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.

[0017] Figure 1 A flowchart illustrating an intelligent evaluation set generation method provided in an embodiment of this application; Figure 2 A flowchart illustrating another intelligent evaluation set generation method provided in this application embodiment; Figure 3 This is a schematic diagram of the structure of an intelligent evaluation set generation device provided in an embodiment of this application; Figure 4 This is a schematic diagram of the structure of an intelligent evaluation set generation device provided in an embodiment of this application. Detailed Implementation

[0018] Embodiments of this application will now be described in more detail with reference to the accompanying drawings. While some embodiments of this application are shown in the drawings, it should be understood that this application can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this application. It should be understood that the drawings and embodiments of this application are for illustrative purposes only and are not intended to limit the scope of protection of this application.

[0019] It should be understood that the steps described in the method embodiments of this application may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this application is not limited in this respect.

[0020] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.

[0021] It should be noted that the concepts of "first" and "second" mentioned in this application are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.

[0022] It should be noted that the terms "a" and "a plurality of" used in this application are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0023] The names of the messages or information exchanged between multiple devices in the embodiments of this application are for illustrative purposes only and are not intended to limit the scope of these messages or information.

[0024] To address the aforementioned problems, embodiments of this application provide an intelligent evaluation set generation method, apparatus, device, and medium. The following will first combine... Figures 1 to 2 The intelligent evaluation set generation method provided in the embodiments of this application will be described in detail.

[0025] Figure 1 The diagram shows a flowchart of an intelligent evaluation set generation method provided in an embodiment of this application.

[0026] In this embodiment of the application, the intelligent evaluation set generation method can be executed by an electronic device, which may include, but is not limited to, devices such as mobile devices, in-vehicle devices, computer devices, cloud servers or cloud server clusters.

[0027] like Figure 1 As shown, the intelligent evaluation set generation method may include the following steps.

[0028] S110. Obtain the target query statement and target number of generated original online voice Q&A.

[0029] In this embodiment of the application, the electronic device can obtain the target query statement and the target number of generated original online voice Q&A.

[0030] Optionally, the target query can be a voice question and answer statement entered by the user in an in-vehicle voice interaction scenario.

[0031] Optionally, the target number of queries to be generated can be the total number of queries that the evaluation set is expected to include, as set by the user.

[0032] Specifically, before the evaluation set generation task begins, testers input evaluation requirement configuration information through a web-based interactive interface. This configuration information includes: primary category (e.g., "in-vehicle voice interaction"), secondary category (e.g., "navigation control", "multimedia control", "vehicle control", etc.), target generation quantity (e.g., 5000 entries), and output format (e.g., JSON or Excel spreadsheet). The electronic device can receive this configuration information and read the target generation quantity of 5000 entries from the configuration. Simultaneously, the electronic device pulls raw online voice question-and-answer logs from a big data platform, obtaining historical voice interaction data from real users as the target query statement.

[0033] S120. Use a large language model to perform semantic cleaning on the target query statement to obtain a set of candidate query statements.

[0034] In this embodiment of the application, the electronic device can use a large language model to perform semantic cleaning on the target query statement to obtain a set of candidate query statements.

[0035] Optionally, a Large Language Model (LLM) refers to a large-scale artificial intelligence model with the ability to understand and generate natural language.

[0036] Specifically, electronic devices can input the acquired target query statements into a large language model for semantic cleaning. The large language model analyzes the semantic completeness of each query statement and its relevance to the in-vehicle scenario, identifying and eliminating the following types of invalid statements: semantically incomplete statements, such as "navigate to that place" where "that place" has no clear referent; statements irrelevant to the in-vehicle scenario, such as "The weather is really nice today" (non-functional interaction); and statements with chaotic sentence structure and incomprehensible semantics, such as "adjust the air conditioner." After semantic cleaning, invalid statements are eliminated, and valid statements with clear semantics and consistent with the in-vehicle scenario are retained as the candidate query statement set.

[0037] S130. If the number of candidate query statements does not reach the target number of generated statements, the large language model is used to generalize and generate supplementary query statements based on the sentence structure distribution and intent category distribution of the candidate query statement set, and then merges them with the candidate query statement set to obtain an expanded query statement set.

[0038] In this embodiment of the application, if the number of candidate query statements does not reach the target number of generated statements, the electronic device can use the large language model to generalize and generate supplementary query statements based on the sentence structure distribution and intent category distribution of the candidate query statement set, and merge them with the candidate query statement set to obtain an expanded query statement set.

[0039] Specifically, the electronic device can determine whether the number of candidate query statements has reached the target number of generated statements. If the number of candidate query statements has not reached the target number of generated statements, the large language model is used to generate supplementary query statements based on the sentence structure distribution and intent category distribution of the candidate query statements. The semantic distribution can include the sentence structure distribution and intent category distribution. These supplementary query statements are then generated and merged with the candidate query statement set (e.g., semantic deduplication and merging) to ensure that the generated data is consistent with the distribution of real data and to avoid semantic deviation, thereby obtaining an expanded query statement set.

[0040] S140. Optimize and rewrite the expanded query statement set or the candidate query statement set using the large language model, and output the rewritten query statement set.

[0041] In this embodiment of the application, the electronic device can use the large language model to optimize and rewrite the expanded query statement set or the candidate query statement set, and output the rewritten query statement set.

[0042] Specifically, electronic devices can utilize large language models to rewrite the final output query set in a conversational style, transforming formal or unnatural expressions into natural spoken language. The rewritten query set is then output as the target evaluation set. If the optimized query set is structured and exported according to a user-preset output format (such as JSON), testers can directly use this evaluation set for downstream evaluation tasks of in-vehicle voice question-answering systems.

[0043] Therefore, by acquiring real online voice question-and-answer statements as seed data, a large language model is used for semantic cleaning to remove invalid statements. When the amount of real data is insufficient, the large language model is controlled to generalize and generate data based on the sentence structure distribution and intent category distribution of the candidate set to supplement the data in a targeted manner. Finally, after colloquial optimization and rewriting, an evaluation set is output, forming a fully automated closed-loop process from data retrieval to result output. This method constrains the generation process with real distribution, effectively avoiding semantic deviation and statement homogenization problems; it uses a conditional trigger mechanism to call generation capabilities on demand, reducing unnecessary computational consumption; and it replaces manual rule writing and review with end-to-end automation, significantly reducing labor costs and providing a high-quality, high-fidelity evaluation data foundation for in-vehicle voice question-and-answer systems.

[0044] Optionally, after semantically cleaning the target query statement using a large language model, the intelligent evaluation set generation method may further include: obtaining a cleaning confidence score for each target query statement based on the semantic cleaning result; if the cleaning confidence score is lower than a preset confidence threshold, then re-calling the large language model for secondary semantic cleaning, or marking the target query statement as a statement to be reviewed; if the cleaning confidence score is higher than or equal to the preset confidence threshold, then directly retaining the semantic cleaning result.

[0045] In this embodiment of the application, the electronic device can obtain a cleaning confidence score for each target query statement based on the semantic cleaning result.

[0046] Specifically, when the large language model performs semantic cleaning on each query (i.e., determines whether the query is valid and should be retained), it simultaneously outputs a cleaning confidence score. This cleaning confidence score represents the model's degree of certainty about its judgment, and is usually between 0 and 1. The higher the score, the more confident the model is in its judgment.

[0047] In some embodiments, if the cleaning confidence score is lower than a preset confidence threshold, the large language model is called again for secondary semantic cleaning, or the target query statement is marked as a statement to be reviewed.

[0048] Specifically, if the semantic cleaning confidence score of a statement is lower than the preset confidence threshold (e.g., 0.8), it indicates that the model's judgment result for that statement is uncertain. In this case, the electronic device takes one of the following two remedial measures: It calls the large language model again to perform a second semantic cleaning of the statement, allowing the model to analyze and judge it again. If the two results are consistent, the statement is adopted; otherwise, further processing is performed. Alternatively, the statement is directly marked as a statement to be reviewed and output to human reviewers for confirmation.

[0049] In other embodiments, if the cleaning confidence score is higher than or equal to the preset confidence threshold, the semantic cleaning result is directly retained.

[0050] Specifically, if the cleaning confidence score of a statement is higher than or equal to the preset confidence threshold, it means that the model has a high degree of confidence in its cleaning results. The electronic device directly adopts the cleaning results, retains or removes the statement, and no additional processing is required.

[0051] Therefore, the quality of the cleaning results is graded by confidence score, and different processing strategies are adopted for samples of different quality levels. This ensures the overall cleaning quality while keeping the cost of calling the large language model and the cost of manual review within a reasonable range.

[0052] Optionally, S110 may specifically include: pulling online raw voice Q&A logs from a big data platform, and obtaining the target query statement using a timed storage and retrieval mode and / or an instant storage and retrieval mode.

[0053] Optionally, the scheduled storage and retrieval mode is used for periodically batch importing historical query statements. For example, three scheduled tasks are configured daily at 2:00 AM, 10:00 AM, and 6:00 PM. At each set time, the electronic device automatically batches and retrieves the full amount of in-vehicle voice interaction logs for the corresponding time period from the log database of the big data platform. Each time, approximately 2,000-5,000 query statements are retrieved and stored in the local data warehouse. This mode is mainly used for the batch generation of periodic evaluation sets to ensure the continuous accumulation of historical data.

[0054] Optionally, the instant storage and retrieval mode is used to retrieve the current query statement in real time in response to a trigger signal. For example, when a product manager clicks the "Generate Evaluation Set Now" button on a webpage, a trigger signal is sent to the electronic device via the network. In response to this trigger signal, the electronic device retrieves the latest voice Q&A data from the big data platform within the previous hour, approximately 50-200 entries. This mode is used for urgent or small-batch evaluation needs, meeting scenarios with high requirements for data freshness.

[0055] In this embodiment of the application, when the evaluation set generation process is started, the electronic device automatically selects the retrieval mode according to the "data timeliness" parameter configured by the user: if it is configured as "latest data", the real-time storage retrieval mode is used first; if it is configured as "historical data", the timed storage retrieval mode is used; if it is configured as "all data", the two modes are retrieved in parallel and then merged to remove duplicates.

[0056] Thus, by flexibly configuring the two retrieval modes, the reliability and timeliness of the data source are unified, meeting the differentiated needs of different evaluation scenarios for data freshness.

[0057] Optionally, S130 may specifically include: extracting the sentence structure distribution and intent category distribution of the candidate query statement set; using the sentence structure distribution and intent category distribution as constraints when generating the large language model, controlling the large language model to generate a first query statement with a corresponding sentence structure according to the sentence structure distribution, and a second query statement with a corresponding intent category according to the intent category distribution; and generating the supplementary query statement based on the first query statement and the second query statement through synonym replacement, scene parameter transformation, and / or question type expansion.

[0058] In this embodiment, the electronic device can extract the sentence structure distribution and intent category distribution of the candidate query statement set. Specifically, the electronic device first performs statistical analysis on the candidate query statement set, extracting the sentence structure distribution (such as the proportion of various sentence types such as interrogative sentences, imperative sentences, and declarative sentences) and intent category distribution (such as the proportion of various intent types such as navigation, vehicle control, and multimedia). These two distributions together constitute the semantic distribution features of the candidate set.

[0059] For example, after semantic cleaning, the candidate query set yields 850 actual query statements. The electronic device first performs statistical analysis on these 850 statements, specifically extracting the following two types of distribution features: Sentence structure distribution: The electronic device uses a large language model to classify each query statement by sentence type (interrogative, imperative, declarative, exclamatory), and calculates the percentage of each type in the candidate set. The results are: interrogative sentences account for 60% (e.g., "How to get to XX", "What's nearby?"), imperative sentences account for 30% (e.g., "Turn on the air conditioner", "Play music"), declarative sentences account for 15% (e.g., "I want to listen to music"), and exclamatory sentences account for 5% (e.g., "That's great"). Intent category distribution: The electronic device uses a large language model to classify each query statement by intent (navigation, vehicle control, multimedia, communication, other), and calculates the percentage of each intent in the candidate set. The statistics show that navigation-related functions account for 40% (involving route planning and destination search), vehicle control functions account for 35% (involving air conditioning, windows, seats, etc.), multimedia functions account for 20% (involving music and radio playback), and communication functions account for 5% (involving making phone calls and sending and receiving messages).

[0060] Furthermore, the electronic device uses the sentence structure distribution and the intent category distribution as constraints when generating the large language model, and controls the large language model to generate a first query statement with a corresponding sentence structure according to the sentence structure distribution, and to generate a second query statement with a corresponding intent category according to the intent category distribution.

[0061] Specifically, constraints refer to the limitations or requirements imposed on the output of the large language model during the generation process. In this scheme, sentence structure distribution and intent category distribution are used as constraints, meaning that the large language model cannot generate supplementary query statements arbitrarily, but must generate them according to the sentence structure ratio and intent ratio of the real data in the candidate set.

[0062] The large language model generates first query statements based on the sentence structure distribution of the candidate set. For example, if 60% of the candidate set consists of interrogative sentences, then approximately 60% of the supplementary query statements generated by the model should also be interrogative sentences. The large language model then generates second query statements based on the intent category distribution of the candidate set. For example, if 40% of the candidate set consists of navigation-related intents, then approximately 40% of the supplementary query statements generated by the model should also contain navigation-related intents.

[0063] Furthermore, the electronic device can generate the supplementary query statement based on the first query statement and the second query statement by means of synonym replacement, scene parameter transformation and / or question type expansion.

[0064] In the embodiments of this application, the electronic device control language model, while keeping the above two distributions unchanged, generates diverse supplementary query statements by combining one or more methods such as synonym replacement (word-level transformation), scene parameter transformation (entity / numerical level transformation), and question type expansion (sentence-level transformation).

[0065] Specifically, the electronic device inputs the aforementioned distribution information as constraints into the large language model, while specifying a total generation volume of 4150 sentences. The electronic device controls the large language model to strictly adhere to the following constraints during the generation process: the proportion of sentence structure in the generated sentences does not exceed ±3%, i.e., interrogative sentences are controlled between 57% and 63%, imperative sentences between 27% and 33%, and so on; the proportion of intent categories in the generated sentences does not exceed ±3%, i.e., navigation sentences are controlled between 37% and 43%, vehicle control sentences between 32% and 38%, and so on; under the premise of satisfying the above distribution constraints, the generated sentences achieve diversity through strategies such as synonym replacement, scene parameter transformation, and / or question type expansion. For example, synonym replacement: replacing "navigate to the train station" with "guide to the train station," "lead the way to the train station," etc.; scene parameter transformation: changing the destination "train station" in "navigate to the train station" to "airport," "Wanda Plaza," etc.; question type expansion: expanding "navigate to the train station" to "please help me navigate to the train station," "I want to go to the train station, help me navigate," etc. The large language model generated 4150 supplementary query statements according to the above constraints. The electronic device sampled and verified the generated results to confirm that the distribution deviation of each dimension was within ±3%, ensuring that the semantic distribution of the generated data was highly consistent with that of the real data.

[0066] Therefore, by extracting and maintaining the sentence structure distribution and intent category distribution of the candidate set, the generated supplementary query statements are highly consistent with the real data in terms of statistical features, fundamentally solving the technical problem of inconsistent generated data and real distribution in pure large model generation schemes. The combined use of three strategies—synonym replacement, scene parameter transformation, and question type expansion—ensures that the generated query statements have sufficient diversity, avoiding the homogenization problem of simply replacing individual nouns. Data expansion while maintaining distribution consistency increases the amount of data and ensures the quality of the new data, enabling the evaluation set to truly reflect the user habits of in-vehicle voice interaction.

[0067] Optionally, S130 may specifically include: calculating the semantic similarity between the supplementary query statement and each query statement in the candidate query statement set; removing duplicate supplementary query statements whose semantic similarity exceeds a preset threshold, and merging the remaining supplementary query statements into the candidate query statement set to obtain the expanded query statement set.

[0068] In this embodiment of the application, the electronic device can calculate the semantic similarity between the supplementary query statement and each query statement in the candidate query statement set.

[0069] Specifically, the electronic device calculates the semantic similarity between each supplementary query statement and each query statement in the candidate query statement set, that is, it determines whether the supplementary statement is semantically repetitive or highly similar to the existing statements.

[0070] Furthermore, the electronic device can remove duplicate supplementary query statements whose semantic similarity exceeds a preset threshold, and merge the remaining supplementary query statements into the candidate query statement set to obtain the expanded query statement set.

[0071] Specifically, the electronic device identifies supplementary query statements with a semantic similarity exceeding a preset threshold (e.g., 0.85) as duplicates and removes them. Only supplementary query statements with a semantic similarity below the threshold are added to the candidate query statement set, resulting in an expanded query statement set. Unlike traditional character-level deduplication (which only removes completely identical strings), semantic-level deduplication can identify and remove duplicate statements that have different expressions but the same meaning, further improving the quality and diversity of the dataset.

[0072] For example, the electronic device calculates the semantic similarity between each supplementary query and all queries in the candidate set (using semantic vector models such as cosine similarity or SBERT). For instance, the supplementary query "Please navigate me to the nearest gas station" has a semantic similarity of 0.92 with the existing query "navigate to gas station" in the candidate set, exceeding the preset threshold of 0.85, and is therefore considered semantically duplicated and removed. The supplementary query "I want to go to the nearby supermarket to buy things" has the highest semantic similarity of only 0.45 with all queries in the candidate set, not exceeding the threshold, and is therefore considered novel and retained. The supplementary query "Take me to Guomao" has a semantic similarity of 0.88 with the existing query "go to Guomao" in the candidate set, exceeding the threshold of 0.85, and is therefore considered semantically duplicated and removed. After filtering, the remaining supplementary queries are merged into the candidate query set to obtain the expanded query set. If the number after this merging still does not reach the target number, the electronic device can trigger the generalization generation step again to iteratively supplement until the target number is reached.

[0073] This ensures that each retained supplementary query statement contributes incrementally at the semantic level, resolving the homogenization problem in existing solutions where the generated data has a consistent format and only replaces a few nouns. Semantic deduplication guarantees the unique value of each statement in the evaluation set, enabling the evaluation results to more comprehensively reflect the model's true capabilities. Only truly novel supplementary statements are included in the candidate set, avoiding invalid data consuming storage space and computational resources for subsequent optimization and rewriting.

[0074] Optionally, the intelligent evaluation set generation method may further include: determining whether the number of candidate query statement sets has reached the target generation number; if the number of candidate query statement sets has reached the target generation number, then skipping the step of using the large language model to generalize and generate supplementary query statements based on the sentence structure distribution and intent category distribution of the candidate query statement sets, and merging them with the candidate query statement sets to obtain an expanded query statement set, while retaining the candidate query statement set.

[0075] In this embodiment of the application, the electronic device can determine whether the number of candidate query statement sets has reached the target number of generated statements. If the number of candidate query statement sets has reached the target number of generated statements, the electronic device skips the entire generalization generation and merging step and directly retains the candidate query statement sets as input objects for subsequent optimization and rewriting.

[0076] Specifically, the electronic device pulls raw online voice Q&A from a big data platform and performs semantic cleaning to obtain a candidate query set. The cleaned candidate set contains 350 queries. The electronic device determines that the number of candidate query statements is 350, which meets the target of 300, thus triggering process control: skipping the step of using the large language model to generalize and generate supplementary query statements based on the semantic distribution of the candidate query set and merging them with the candidate query set, without calling the large language model for any generalization generation. Subsequently, the electronic device directly uses the candidate query set (350 statements) as the set to be rewritten and enters the optimization and rewriting step, rewriting the large language model into colloquial language before outputting it. In this process, the large language model is only called in the semantic cleaning and optimization and rewriting stages; the generalization generation stage is completely skipped, saving LLM call costs.

[0077] Therefore, the large language model is only triggered to generate generalized data when the amount of data is truly insufficient, avoiding unnecessary LLM calls and effectively controlling computational costs and API call fees. When there is sufficient real-world data online, the evaluation set is directly constructed using real data without waiting for the generation process, shortening the overall time required for evaluation set generation. Prioritizing the use of real data when there is sufficient real-world data ensures the authenticity and representativeness of the evaluation set.

[0078] Optionally, S140 may specifically include: using the large language model to identify the written expression of each query statement in the expanded query statement set or the candidate query statement set, and converting the written expression into a natural spoken expression in the vehicle voice interaction scenario.

[0079] In this embodiment, the electronic device uses a large language model to identify the written expressions of each query in the query statement set to be rewritten, such as complete written grammatical structures, formal vocabulary, and lack of colloquial features. It then controls the large language model to convert the identified written expressions into natural colloquial expressions for in-vehicle voice interaction scenarios, making them more consistent with the expression habits of real users when conversing with the vehicle's infotainment system via voice.

[0080] For example, "Please adjust the air conditioning temperature to 25 degrees Celsius" can be rewritten as "Set the air conditioning to 25 degrees"; "Are there any public parking lots available near the current vehicle location?" can be rewritten as "Are there any parking lots nearby?", etc., without any restrictions. For phrases that already conform to colloquial expressions (such as "Navigate to the train station"), the large language model will not modify them after recognition and will retain them directly. After rewriting, the electronic device outputs the rewritten query set, which highly matches the linguistic features of real-world in-vehicle voice interaction scenarios.

[0081] Therefore, by converting written expressions into natural spoken language, the evaluation set is made more closely resemble real-world in-vehicle voice interaction scenarios. When using this evaluation set to test in-vehicle voice question-answering systems, the evaluation results better reflect the system's actual performance in real-world use. Utilizing a large language model to understand semantics and perform natural spoken language rewriting is more accurate and flexible than rule-based text replacement, and can handle complex sentence transformation scenarios.

[0082] Optionally, after S130, the intelligent evaluation set generation method may further include: performing quality verification on the expanded query statement set, and counting the number of valid samples in the expanded query statement set according to the verification result; if the number of valid samples does not reach the target generation quantity, then determining the expected generation quantity for the next round based on the difference between the number of valid samples and the target generation quantity, and repeating the step of generalizing and generating supplementary query statements based on the expected generation quantity for the next round until the number of valid samples reaches the target generation quantity.

[0083] In this embodiment of the disclosure, the electronic device can perform quality verification on the expanded query statement set and count the number of valid samples in the expanded query statement set based on the verification results.

[0084] Specifically, the electronic device performs multi-dimensional quality verification on each query statement in the expanded query statement set. Verification dimensions include, but are not limited to, classification consistency (whether the statement's classification label is accurate), semantic clarity (whether the statement's semantics are complete and clear), in-vehicle suitability (whether the statement conforms to the in-vehicle scenario), safety boundaries (whether the statement involves content related to safe driving), and duplication (whether the statement highly duplicates existing samples). Only statements that pass all verification dimensions are considered valid samples. The electronic device counts the number of statements that pass the quality verification as the number of valid samples. Statements that fail the verification (e.g., incorrect classification labels, semantic ambiguity, or incompatibility with the in-vehicle scenario) are marked as invalid samples and removed, and are not included in the valid sample count.

[0085] Furthermore, if the number of valid samples does not reach the target number of samples generated, the expected number of samples to be generated in the next round is determined based on the difference between the number of valid samples and the target number of samples generated, and the step of generating the generalized supplementary query statement is repeated based on the expected number of samples to be generated in the next round until the number of valid samples reaches the target number of samples generated.

[0086] Specifically, if the number of valid samples does not reach the target number of samples generated, the electronic device calculates the remaining gap (target number of samples generated minus the current number of valid samples), determines the expected number of samples to be generated in the next round based on the gap, and then re-executes the steps of generalizing to generate supplementary query statements, merging, and quality verification until the number of valid samples reaches the target number of samples generated.

[0087] Therefore, by strictly distinguishing between valid and invalid samples through quality verification, only samples that pass the verification are included in the valid coverage, ensuring that every sample in the final evaluation set has been quality verified.

[0088] Figure 2 A flowchart illustrating another intelligent evaluation set generation method provided in an embodiment of this application is shown.

[0089] like Figure 2 As shown, users perform evaluation set requirement analysis and configure evaluation requirements on the web page, including setting primary and secondary categories, the target number of evaluation sets to be generated, and the output format. Based on the user-configured category information, the electronic device retrieves the corresponding online raw voice question-and-answer queries from the big data platform as raw data to be processed. Data retrieval supports both timed storage retrieval mode (periodic batch import of historical queries) and real-time storage retrieval mode (real-time retrieval of the current query in response to trigger signals). The electronic device then sends the retrieved raw queries to a query cleaning tool, which uses a large language model for semantic cleaning, filtering out semantically unclear or invalid queries that do not fit the in-vehicle scenario, resulting in a candidate query set.

[0090] Next, the electronic device determines whether the candidate query set has reached the user-defined target number of generated queries. If the target number has been reached, the generalization generation step is skipped, and the candidate query set is directly sent to the subsequent optimization and rewriting stage. If the target number has not been reached, the candidate query set is sent to the query generalization generation tool, which uses a large language model to generalize based on the true semantic distribution of the candidate query set (including sentence structure distribution and intent category distribution). Supplementary queries are generated through synonym replacement, scene parameter transformation, and / or question type expansion. After semantic deduplication and merging, an expanded query set (expanded query set) is obtained and then sent to the subsequent optimization and rewriting stage. The electronic device sends the query set to be rewritten (i.e., the candidate query set or expanded query set) to the query optimization and rewriting tool, which uses a large language model to identify the written expressions and convert them into natural spoken expressions for in-vehicle voice interaction scenarios, resulting in the optimized query set. Finally, the electronic device formats and exports the optimized query set according to the user-preset output format, generating the target evaluation set.

[0091] Figure 3 A schematic diagram of the structure of an intelligent evaluation set generation device provided in an embodiment of this application is shown.

[0092] In some embodiments of this application, Figure 3 The intelligent evaluation set generation device shown can be used to implement the intelligent evaluation set generation method.

[0093] like Figure 3 As shown, the intelligent evaluation set generation device 300 may include: The data acquisition module 310 can be used to acquire the target query statement and the target number of generated original online voice Q&A.

[0094] The first processing module 320 can be used to perform semantic cleaning on the target query statement using a large language model to obtain a set of candidate query statements.

[0095] The second processing module 330 can be used to generate supplementary query statements by generalizing based on the sentence structure distribution and intent category distribution of the candidate query statement set using the large language model if the number of candidate query statement sets does not reach the target number of generated statements, and then merge these supplementary query statements with the candidate query statement set to obtain an expanded query statement set.

[0096] The third processing module 340 can be used to optimize and rewrite the expanded query statement set or the candidate query statement set using the large language model, and output the rewritten query statement set.

[0097] Therefore, in this embodiment, real online voice question-and-answer statements are obtained as seed data. A large language model is used for semantic cleaning to remove invalid statements. When the amount of real data is insufficient, the large language model is controlled to generalize and generate data based on the real semantic distribution of the candidate set to supplement the data in a targeted manner. Finally, after colloquial optimization and rewriting, an evaluation set is output, forming a fully automated closed-loop process from data retrieval to result output. This method constrains the generation process with real distribution, effectively avoiding semantic deviation and statement homogenization problems; it uses a conditional trigger mechanism to call generation capabilities on demand, reducing unnecessary computational consumption; and it replaces manual rule writing and review with end-to-end automation, significantly reducing labor costs and providing a high-quality, high-fidelity evaluation data foundation for in-vehicle voice question-and-answer systems.

[0098] In some embodiments of this application, the intelligent evaluation set generation device 300 includes: The scoring acquisition module is used to acquire the cleaning confidence score of each target query statement based on the semantic cleaning results. The fourth processing module is used to, if the cleaning confidence score is lower than the preset confidence threshold, call the large language model again for secondary semantic cleaning, or mark the target query statement as a statement to be reviewed. The fifth processing module is used to directly retain the semantic cleaning result if the cleaning confidence score is higher than or equal to the preset confidence threshold.

[0099] In some embodiments of this application, the second processing module 330 includes: The first processing unit is used to extract the sentence structure distribution and intent category distribution of the candidate query statement set; The second processing unit is used to control the large language model to generate a first query statement with the corresponding sentence structure according to the sentence structure distribution and the intent category distribution, and to generate a second query statement with the corresponding intent category according to the intent category distribution, using the sentence structure distribution and the intent category distribution as constraints when generating the large language model. The third processing unit is used to control the large language model to generate the supplementary query statement by synonym replacement, scene parameter transformation and / or question type expansion while maintaining the sentence structure distribution and intent category distribution.

[0100] In some embodiments of this application, the second processing module 330 includes: The fourth processing unit is used to calculate the semantic similarity between the supplementary query statement and each query statement in the candidate query statement set; The fifth processing unit is used to remove duplicate supplementary query statements whose semantic similarity exceeds a preset threshold, and to merge the remaining supplementary query statements into the candidate query statement set to obtain the expanded query statement set.

[0101] In some embodiments of this application, the intelligent evaluation set generation device 300 further includes: The quantity determination module is used to determine whether the number of the candidate query statement set has reached the target generation quantity; The fifth processing module is used to skip the step of using the large language model to generalize and generate supplementary query statements based on the sentence structure distribution and intent category distribution of the candidate query statement set and merge them with the candidate query statement set to obtain an expanded query statement set if the number of candidate query statement sets has reached the target number of generated statements, and retains the candidate query statement set.

[0102] In some embodiments of this application, the intelligent evaluation set generation device 300 includes: The first verification module is used to perform quality verification on the expanded query statement set and count the number of valid samples in the expanded query statement set based on the verification results. The second verification module is used to determine the expected generation quantity for the next round based on the difference between the number of valid samples and the target generation quantity if the number of valid samples does not reach the target generation quantity, and to repeat the step of generating the generalized supplementary query statement based on the expected generation quantity for the next round until the number of valid samples reaches the target generation quantity.

[0103] It should be noted that, Figure 3 The intelligent evaluation set generation device 300 shown can perform... Figures 1 to 2 The various steps in the method embodiment shown are implemented. Figures 1 to 2 The processes and effects in the method embodiments shown are not described in detail here.

[0104] Figure 4 A schematic diagram of the structure of an intelligent evaluation set generation device provided in an embodiment of this application is shown.

[0105] like Figure 4 As shown, the intelligent evaluation set generation device is equipped with an intelligent evaluation set generation system, which may include a processor 401 and a memory 402 storing computer program instructions.

[0106] Specifically, the processor 401 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.

[0107] Memory 402 may include a large-capacity storage device for information or instructions. For example, and not limitingly, memory 402 may include a hard disk drive (HDD), a floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 402 may include removable or non-removable (or fixed) media. Where appropriate, memory 402 may be internal or external to the integrated gateway device. In a particular embodiment, memory 402 is a non-volatile solid-state memory. In a particular embodiment, memory 402 includes read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (Electrically Programmable ROM, EPROM), an electrically erasable programmable PROM (EEPROM), an electrically alterable ROM (EAROM), or flash memory, or a combination of two or more of these.

[0108] The processor 401 reads and executes the computer program instructions stored in the memory 402 to perform the steps of the intelligent evaluation set generation method provided in the embodiments of this application.

[0109] In one example, the intelligent evaluation set generation device may further include a transceiver 403 and a bus 404. Wherein, as Figure 4 As shown, the processor 401, memory 402 and transceiver 403 are connected via bus 404 and communicate with each other.

[0110] Bus 404 includes hardware, software, or both. For example, and not limitingly, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industrial Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses, or a combination of two or more of these. Where appropriate, bus 404 may include one or more buses. Although specific buses are described and illustrated in the embodiments of this application, this application considers any suitable bus or interconnection.

[0111] This application also provides a computer-readable storage medium that can store a computer program. When the computer program is executed by a processor, the processor enables the processor to implement the intelligent evaluation set generation method provided in this application.

[0112] The aforementioned storage medium may include, for example, a memory 402 containing computer program instructions, which can be executed by the processor 401 of the intelligent evaluation set generation device to complete the intelligent evaluation set generation method provided in this embodiment. Optionally, the storage medium may be a non-transitory computer-readable storage medium, such as a ROM, random access memory (RAM), compact disc ROM (CD-ROM), magnetic tape, floppy disk, and optical data storage device.

[0113] This application also provides a mobile device, which includes the intelligent evaluation set generation device described above. The mobile device may include, but is not limited to, vehicles, mobile intelligent terminals, robots, embodied intelligence, etc. It is understood that the mobile device may also include a processor, a memory, and a computer program. The computer program is stored in the memory and configured to be executed by the processor to implement the intelligent evaluation set generation method provided in this application. The processor and memory are already... Figure 4 The parts of the illustrated embodiments will not be repeated here.

[0114] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the term "comprising" is intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus.

[0115] The above description is merely a specific embodiment of this application, enabling those skilled in the art to understand or implement this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for generating intelligent evaluation sets, characterized in that, The method includes: Obtain the target query statement and target number of generated original online voice Q&A; The target query statement is semantically cleaned using a large language model to obtain a set of candidate query statements; If the number of candidate query statements does not reach the target number of generated statements, the large language model is used to generalize and generate supplementary query statements based on the sentence structure distribution and intent category distribution of the candidate query statement set, and these supplementary query statements are then merged with the candidate query statement set to obtain an expanded query statement set. The extended query statement set or the candidate query statement set is optimized and rewritten using the large language model, and the rewritten query statement set is output.

2. The intelligent evaluation set generation method according to claim 1, characterized in that, After semantically cleaning the target query statement using a large language model, the method further includes: Based on the semantic cleaning results, obtain the cleaning confidence score for each target query statement; If the confidence score of the cleaning is lower than the preset confidence threshold, the large language model is called again for secondary semantic cleaning, or the target query statement is marked as a statement to be reviewed. If the cleaning confidence score is higher than or equal to the preset confidence threshold, the semantic cleaning result is directly retained.

3. The intelligent evaluation set generation method according to claim 1, characterized in that, The step of using the large language model to generalize and generate supplementary query statements based on the sentence structure distribution and intent category distribution of the candidate query statement set includes: Extract the sentence structure distribution and intent category distribution of the candidate query statement set; Using the sentence structure distribution and the intent category distribution as constraints when generating the large language model, the large language model is controlled to generate a first query statement with the corresponding sentence structure according to the sentence structure distribution, and a second query statement with the corresponding intent category according to the intent category distribution. Based on the first query statement and the second query statement, the supplementary query statement is generated through synonym replacement, scene parameter transformation and / or question type expansion.

4. The intelligent evaluation set generation method according to claim 3, characterized in that, By combining the candidate query statement set with the candidate query statement set, an expanded query statement set is obtained, including: Calculate the semantic similarity between the supplementary query statement and each query statement in the candidate query statement set; Duplicate supplementary query statements with semantic similarity exceeding a preset threshold are removed, and the remaining supplementary query statements are merged into the candidate query statement set to obtain the expanded query statement set.

5. The intelligent evaluation set generation method according to claim 3, characterized in that, After obtaining the target query statement and the target number of generated original online voice Q&A responses, the method further includes: Determine whether the number of candidate query statements has reached the target number of queries generated. If the number of candidate query statements has reached the target number of generated statements, then skip the step of using the large language model to generalize and generate supplementary query statements based on the sentence structure distribution and intent category distribution of the candidate query statement set, and merge them with the candidate query statement set to obtain an expanded query statement set, and retain the candidate query statement set.

6. The intelligent evaluation set generation method according to any one of claims 1-5, characterized in that, After obtaining the expanded query statement set, the method further includes: The quality of the expanded query statement set is verified, and the number of valid samples in the expanded query statement set is counted based on the verification results. If the number of valid samples does not reach the target number of samples generated, the expected number of samples to be generated in the next round is determined based on the difference between the number of valid samples and the target number of samples generated, and the step of generating the generalized supplementary query statement is repeated based on the expected number of samples to be generated in the next round until the number of valid samples reaches the target number of samples generated.

7. An intelligent evaluation set generation device, characterized in that, include: The data acquisition module is used to acquire the target query statement and the target number of generated original online voice Q&A responses; The first processing module is used to perform semantic cleaning on the target query statement using a large language model to obtain a set of candidate query statements. The second processing module is used to generate supplementary query statements by generalizing based on the sentence structure distribution and intent category distribution of the candidate query statement set and merging them with the candidate query statement set if the number of candidate query statement sets does not reach the target number of generated statements. The third processing module is used to optimize and rewrite the expanded query statement set or the candidate query statement set using the large language model, and output the rewritten query statement set.

8. An intelligent evaluation set generation device, characterized in that, include: processor; Memory, used to store executable instructions; The processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the intelligent evaluation set generation method according to any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, causes the processor to implement the intelligent evaluation set generation method according to any one of claims 1-6.

10. A movable device, characterized in that, Includes the intelligent evaluation set generation device as described in claim 7.