Online car-hailing question and answer service method, device and system based on large language model

By using a large language model to identify user intentions and query the business rules database in the online car-hailing customer service system, the problem of insufficient understanding of existing systems when dealing with complex or non-standard problems is solved, and more accurate and professional answers are provided.

CN118673111APending Publication Date: 2024-09-20XIAMEN YUNXING INFORMATION TECH CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410692490.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

The existing online ride-hailing customer service system lacks understanding capabilities when dealing with complex or non-standard questions, resulting in poor response results and requiring manual intervention to correct misunderstandings.

Method used

Adopt a question and answer service method based on a large language model, and generate structured intent key information through intent recognition and business rules database, automatically identify user intent and provide accurate answers, reducing manual intervention.

Benefits of technology

It has improved the understanding ability and answer accuracy of the online car-hailing customer service system, and can handle complex and non-standard questions, reduce misunderstandings, and provide more professional and accurate answers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118673111A
    Figure CN118673111A
Patent Text Reader

Abstract

The invention relates to the technical field of artificial intelligence, and discloses an online car-hailing question and answer service method, device and system based on a large language model, applied to an online car-hailing question and answer service system.The method comprises the steps that first inquiry information triggered by a terminal is responded, and intention recognition is conducted on the first inquiry information based on a large language model engine to obtain intention key information; and according to the intention key information and a preset online car-hailing service rule database, obtaining service processing logic, generating first answer information of a decision answer corresponding to the first inquiry information, and transmitting the first answer information to the terminal. The intention recognition is performed on the first inquiry information by using the large language model engine, and the key intention information of the terminal user is pre-analyzed, so that compared with a traditional mode of matching and answering according to keywords, the accuracy of semantic understanding is improved, and the user experience is improved. And the answer obtained according to the preset online car-hailing service rule database is more in line with the actual demand of the terminal user, so that the understanding ability of the online car-hailing customer service system is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a method, device and system for an online car-hailing question-and-answer service based on a large language model. Background Art

[0002] In the related art, the front end of the online car-hailing customer service system adopts a search-based architecture, which quickly answers some questions by searching for preset answers. It can also be understood as instantly responding to some basic queries by matching preset answers. However, this model that relies on answer search has obvious disadvantages. It can only answer some simple and direct inquiries, and cannot understand complex inquiries. The answer effect is not good and still requires the intervention of manual customer service. Summary of the invention

[0003] In view of this, the present invention provides a method, device and system for an online car-hailing question and answer service based on a large language model to solve the problem of how to improve the understanding ability of the online car-hailing customer service system to ensure the effectiveness of the online car-hailing question and answer service.

[0004] In a first aspect, the present invention provides a method for online car-hailing question-and-answer service based on a large language model, which is applied to an online car-hailing question-and-answer service system, and the method includes: responding to first inquiry information triggered by a terminal, wherein the terminal is one or more of a driver terminal, a manual customer service terminal, and a passenger terminal;

[0005] Based on the large language model engine, the first query information is subjected to intent recognition to extract key intent information;

[0006] Obtaining business processing logic based on the key information of the intention and a preset online car-hailing business rule database;

[0007] First answer information that is a decision answer corresponding to the first inquiry information is generated according to the business processing logic, and the first answer information is transmitted to the terminal.

[0008] This embodiment responds to the first inquiry information triggered by different terminals, uses the large language model engine to identify the intent of the first inquiry information, obtains the key information of the intent, and pre-analyzes the key intention information of the terminal user. Compared with the traditional method of matching answers based on keywords, this embodiment correctly identifies the user's intention when the terminal user's question is unclear or a non-standard dialect is used, and improves the accuracy of semantic understanding. In addition, based on the key information of the intent after intent identification, the preset online car-hailing business rule database is queried, and the answers obtained are more in line with the actual needs of the terminal users, and indirectly reduce misunderstandings caused by misunderstandings of manual customer service. Therefore, without relying on manual labor, the answers to questions are more accurate, thereby improving the understanding ability of the online car-hailing customer service system.

[0009] In an optional implementation, the acquiring of the business processing logic according to the intention key information and a preset business rule database includes:

[0010] Determine whether the intention key information includes a query identifier, where the query identifier has a one-to-one relationship with the business processing logic;

[0011] When the query identifier is included in the intention key information, the online car-hailing business rule database is queried based on the query identifier to obtain the corresponding business processing logic;

[0012] When the query identifier is not included in the intention key information, the inquiry type to which the intention key information belongs is determined; a second inquiry information is generated based on the inquiry type, the second inquiry information is transmitted to the terminal, and a second answer information triggered by the terminal is responded to, the query identifier is generated according to the second answer information, and the online car-hailing business rule database is queried based on the query identifier to obtain the corresponding business processing logic; wherein, the second answer information represents the answer made by the terminal user based on the second inquiry information.

[0013] This embodiment adapts to different operations by determining whether the query identifier exists to ensure that the most accurate business logic is obtained. When the query identifier is missing, the second query information is used to interact with the user according to different query types to supplement the complete information. In either case, the required query identifier can be obtained to query the database. The business logic is stored in the database, and when the business changes, the new business processing logic can continue to be modified or expanded, thereby improving the scalability and flexibility of the business processing logic.

[0014] In an optional implementation, the performing intent recognition on the first query information based on the large language model engine to extract key intent information includes:

[0015] Performing word segmentation processing on the first query information to obtain a word sequence;

[0016] Analyzing the word sequence based on the large language model engine to determine the semantic relationship and syntactic structure corresponding to the first query information;

[0017] extracting different types of entity information according to the semantic relationship and the syntactic structure corresponding to the first query information;

[0018] Fill different types of entity information into preset slot templates to generate structured intent key information.

[0019] The large language model of this embodiment can identify the intention to extract structured information in user questions. Compared with the phenomenon that keyword matching only performs queries based on preset keywords, which is prone to omissions or incorrect results, the large language model of this embodiment fully understands the context and deconstructs the original question layer by layer, thereby generating more professional and accurate answers.

[0020] In an optional implementation, the inquiry type includes billing inquiry, reward inquiry, penalty inquiry, order inquiry, passenger service inquiry, driver evaluation inquiry, and driving inquiry, and the determination of the inquiry type to which the key intention information belongs includes:

[0021] Establishing a key information collection database, wherein the key information collection database includes different inquiry types and corresponding key information collections;

[0022] Matching any of the key information sets in the key information set library in sequence according to the intention key information, and determining whether the intention key information exists in any of the key information sets;

[0023] When the intention key information exists in the target key information set, determining the query type corresponding to the target key information set as the query type to which the intention key information belongs;

[0024] or,

[0025] Construct a query type classifier based on historical query information;

[0026] The intention key information is input into the query type classifier, and a classification result of the query type classifier is obtained as the query type to which the intention key information belongs.

[0027] This embodiment automatically determines the query type by establishing a key information collection library or building a query type classifier based on historical query information, thereby avoiding the manual classification process, speeding up the classification of intended key information, and improving the accuracy of classification. It also avoids manual classification errors and further ensures the accuracy of the answer results.

[0028] In an optional embodiment, the online car-hailing business rules database includes different types of business rules, including one or more of billing rules, reward rules, penalty rules, order acceptance rules, passenger service rules, driver evaluation rules, and driving rules.

[0029] This embodiment responds to various inquiries through preset business rules, and can quickly match corresponding business rules based on the intention recognition results of the large language model and the specific needs of the user, so that the obtained decision answers are more suitable for the terminal user's inquiries.

[0030] In an optional implementation manner, the triggering mode of the first inquiry information at least includes voice input or text input; the method further includes:

[0031] Based on the data set corresponding to the historical standard query expression and the data set corresponding to the non-standard query expression, the query fine-tuning model is obtained by training using the preset machine learning algorithm;

[0032] The first query information is input into the query fine-tuning model to obtain the first query information in a fine-tuned standard form.

[0033] This embodiment understands and converts the non-standard first query information into a standard form. Even if the user's expression is not standardized or contains colloquialisms or dialects, it can ensure that the subsequent large language model engine accurately understands the user's intention after fine-tuning, thereby obtaining a professional and more accurate answer, thereby improving the terminal user experience.

[0034] In a second aspect, the present invention provides a large language model-based online car-hailing question-answering service device, which is applied to an online car-hailing question-answering service system. The device includes:

[0035] An inquiry acquisition module, used to respond to the first inquiry information triggered by a terminal, wherein the terminal is one or more of a driver terminal, a manual customer service terminal, and a passenger terminal;

[0036] An intention recognition module, used to perform intention recognition on the first query information based on a large language model engine and extract key information of the intention;

[0037] A business logic analysis module, used to obtain business processing logic based on the key information of the intention and a preset online car-hailing business rule database;

[0038] The answer output module is used to generate first answer information that is a decision answer corresponding to the first inquiry information according to the business processing logic, and transmit the first answer information to the terminal.

[0039] In a third aspect, the present invention provides an online car-hailing question and answer service system, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the online car-hailing question and answer service method based on a large language model of the above-mentioned first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0040] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the online car-hailing question-and-answer service method based on a large language model according to the first aspect or any corresponding embodiment thereof.

[0041] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions, which are used to enable a computer to execute the online car-hailing question-and-answer service method based on a large language model according to the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0043] Figure 1 is a flowchart of a method for providing a ride-hailing question-and-answer service based on a large language model according to an embodiment of the present invention;

[0044] Figure 2 is a flow chart of another online car-hailing question-and-answer service method based on a large language model according to an embodiment of the present invention;

[0045] Figure 3 is a flow chart of another online car-hailing question-and-answer service method based on a large language model according to an embodiment of the present invention;

[0046] Figure 4 is a flow chart of another online car-hailing question-and-answer service method based on a large language model according to an embodiment of the present invention;

[0047] Figure 5 is a flow chart of another online car-hailing question-and-answer service method based on a large language model according to an embodiment of the present invention;

[0048] Figure 6 is a structural block diagram of a large language model-based online car-hailing question-and-answer service device according to an embodiment of the present invention;

[0049] Figure 7 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0051] In the related technology, the front end of the online car-hailing customer service system usually uses a search engine framework or a preset answer library to provide services (i.e., request-response mode). The preset answer library stores answers to common questions. For example, the preset answer library includes basic questions that drivers may encounter during operation or service. After the driver enters the question, the most relevant answer in the preset answer library is matched and searched through keywords to quickly respond to basic queries.

[0052] It is understandable that since drivers may make typos, use dialect descriptions, or make incomplete descriptions when describing problems, if we only match the answer by identifying a specific word in the question sentence, we will not be able to clearly understand the driver's thoughts and intentions, which can easily lead to semantic misunderstandings.

[0053] An online car-hailing question-and-answer service method based on a large language model provided in an embodiment of the present invention is applied to situations in which deep understanding or multiple rounds of question-and-answering are required in online car-hailing question-and-answering. Through the large language model engine, the terminal user's intention is deeply understood to obtain key information of the intention, and then the corresponding business logic rules are matched through the preset online car-hailing business rule database to generate an answer. Compared with the single question-and-answer of the request-response mode in the related technology, this mode of combining intention recognition with business search has a stronger understanding ability, and in the online car-hailing question-and-answer scenario, it can provide the terminal user with more professional and accurate answers.

[0054] According to an embodiment of the present invention, an embodiment of an online car-hailing question-and-answer service method based on a large language model is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that shown here.

[0055] In this embodiment, a method for online car-hailing question-answering service based on a large language model is provided, which is applied to an online car-hailing question-answering service system and can be used in the above-mentioned computer. Figure 1 is a flow chart of a method for providing online car-hailing question-and-answer service based on a large language model according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0056] Step S101, responding to the first inquiry information triggered by a terminal, where the terminal is one or more of a driver terminal, a manual customer service terminal, and a passenger terminal.

[0057] It should be noted that the terminal entity can be understood as the actual device or software application used, such as the online car-hailing APP on a smartphone. The driver terminal is the device used by the driver to view, receive and process information from different online car-hailing platforms. The manual customer service terminal refers to the device used by the customer service center of the online car-hailing platform to handle customer service matters on different platforms. The passenger terminal refers to the device used by the passenger to book a vehicle, view travel information and communicate with the driver or platform.

[0058] Step S102: perform intent recognition on the first query information based on the large language model engine to extract key intent information.

[0059] It should be noted that the Large Language Model (LLM) is an artificial intelligence model designed to understand and generate human language. It is trained on large amounts of text data and can perform a wide range of tasks, including text summarization, translation, sentiment analysis, and more.

[0060] LLMs are characterized by their large scale and billions of parameters, which help them learn complex patterns in language data. Models are based on deep learning architectures, such as transformers, which help them complete various NLP tasks. Intent recognition refers to analyzing and determining the user's main purpose or intention from the text entered by the user. The large language model engine has built-in intent analysis algorithms, which can obtain key intent information through lexical analysis, natural language understanding, syntactic analysis and other intent analysis algorithms. The key intent information is extracted from the query information using the built-in intent analysis algorithm of the large language model engine. It is the most critical part for subsequent understanding or query operations. For example, the terminal user inputs "I have a penalty and I am responsible for canceling it", so "I do not recognize the penalty" is the key intent information obtained through intent recognition. It can be understood that the intent recognition here is not just the same words or short sentences as part of the original question, but the re-understood semantics. This method can improve the accuracy and professionalism of the answer to the question and improve the experience of the terminal user.

[0061] Step S103, obtaining the business processing logic based on the key information of the intention and the preset online car-hailing business rule database.

[0062] It is understandable that the online car-hailing business rules database is pre-defined, corresponding to specific business scenarios, indicating the specific business processing logic of various business rules. When setting up the online car-hailing business rules database, it is necessary to pre-count the various business regulations in different online car-hailing platforms, hierarchically cluster the above-mentioned business regulations in turn, and set up the online car-hailing business rules database according to the hierarchical clustering results. Business processing logic refers to the implementation method of different rules set by the online car-hailing platform. For example, for penalty rules, there can be multiple corresponding business processing logics. Business processing logic a is when XX, the penalty is 5% of the order fee; business processing logic b is when XXX, the penalty is 10% of the order fee.

[0063] Step S104: generating first answer information that is a decision answer corresponding to the first inquiry information according to the business processing logic, and transmitting the first answer information to the terminal.

[0064] It should be noted that the first answer information refers to the specific answer content directly to the terminal user's inquiry, which can effectively indicate the decision response based on the user's true intention.

[0065] Specifically, the corresponding first answer information can be generated by filling in the business processing logic according to the preset reply template; the context understanding function of the large language model engine can be used again to generate the first answer information based on the business processing logic; and a decision tree can be generated according to the business processing logic to export the first answer information.

[0066] It can be understood that in the process of querying the online car-hailing business rules database to determine the business processing logic based on the identified key information of the intent, it does not depend on the terminal type but is based on the inquiry itself. Therefore, no matter which terminal entity the inquiry comes from, as long as the intent is clearly identified, the corresponding decision answer can be given. The embodiment of the present invention is applicable to cross-terminal situations.

[0067] This embodiment responds to the first inquiry information triggered by different terminals, uses the large language model engine to identify the intent of the first inquiry information, obtains the key information of the intent, and pre-analyzes the key intention information of the terminal user. Compared with the traditional method of matching answers based on keywords, this embodiment correctly identifies the user's intention when the terminal user's question is unclear or a non-standard dialect is used, and improves the accuracy of semantic understanding. In addition, based on the key information of the intent after intent identification, the preset online car-hailing business rule database is queried, and the answers obtained are more in line with the actual needs of the terminal users, and indirectly reduce misunderstandings caused by misunderstandings of manual customer service, so that the questions answered are more accurate without relying on manual labor.

[0068] In this embodiment, a method for providing a ride-hailing question-and-answer service based on a large language model is provided, which can be used in the above-mentioned computer. Figure 2 is a flow chart of a method for providing online car-hailing question-and-answer service based on a large language model according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0069] Step S201, responding to the first inquiry information triggered by the terminal, the terminal is one or more of the driver terminal, the manual customer service terminal and the passenger terminal. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.

[0070] Step S202: perform intent recognition on the first query information based on the large language model engine to extract key intent information.

[0071] Specifically, the above step S202 includes:

[0072] Step S2021: perform word segmentation processing on the first query information to obtain a word sequence.

[0073] Step S2022: Analyze the word sequence based on the large language model engine to determine the semantic relationship and syntactic structure corresponding to the first query information.

[0074] Step S2023: extracting different types of entity information according to the semantic relationship and syntactic structure corresponding to the first query information.

[0075] Step S2024, fill different types of entity information into the preset slot template to generate structured intent key information.

[0076] It should be noted that word sequence refers to the sequence of independent words or phrases that are broken down into text in the order of sentences. Word segmentation refers to splitting a complete text sentence into several independent words. It is a key prerequisite for word sequence analysis. Semantic relationship refers to the relationship between words in a sentence, such as subject-predicate, verb-object, etc. Syntactic structure refers to the grammatical structure within a sentence, including the syntactic function of words and the dependency relationship between different words. Entity information refers to entities with specific semantics, such as names of people, places, time, and events. The preset slot template refers to a pre-set template. The different slots of the preset slot template are used to fill in the key entity information extracted from the text to generate a structured data representation.

[0077] Exemplarily, the query input by the terminal user is: "There is an order that has been fined and I am responsible for canceling it. I have already set it not to connect to the station, but will you still send the station order?". The question is segmented to obtain the following word sequence: [there is, one order, penalty, I am responsible, cancel, already, set, not connect to the station, still, send, station, order]. The word sequence is analyzed by the large language model engine to determine the semantic relationship and syntactic structure, where the semantic relationship includes: subject-predicate relationship (for example, there is, one order), verb-object relationship (for example, penalty, I), and other modifying relationships (for example, already, set). The syntactic structure is a tree structure, including the parent-child node relationship between different verb-object words and modifying words. According to the above syntactic structure as a tree structure, the semantic relationships on different nodes are extracted, and the final entity information is determined as: "judgment / penalty not recognized", "it has been set not to connect to the station, but will still send the station order". Fill different types of entity information into the preset slot template to generate structured intention key information such as: {"intention":"Judgment / penalty not recognized","summary":"It has been set not to accept the station, but the station order will still be dispatched"}.

[0078] The large language model of this embodiment can identify the intention to extract structured information in user questions. Compared with the phenomenon that keyword matching only performs queries based on preset keywords, which is prone to omissions or incorrect results, the large language model of this embodiment fully understands the context and deconstructs the original question layer by layer, thereby generating more professional and accurate answers.

[0079] Step S203, obtaining the business processing logic based on the key information of the intention and the preset online car-hailing business rule database.

[0080] Specifically, the above step S203 includes:

[0081] Step S2031, determine whether the intent key information contains a query identifier, and the query identifier and the business processing logic have a one-to-one relationship.

[0082] Step S2032, when the intent key information includes a query identifier, the online car-hailing business rule database is queried based on the query identifier to obtain the corresponding business processing logic.

[0083] Step S2033, when the intent key information does not contain a query identifier, determine the inquiry type to which the intent key information belongs; generate a second inquiry information based on the inquiry type, transmit the second inquiry information to the terminal, respond to the second answer information triggered by the terminal, generate a query identifier based on the second answer information, query the online car-hailing business rule database based on the query identifier, and obtain the corresponding business processing logic; wherein the second answer information represents the answer made by the terminal user based on the second inquiry information.

[0084] It should be noted that the query identifier refers to an identifier used to uniquely identify a certain business processing logic, which can be an ID, code, etc. The inquiry type refers to the specific category to which the intended key information belongs, such as the penalty type, reward type, etc. The second answer information refers to the answer made by the user based on the second inquiry information, and the second answer information can further clarify the query identifier. Business processing logic refers to the processing rules or processes of the business, and different penalty logics correspond to different penalty types.

[0085] Exemplarily, the intention key information can be: {"intention":"Judgment / penalty not recognized","summary":"It has been set not to pick up the station, but still send the station order"}. Check whether the intention key information contains a query identifier. If there is a query identifier, the corresponding business processing logic can be directly obtained. For example, it also includes "intentionID":"12345", and the corresponding business processing logic is directly queried from the online car-hailing business rule database based on the query identifier. For example, the ID is 12345, and the corresponding business processing logic is a: when the order fee is less than 100 yuan, a fine of 5% of the order fee is imposed. When the intention key information does not contain a query identifier, it is necessary to further determine the query identifier. Since the information filled in the slot corresponding to intention is "Judgment / penalty not recognized", the corresponding inquiry type is a penalty inquiry, and the second inquiry information can be: "Please provide a penalty ID." The second inquiry information is transmitted to the user terminal, and the user's second answer information is received, the query identifier in the second answer information is extracted, and the business processing logic is queried from the business rule database based on the query identifier.

[0086] This embodiment adapts to different operations by determining whether the query identifier exists to ensure that the most accurate business logic is obtained. When the query identifier is missing, the second query information is used to interact with the user according to different query types to supplement the complete information. In either case, the required query identifier can be obtained to query the database. The business logic is stored in the database, and when the business changes, the new business processing logic can continue to be modified or expanded, thereby improving the scalability and flexibility of the business processing logic.

[0087] In some optional implementations, the inquiry types include billing inquiries, reward inquiries, penalty inquiries, order inquiries, passenger service inquiries, driver evaluation inquiries, and driving inquiries; in the above step S2033, determining the inquiry type to which the intention key information belongs includes:

[0088] A1. Establish a key information collection library, which contains different inquiry types and corresponding key information collections.

[0089] A2, matching any key information set in the key information set library in sequence according to the intention key information, and judging whether the intention key information exists in any key information set.

[0090] A3, when the intention key information exists in the target key information set, determine the query type corresponding to the target key information set as the query type to which the intention key information belongs.

[0091] It should be noted that the key information set library refers to a set of key information related to different query types. The key information set refers to a combination of information associated with a specific query type, which can clearly identify the query type. The target key information set refers to the set that is considered the target set after the user's intended key information is successfully matched with a key information set in the library. The matching algorithm refers to the algorithm used to compare and identify the user's intended key information with the set in the key information set library, such as string matching, pattern recognition, machine learning algorithms, etc.

[0092] For example, refer to Figure 3 In the key information collection library, set S1 contains the keywords "fee" and "charging standard". Set S2 contains the keywords "fine", "violation", "penalty", and "judgment". Set S3 contains the keywords "order acceptance" and "order acceptance rate". The intention key information contains "judgment / penalty disapproval", and "judgment / penalty" matches set S2, and the inquiry category corresponding to set S2 is "penalty inquiry", so the target key information set is determined to be "penalty inquiry".

[0093] or,

[0094] B1, build a query type classifier based on historical query information.

[0095] B2, input the intent key information into the query type classifier, and obtain the classification result of the query type classifier as the query type to which the intent key information belongs.

[0096] It should be noted that historical query information refers to the annotated data of previous user queries, which is used to train the query type classifier. The query type classifier refers to a classification model built based on machine learning technology, which can automatically identify the query type of key information of user intent.

[0097] Specifically, refer to Figure 4 ,To build an inquiry type classifier, machine learning algorithms such as decision trees, neural networks, etc. can be used to train the model based on historical inquiry information.,The key information of the intention contains "judgment of responsibility / disapproval of punishment", which is sent to the inquiry type classifier.,After analysis, the classifier determines that the inquiry type is "punishment inquiry".

[0098] This embodiment automatically determines the query type by establishing a key information collection library or building a query type classifier based on historical query information, thereby avoiding the manual classification process, speeding up the classification of intended key information, and improving the accuracy of classification. It also avoids manual classification errors and further ensures the accuracy of the answer results.

[0099] In some optional embodiments, the online car-hailing business rules database includes different types of business rules, including one or more of billing rules, reward rules, penalty rules, order acceptance rules, passenger service rules, driver evaluation rules, and driving rules.

[0100] It can be understood that the present embodiment can also configure different major category identifiers according to different types of business rules, for example, the billing rule is A001, the reward rule is A002, etc., and obtain the business processing logic in the online car-hailing business rule database according to different major category identifiers and query identifiers. For example, the first four digits of the query identifier are pre-identified. If the query identifier is "A001123456" and the first four digits are identified as A001, it is confirmed as the billing rule. In the database, multiple data under the billing rule are searched to obtain the business processing logic corresponding to "123456".

[0101] Step S204: Generate first answer information corresponding to the first inquiry information according to the business processing logic, and transmit the first answer information to the terminal. Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.

[0102] This embodiment responds to various inquiries through preset business rules, and can quickly match corresponding business rules based on the intention recognition results of the large language model and the specific needs of the user, so that the obtained decision answers are more suitable for the terminal user's inquiries.

[0103] In this embodiment, a method for providing a ride-hailing question-and-answer service based on a large language model is provided, which can be used in the above-mentioned computer. Figure 5 is a flow chart of a method for providing online car-hailing question-and-answer service based on a large language model according to an embodiment of the present invention. Figure 5 As shown, the process includes the following steps:

[0104] Step S501, respond to the first inquiry information triggered by the terminal, the terminal is one or more of the driver terminal, the manual customer service terminal and the passenger terminal. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.

[0105] The triggering method of the first inquiry information at least includes voice input or text input.

[0106] Step S502: Based on the data set corresponding to the historical standard query expressions and the data set corresponding to the non-standard query expressions, a query fine-tuning model is obtained by training using a preset machine learning algorithm.

[0107] It is understandable that, because different users use different languages, not all terminal users can perform standard inquiries in a standard language. Therefore, it is necessary to perform standardized fine-tuning on the first inquiry information.

[0108] It should be noted that the dataset corresponding to the historical standard query expression refers to the standardized and clear-intentioned query instances in past interactions, such as a passenger asking a clear question like “How do I check my itinerary?” In contrast, the dataset corresponding to the non-standard query expression refers to the non-standard query instances with typos and colloquial expressions, such as the colloquial expression “How do I withdraw money?”

[0109] Specifically, the collected query data is preprocessed, each query instance is labeled with intent labels, and then a basic machine learning model is selected as the starting point for training, such as the BERT model. The model is trained using the above two data sets to obtain a query fine-tuning model.

[0110] Step S503: input the first query information into the query fine-tuning model to obtain the first query information in a fine-tuned standard form.

[0111] For example, when a new non-standard query "How to withdraw money?" is received in response, it is input into the fine-tuned model. The fine-tuned model can fully understand this non-standard query expression and convert it into a standard query, such as "How to withdraw the order settlement amount?" This standard query will be further used for intent recognition.

[0112] Step S504: perform intent recognition on the first query information based on the large language model engine to extract key intent information. Figure 2 Step S102 of the illustrated embodiment will not be described in detail here.

[0113] Step S505: Obtain the business processing logic based on the key information of the intention and the preset online car-hailing business rule database. Figure 1 Step S103 of the illustrated embodiment will not be described in detail here.

[0114] Step S506: Generate first answer information corresponding to the first inquiry information according to the business processing logic, and transmit the first answer information to the terminal. Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.

[0115] This embodiment understands and converts the non-standard first query information into a standard form. Even if the user's expression is not standardized or contains colloquialisms or dialects, it can ensure that the subsequent large language model engine accurately understands the user's intention after fine-tuning, thereby obtaining a professional and more accurate answer, thereby improving the terminal user experience.

[0116] In this embodiment, a device for online car-hailing question-and-answer service based on a large language model is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and those that have been described will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0117] This embodiment provides a vehicle-hailing question-answering service device based on a large language model. Figure 6 As shown, including:

[0118] The inquiry acquisition module 601 is used to respond to the first inquiry information triggered by the terminal, where the terminal is one or more of a driver terminal, a manual customer service terminal and a passenger terminal;

[0119] An intention recognition module 602 is used to perform intention recognition on the first query information based on a large language model engine and extract key information of the intention;

[0120] The business logic analysis module 603 is used to obtain the business processing logic according to the key information of the intention and the preset online car-hailing business rule database;

[0121] The answer output module 604 is used to generate first answer information that is a decision answer corresponding to the first inquiry information according to the business processing logic, and transmit the first answer information to the terminal.

[0122] In some optional implementations, the business logic analysis module 603 includes:

[0123] A query analysis unit is used to determine whether the intent key information contains a query identifier, and the query identifier has a one-to-one relationship with the business processing logic;

[0124] A first business logic acquisition unit is used to query the online car-hailing business rule database based on the query identifier to obtain the corresponding business processing logic when the intent key information includes a query identifier;

[0125] The second business logic acquisition unit is used to determine the inquiry type to which the intention key information belongs when the intention key information does not contain a query identifier; generate second inquiry information based on the inquiry type, transmit the second inquiry information to the terminal, respond to the second answer information triggered by the terminal, generate a query identifier according to the second answer information, query the online car-hailing business rule database based on the query identifier, and obtain the corresponding business processing logic; wherein the second answer information represents the answer made by the terminal user based on the second inquiry information.

[0126] In some optional implementations, the intention recognition module 602 includes:

[0127] A sequence word segmentation unit, used to perform word segmentation processing on the first query information to obtain a word sequence;

[0128] A semantic analysis unit, configured to analyze the word sequence based on a large language model engine to determine a semantic relationship and a syntactic structure corresponding to the first query information;

[0129] An entity extraction unit, configured to extract different types of entity information according to the semantic relationship and syntactic structure corresponding to the first query information;

[0130] The information generation unit is used to fill different types of entity information into preset slot templates to generate structured intent key information.

[0131] In some optional implementations, the second business logic acquisition unit includes:

[0132] The first inquiry type analysis subunit is used to establish a key information set library, which contains different inquiry types and corresponding key information sets; sequentially match any key information set in the key information set library according to the intended key information, and determine whether the intended key information exists in any key information set; when the intended key information exists in the target key information set, determine the inquiry type corresponding to the target key information set as the inquiry type to which the intended key information belongs;

[0133] or,

[0134] The second inquiry type analysis subunit is used to construct an inquiry type classifier based on historical inquiry information; input the intent key information into the inquiry type classifier, and obtain the classification result of the inquiry type classifier as the inquiry type to which the intent key information belongs.

[0135] In some optional embodiments, the online car-hailing business rules database includes different types of business rules, including one or more of billing rules, reward rules, penalty rules, order acceptance rules, passenger service rules, driver evaluation rules, and driving rules.

[0136] In some optional embodiments, the above device further includes:

[0137] A fine-tuning model building module is used to obtain a query fine-tuning model by training using a preset machine learning algorithm based on a data set corresponding to historical standard query expressions and a data set corresponding to non-standard query expressions;

[0138] The query information output module is used to input the first query information into the query fine-tuning model to obtain the first query information in a standard form after fine-tuning.

[0139] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0140] The online car-hailing question-and-answer service device based on a large language model in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above-mentioned functions.

[0141] The embodiment of the present invention also provides a network car-hailing question-and-answer service system, which has the above Figure 6 For the online car-hailing question-answering service device based on a large language model shown in FIG. Figure 7 , Figure 7 is a schematic diagram of the structure of a control center provided by an optional embodiment of the present invention, such as Figure 7 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 10 is taken as an example.

[0142] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0143] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0144] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0145] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0146] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0147] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor control center, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0148] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0149] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the claims.

Claims

1. A method for online car-hailing question-answering service based on a large language model, characterized in that: Applied to an online car-hailing question-answering service system, the method includes: Responding to the first inquiry information triggered by a terminal, wherein the terminal is one or more of a driver terminal, a manual customer service terminal, and a passenger terminal; Based on the large language model engine, the first query information is subjected to intent recognition to extract key intent information; Obtaining business processing logic based on the key information of the intention and a preset online car-hailing business rule database; First answer information that is a decision answer corresponding to the first inquiry information is generated according to the business processing logic, and the first answer information is transmitted to the terminal.

2. The method according to claim 1, characterized in that The obtaining of business processing logic according to the intention key information and a preset business rule database includes: Determine whether the intention key information includes a query identifier, and the query identifier has a one-to-one correspondence with the business processing logic; When the query identifier is included in the intention key information, the online car-hailing business rule database is queried based on the query identifier to obtain the corresponding business processing logic; When the query identifier is not included in the intention key information, the inquiry type to which the intention key information belongs is determined; a second inquiry information is generated based on the inquiry type, the second inquiry information is transmitted to the terminal, and a second answer information triggered by the terminal is responded to, the query identifier is generated according to the second answer information, and the online car-hailing business rule database is queried based on the query identifier to obtain the corresponding business processing logic; wherein, the second answer information represents the answer made by the terminal user based on the second inquiry information.

3. The method according to claim 1 or 2, characterized in that: The performing intent recognition on the first query information based on the large language model engine to extract key intent information includes: Performing word segmentation processing on the first query information to obtain a word sequence; Analyzing the word sequence based on the large language model engine to determine the semantic relationship and syntactic structure corresponding to the first query information; extracting different types of entity information according to the semantic relationship and the syntactic structure corresponding to the first query information; Fill different types of entity information into preset slot templates to generate structured intent key information.

4. The method according to claim 2, characterized in that: The inquiry types include billing inquiries, reward inquiries, penalty inquiries, order acceptance inquiries, passenger service inquiries, driver evaluation inquiries, and driving inquiries. The determination of the inquiry type to which the key intention information belongs includes: Establishing a key information collection database, wherein the key information collection database includes different inquiry types and corresponding key information collections; Matching any of the key information sets in the key information set library in sequence according to the intention key information, and determining whether the intention key information exists in any of the key information sets; When the intention key information exists in the target key information set, determining the query type corresponding to the target key information set as the query type to which the intention key information belongs; or, Construct a query type classifier based on historical query information; The intention key information is input into the query type classifier, and a classification result of the query type classifier is obtained as the query type to which the intention key information belongs.

5. The method according to claim 1 or 2, characterized in that: The online car-hailing business rules database includes different types of business rules, including one or more of billing rules, reward rules, penalty rules, order acceptance rules, passenger service rules, driver evaluation rules, and driving rules.

6. The method according to claim 1 or 2, characterized in that: The triggering mode of the first inquiry information at least includes voice input or text input; the method further includes: Based on the data set corresponding to the historical standard query expression and the data set corresponding to the non-standard query expression, the query fine-tuning model is obtained by training using the preset machine learning algorithm; The first query information is input into the query fine-tuning model to obtain the first query information in a fine-tuned standard form.

7. A large language model-based online car-hailing question-answering service device, characterized in that: Applied to the online car-hailing question-answering service system, the device includes: An inquiry acquisition module, used to respond to the first inquiry information triggered by a terminal, wherein the terminal is one or more of a driver terminal, a manual customer service terminal, and a passenger terminal; An intention recognition module, used to perform intention recognition on the first query information based on a large language model engine and extract key information of the intention; A business logic analysis module, used to obtain business processing logic based on the key information of the intention and a preset online car-hailing business rule database; The answer output module is used to generate first answer information that is a decision answer corresponding to the first inquiry information according to the business processing logic, and transmit the first answer information to the terminal.

8. An online car-hailing question-and-answer service system, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the online car-hailing question-and-answer service method based on a large language model as described in any one of claims 1 to 6 by executing the computer instructions.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the online car-hailing question-and-answer service method based on a large language model as described in any one of claims 1-6.

10. A computer program product, characterized in that It includes computer instructions, which are used to enable a computer to execute the online car-hailing question-and-answer service method based on a large language model as described in any one of claims 1-6.

Citation Information

Cited By

  • Intelligent system based on civil aviation large language model

    CN118964529A

  • Information feedback processing method based on artificial intelligence, electronic equipment and storage medium

    CN120561645A

  • Service operation method and device based on large model, electronic equipment and storage medium

    CN121327195A