Positioning method and device for track problem
Through the large language model, the trajectory problem is planned and decomposed and the target tool is called for analysis, which solves the problems of wasted time and reduced accuracy in trajectory problem positioning, and achieves efficient and accurate trajectory problem positioning and trajectory mining flexibility.
Patent Information
- Application Number
- CN202311301488.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-09
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2043-10-09
AI Technical Summary
The prior art has problems of wasted time and reduced positioning accuracy in trajectory problem positioning, especially when multiple system modules or interactive components are involved.
By calling the large language model, the trajectory problem is planned and decomposed, one or more trajectory sub-problems and their respective task information are obtained, and the corresponding target tools are called based on these task information for analysis, so as to obtain the answers to the trajectory sub-problems and finally determine the location results of the trajectory problem.
This method can solve multiple interrelated problems at the same time, avoid waste of time resources, improve the efficiency and accuracy of trajectory problem positioning, and realize the flexibility of trajectory mining.
Smart Images

Figure CN119807285A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of high-precision map technology, and in particular to technical fields such as open platforms and trajectory mining. Background Art
[0002] In the related art, when locating a track problem, since the track problem may involve multiple system modules or interactive components, it is necessary to check each part step by step, resulting in a waste of time and reducing the accuracy of locating the track problem. In addition, since the track problem may be a complex of multiple sub-problems, when locating the track problem, it is necessary to solve multiple interrelated problems, which increases the difficulty of locating and repairing the track problem and reduces the efficiency of locating the track problem.
[0003] Therefore, how to avoid wasting time resources, improve the efficiency and accuracy of trajectory problem positioning, improve the flexibility of trajectory mining, and solve complex system problems more quickly and intelligently has become one of the important research directions. Summary of the invention
[0004] The present disclosure provides a positioning method for trajectory problems.
[0005] According to one aspect of the present disclosure, a positioning method for a trajectory problem is provided, which is performed by an agent device, and the method includes:
[0006] Obtain a trajectory problem and call the large language model to plan and decompose the trajectory problem to obtain one or more trajectory sub-problems and their respective task information;
[0007] For each trajectory sub-problem, a target tool for solving the trajectory sub-problem is called based on the task information, and the trajectory sub-problem is analyzed based on the target tool to obtain a response result for the trajectory sub-problem;
[0008] According to the answer result of each trajectory sub-question, the positioning result for the trajectory question is determined.
[0009] In the disclosed embodiment, a large language model is called to plan and decompose the trajectory problem to obtain one or more trajectory sub-problems and the task information of each trajectory sub-problem, so as to solve multiple interrelated problems at the same time, thereby avoiding the waste of time resources. For each trajectory sub-problem, a target tool for solving the trajectory sub-problem is called based on the task information to realize the integration of technologies such as artificial intelligence, machine learning and data analysis. The trajectory sub-problem is analyzed based on tool resources in different fields to obtain the answer result of the trajectory sub-problem, which can avoid the errors caused by manual operation and improve the efficiency and accuracy of trajectory problem positioning.
[0010] According to another aspect of the present disclosure, a positioning method for a trajectory problem is provided, which is performed by a target tool and includes:
[0011] receiving a request instruction sent by the proxy device;
[0012] Parsing the request instruction, in response to the request instruction being a first request instruction including a trajectory sub-question, analyzing the trajectory sub-question, obtaining a reply result of the trajectory sub-question, and sending the reply result of the trajectory sub-question to the proxy device;
[0013] In response to the request instruction being a preset second request instruction, a first trajectory query vector in the trajectory query database is sent to the proxy device.
[0014] In the disclosed embodiments, when the problem involves multiple fields, the trajectory problem can be decomposed and analyzed through different tools, so that the knowledge and resources of different fields can be called upon to solve the trajectory problem, and the collaborative cooperation of multiple fields can be achieved. Complex trajectory problems can be solved more quickly and intelligently, and the flexibility of trajectory mining can be improved.
[0015] According to another aspect of the present disclosure, a positioning device for trajectory problem is provided, comprising:
[0016] An acquisition module is used to acquire a trajectory problem and call a large language model to plan and decompose the trajectory problem to obtain one or more trajectory sub-problems and task information of each trajectory sub-problem;
[0017] An analysis module is used for calling a target tool for solving each trajectory sub-problem based on task information, and analyzing the trajectory sub-problem based on the target tool to obtain a response result for the trajectory sub-problem;
[0018] The determination module is used to determine the positioning result for the trajectory question according to the answer result of each trajectory sub-question.
[0019] According to another aspect of the present disclosure, a positioning device for trajectory problem is provided, comprising:
[0020] A receiving module, used for receiving a request instruction sent by the proxy device;
[0021] A first processing module is used to parse the request instruction, and in response to the request instruction being a first request instruction including a trajectory sub-question, analyze the trajectory sub-question, obtain a reply result of the trajectory sub-question, and send the reply result of the trajectory sub-question to the proxy device;
[0022] The second processing module is configured to send a first trajectory query vector in the trajectory query database to the proxy device in response to the request instruction being a preset second request instruction.
[0023] According to another aspect of the present disclosure, there is provided an electronic device, including at least one processor, and
[0024] a memory communicatively connected to at least one processor; wherein,
[0025] The memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor so that the at least one processor can execute the positioning method for the trajectory problem of the first aspect embodiment of the present disclosure, or execute the positioning method for the trajectory problem of the second aspect embodiment of the present disclosure.
[0026] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the positioning method for the trajectory problem according to the embodiment of the first aspect of the present disclosure, or to execute the positioning method for the trajectory problem according to the embodiment of the second aspect of the present disclosure.
[0027] According to another aspect of the present disclosure, a computer program product is provided, including a computer program. When the computer program is executed by a processor, it implements the steps of the positioning method for the trajectory problem of the first aspect embodiment of the present disclosure, or implements the steps of the positioning method for the trajectory problem of the second aspect embodiment of the present disclosure.
[0028] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0030] Figure 1 is a structural diagram of a trajectory mining system according to an embodiment of the present disclosure;
[0031] Figure 2 is a flow chart of a positioning method for trajectory problems according to an embodiment of the present disclosure;
[0032] Figure 3 is a flow chart of a positioning method for trajectory problems according to an embodiment of the present disclosure;
[0033] Figure 4 is a flow chart of a positioning method for trajectory problems according to an embodiment of the present disclosure;
[0034] Figure 5 is a flow chart of a positioning method for trajectory problems according to an embodiment of the present disclosure;
[0035] Figure 6 is a schematic diagram of a positioning method for a trajectory problem according to an embodiment of the present disclosure;
[0036] Figure 7 is a flow chart of a positioning method for trajectory problems according to an embodiment of the present disclosure;
[0037] Figure 8 is a structural diagram of a positioning device for trajectory problems according to an embodiment of the present disclosure;
[0038] Fig. 9 is a structural diagram of a positioning device for trajectory problems according to an embodiment of the present disclosure;
[0039] Fig.10 The block diagram is a block diagram of an electronic device for implementing the method of the embodiment of the present disclosure. DETAILED DESCRIPTION
[0040] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0041] The disclosed embodiments relate to the technical field of high-precision maps, and in particular to technical fields such as open platforms and trajectory mining.
[0042] The principle of high-precision map technology is mainly to use various sensor technologies, such as satellite navigation, lidar, cameras, millimeter-wave radar, inertial measurement units, etc., to collect and process roads, buildings, transportation facilities, etc. with high precision and multi-angle, to form digital map data, and integrate map data with real-time positioning data to provide accurate and real-time map information.
[0043] Open Platform In the software industry and the Internet, an open platform refers to a software system that makes its application programming interface (API) or function public so that external programs can increase the functionality of the software system or use the resources of the software system without changing the source code of the software system. In the Internet age, the website's services are packaged into a series of computer-readable data interfaces and opened to third-party developers. This behavior is called Open API, and the platform that provides open API is itself called an open platform.
[0044] Trajectory mining system, a sequence of continuous coordinate points of a vehicle is called a trajectory. When trajectory data is available, the trajectory mining system can use this data information to help analyze and mine trajectory information in geographic location data, thereby providing useful insights and decision support for multiple fields. Including:
[0045] Traffic management and planning: The trajectory mining system can analyze the trajectory data of vehicles, pedestrians, public transportation, etc., to help traffic management departments better understand traffic flow, congestion and travel patterns. This helps to optimize road planning, traffic signal control, and improve traffic efficiency and safety.
[0046] Navigation and route planning, based on the analysis of trajectory data, the trajectory mining system can provide more intelligent navigation and route planning services. It can consider factors such as real-time traffic conditions, travel time, and optimal routes to provide users with accurate navigation suggestions.
[0047] Urban planning and intelligence, the trajectory mining system can help urban planners understand residents' travel habits, activity range and needs, so as to optimize urban planning and facility layout. This plays an important role in realizing the intelligent development of cities.
[0048] The positioning method and device for the trajectory problem disclosed in the present invention are described below with reference to the accompanying drawings.
[0049] First, the trajectory mining system in the embodiment of the present disclosure is introduced. Figure 1 is a structural diagram of a trajectory mining system according to an embodiment of the present disclosure, such as Figure 1 As shown, the trajectory mining system 100 includes an agent device 110, a tool system 120, a task planning system 130 and an execution system 140, wherein the three subsystems are controlled and information exchanged through the agent device.
[0050] The mission planning system 130 may include a Decomposition of Subgoals Expert and a Question and answer Expert.
[0051] The tool system 120 may include multiple tools for trajectory analysis. Optionally, the tool may be a pre-deployed open platform, such as a trajectory query system, a trajectory content extraction system, a trajectory analysis system, etc., or a pre-deployed database, such as a trajectory query database.
[0052] Figure 2 is a flow chart of a positioning method for trajectory problems according to an embodiment of the present disclosure. Figure 2 As shown, the method comprises the following steps:
[0053] S201, obtaining a trajectory problem, and calling a large language model to plan and decompose the trajectory problem to obtain one or more trajectory sub-problems and task information of each trajectory sub-problem.
[0054] In the embodiment of the present disclosure, the execution subject may be a proxy device. The proxy device receives a request message sent by a terminal device, such as an http request, and obtains the trajectory problem to be located after parsing the request message.
[0055] like Figure 1 As shown, the task planning system 130 includes a large language model, and the agent device calls the target decomposition expert to perform task analysis and planning on the trajectory problem through the large language model (LLM) to obtain one or more trajectory sub-problems and the task information of each trajectory sub-problem.
[0056] In the embodiment of the present disclosure, the task information may include a tool identifier and attribute parameters of a target tool that needs to be called.
[0057] For example, a trajectory problem may be "there is an anomaly in the trajectory on road ID123, the road has been blocked, and no car trajectory should pass through it." The trajectory sub-problems may include three, namely "Goal 1: query the trajectory of road ID123", "Goal 2: parse the queried trajectory and extract the vehicle movement probability", and "Goal 3: based on the extracted vehicle movement probability, perform statistical analysis and determine the cause of the problem."
[0058] In some embodiments, the task information also includes a task identifier, which may indicate the order in which the trajectory sub-problems are analyzed based on the target tool, i.e., the analysis order of the trajectory sub-problems. For example, in the embodiment of the present disclosure, the order of the trajectory sub-problems is "Goal 1: Query the trajectory of road ID 123", "Goal 2: Analyze the queried trajectory and extract the vehicle travel probability", and "Goal 3: Based on the extracted vehicle travel probability, statistically analyze and determine the cause of the problem".
[0059] S202, for each trajectory sub-problem, calling a target tool for solving the trajectory sub-problem based on the task information, and analyzing the trajectory sub-problem based on the target tool to obtain a response result for the trajectory sub-problem.
[0060] like Figure 1As shown, the agent device 110 can call the target tool for solving the trajectory sub-problem based on the task information. If the target tool is a trajectory query database, the attribute parameters of the trajectory query database are obtained based on the task information, and the attribute parameters and the trajectory sub-problem are combined. In some implementations, the agent device matches the combined trajectory sub-problem with multiple data in the trajectory query database, and generates a reply result based on one or more data with a higher matching degree. In some implementations, the agent device calls a question-and-answer expert, and the question-and-answer expert analyzes the trajectory sub-problem based on the trajectory query database to obtain a reply result for the trajectory sub-problem.
[0061] If the target tool is a tool in the trajectory query system (Traj Fetch System), the trajectory content extraction system (TrajSchema System), and the trajectory analysis system (Traj Stastic System), the target tool is called based on the task information to analyze the trajectory sub-problem and obtain the answer result of the trajectory sub-problem.
[0062] S203: Determine a positioning result for the trajectory question according to the answer result of each trajectory sub-question.
[0063] In some implementations, an answer to each trajectory sub-question is obtained based on the response result, and the answer to each trajectory sub-question is combined to obtain a positioning result for the trajectory question.
[0064] In some implementations, the answer to each trajectory sub-question is obtained according to the reply result, and the answers to the trajectory sub-questions are spliced according to the analysis order of each trajectory sub-question to obtain a positioning result for the trajectory question.
[0065] Optionally, after obtaining the positioning result for the trajectory problem, the positioning result may be sent to the terminal device.
[0066] In the disclosed embodiment, a large language model is called to plan and decompose the trajectory problem to obtain one or more trajectory sub-problems and the task information of each trajectory sub-problem, so as to solve multiple interrelated problems at the same time, thereby avoiding the waste of time resources. For each trajectory sub-problem, a target tool for solving the trajectory sub-problem is called based on the task information to realize the integration of technologies such as artificial intelligence, machine learning and data analysis. The trajectory sub-problem is analyzed based on tool resources in different fields to obtain the answer result of the trajectory sub-problem, which can avoid the errors caused by manual operation and improve the efficiency and accuracy of trajectory problem positioning.
[0067] Figure 3 is a flow chart of a positioning method for trajectory problems according to an embodiment of the present disclosure. Figure 3 As shown, the method comprises the following steps:
[0068] S301, obtaining a trajectory problem, and calling a large language model to plan and decompose the trajectory problem to obtain one or more trajectory sub-problems and task information of each trajectory sub-problem.
[0069] For the introduction of step S301, please refer to the relevant content in the above embodiment, which will not be repeated here.
[0070] S302, for each trajectory sub-problem, determine the tool identification of the target tool based on the task information, and call the target tool for solving the trajectory sub-problem based on the tool identification of the target tool.
[0071] In some implementations, the task information of the trajectory sub-problem includes a tool identifier of a target tool used to solve the trajectory sub-problem.
[0072] In the implementation of the present disclosure, the tool identifier of the target tool can be a number, or a word or letter, or any combination of numbers, words or letters, and the embodiment of the present disclosure does not limit this.
[0073] For example, in the embodiment of the present disclosure, the target tool corresponding to the trajectory sub-problem "Goal 1: Query the trajectory of road ID 123" is the trajectory query system, the target tool corresponding to the trajectory sub-problem "Goal 2: Analyze the queried trajectory and extract the vehicle movement probability" is the trajectory content extraction system, and the target tool corresponding to the trajectory sub-problem "Goal 3: Based on the extracted vehicle movement probability, perform statistical analysis and determine the cause of the problem" is the trajectory analysis system.
[0074] S303, analyzing the trajectory sub-problem based on the target tool to obtain a response result of the trajectory sub-problem.
[0075] For the introduction of step S303, please refer to the relevant content in the above embodiment, which will not be repeated here.
[0076] S304, judging whether each trajectory sub-problem has an answer according to the reply result, and obtaining the trajectory sub-problems that do not have an answer from the trajectory sub-problems.
[0077] In some implementations, the answer result of the trajectory sub-question is analyzed, and if a first identifier and text indicating that the trajectory sub-question has been solved are obtained, it is determined that the trajectory sub-question has an answer.
[0078] In some implementations, the answer result of the trajectory sub-problem is analyzed, and if a second identifier indicating that the trajectory sub-problem is not solved is obtained, it is determined that the trajectory sub-problem has no answer.
[0079] In some implementations, if the proxy device does not monitor the target tool's response to the trajectory sub-question within a preset time, it determines that the trajectory sub-question has no answer.
[0080] S305 , continue to call the large language model to plan and decompose the trajectory sub-problems that have no answers, so as to update the trajectory sub-problems and task information.
[0081] In some embodiments, a first trajectory subproblem that does not have an answer among the trajectory subproblems is determined, and an answer to a second trajectory subproblem other than the first trajectory subproblem is obtained, a large language model is called to perform planning decomposition on the answers to the first trajectory subproblem and the second trajectory subproblem, a third trajectory subproblem and task information of the third trajectory subproblem are obtained, the third trajectory subproblem and task information of the third trajectory subproblem are updated to new trajectory subproblems and task information, and subsequent steps for solving the third trajectory subproblem are performed until each trajectory subproblem has a corresponding answer.
[0082] In some embodiments, a first trajectory subproblem that does not have an answer among the trajectory subproblems is determined; a large language model is called to perform planning decomposition on the first trajectory subproblem to obtain a fourth trajectory subproblem and task information of the fourth trajectory subproblem; the first trajectory subproblem and the task information of the first trajectory subproblem are replaced with the fourth trajectory subproblem and the task information of the fourth trajectory subproblem to update the trajectory subproblems and the task information, and subsequent steps for solving the fourth trajectory subproblem are performed until each trajectory subproblem has a corresponding answer.
[0083] That is to say, if there is a trajectory sub-problem that does not have an answer, in order to locate the trajectory problem, the first trajectory sub-problem can be re-input into the large language model for planning decomposition to update the trajectory sub-problem. On the other hand, the answer to the solved trajectory sub-problem may also affect the planning decomposition process of the large language model. In order to improve the accuracy, the answers to the first trajectory sub-problem and the second trajectory sub-problem can also be input into the large language model for planning decomposition.
[0084] like Figure 1 As shown, in some embodiments, the agent device 110 calls the execution system 140, and the execution system 140 cyclically calls the task planning system 130 and the tool system 120 in the form of a call chain to process the trajectory sub-problems until each trajectory sub-problem has a corresponding answer, wherein the target decomposition expert is used to call the large language model to plan and decompose the trajectory sub-problems, and the tool system is used to call the target tool to analyze the trajectory sub-problems.
[0085] In other implementations, the agent device 110 may also directly call the task planning system 130 and the tool system 120 in a circular manner in the form of a call chain to process the trajectory sub-problems until each trajectory sub-problem has a corresponding answer. The present disclosure does not limit this.
[0086] S306: Determine a positioning result for the trajectory question according to the answer result of each trajectory sub-question.
[0087] For the introduction of step S306, please refer to the relevant content in the above embodiment, which will not be repeated here.
[0088] In the disclosed embodiment, whether each trajectory sub-problem has an answer is determined based on the reply result, and the trajectory sub-problems that do not have an answer are obtained from the trajectory sub-problems. The large language model is continued to be called to plan and decompose the trajectory sub-problems that do not have an answer to update the trajectory sub-problems and task information. By cyclically solving the trajectory sub-problems, complex trajectory problems can be solved more quickly and intelligently, and the flexibility of trajectory mining can be improved.
[0089] Figure 4 is a flow chart of a positioning method for trajectory problems according to an embodiment of the present disclosure. Figure 4 As shown, the method comprises the following steps:
[0090] S401, obtaining a trajectory problem, and calling a large language model to plan and decompose the trajectory problem to obtain one or more trajectory sub-problems and task information of each trajectory sub-problem.
[0091] S402, for each trajectory sub-problem, calling a target tool for solving the trajectory sub-problem based on the task information.
[0092] For the introduction of step S401 to step S402, reference may be made to the relevant contents in the above embodiment, which will not be repeated here.
[0093] S403: If the target tool is a tool in the pre-deployed trajectory query system, trajectory content extraction system, and trajectory analysis system, obtain attribute parameters of the target tool based on the task information, and combine the attribute parameters with the trajectory sub-problem.
[0094] Optionally, if the target tool is a trajectory query system, the attribute parameters of the target tool include at least the specified time information, the specified location range and the terminal device information. If the target tool is a trajectory content extraction system or a trajectory analysis system, the attribute parameters of the target tool include at least the vehicle information, the vehicle coordinate information and the timestamp information.
[0095] S404, generating a first request instruction according to the combined trajectory sub-problems, and sending the first request instruction to the target tool.
[0096] The target tool receives and parses the first request instruction to obtain the combined trajectory sub-problem, and the response result is obtained by the target tool analyzing the combined trajectory sub-problem.
[0097] In some implementations, if the target tool is a trajectory query system, the specified time range, province, terminal device information, etc. are combined with the trajectory sub-question and input into the target tool, and then the target tool queries the specified trajectory information to obtain the answer result of the trajectory sub-question. In other words, the combined trajectory sub-question is sent to the target tool, and the answer result for the trajectory sub-question sent by the target tool is received, and the answer result is obtained by the target tool analyzing the combined trajectory sub-question.
[0098] In some embodiments, if the target tool is a trajectory content extraction system, the vehicle ID, coordinate information (latitude and longitude), timestamp, vehicle type and trajectory sub-problem are combined and input into the target tool, and then the target tool extracts key information of the trajectory, such as trajectory quality information, vehicle information corresponding to the trajectory (the probability of whether it is a car), and obtains the answer result of the trajectory sub-problem.
[0099] In some embodiments, if the target tool is a trajectory analysis system, the vehicle ID, coordinate information (latitude and longitude), timestamp, vehicle type and trajectory sub-problem are combined and input into the target tool, and then the target tool counts the basic trajectory information and makes judgments based on the statistical information to obtain the answer to the trajectory sub-problem.
[0100] S405, receiving a response result to the trajectory sub-question sent by the target tool.
[0101] The target tool sends a reply result for the trajectory sub-problem to the proxy device, and the proxy device receives the reply result for the trajectory sub-problem sent by the target tool.
[0102] S406, determining a positioning result for the trajectory question according to the answer result of each trajectory sub-question.
[0103] For the introduction of step S406, please refer to the relevant content in the above embodiment, which will not be repeated here.
[0104] In the disclosed embodiment, attribute parameters of the target tool are obtained based on the task information, the attribute parameters and the trajectory sub-problem are combined, and a first request instruction is generated and sent to the target tool, which analyzes the combined trajectory sub-problem. When the problem involves multiple fields, the trajectory problem can be decomposed and analyzed by different tools, which can call on knowledge and resources from different fields to solve the trajectory problem, realize collaborative cooperation in multiple fields, avoid waste of time resources, and improve the efficiency and accuracy of trajectory problem locating.
[0105] Figure 5 is a flow chart of a positioning method for trajectory problems according to an embodiment of the present disclosure. Figure 5 As shown, the method comprises the following steps:
[0106] S501, obtaining a trajectory problem, and calling a large language model to plan and decompose the trajectory problem to obtain one or more trajectory sub-problems and task information of each trajectory sub-problem.
[0107] S502: For each trajectory sub-problem, call a target tool for solving the trajectory sub-problem based on the task information.
[0108] For the introduction of step S501 to step S502, reference may be made to the relevant contents in the above embodiment, which will not be repeated here.
[0109] S503: If the target tool is a pre-deployed trajectory query database, a preset second request instruction is sent to the trajectory query database, and a first trajectory query vector sent by the trajectory query database is received.
[0110] S504, acquiring attribute parameters of the target tool based on the task information, and combining the attribute parameters with the trajectory sub-problem.
[0111] In some implementations, if the target tool is a pre-deployed trajectory query database, the attribute parameters of the target tool obtained based on the task information may be terminal device information, time information, etc.
[0112] S505 , embedding and mapping the combined trajectory sub-problems to obtain a second trajectory query vector.
[0113] In some implementations, embedding mapping is performed on the combined trajectory sub-questions to obtain a second trajectory query vector, so as to subsequently determine the answer result of the trajectory sub-question from the trajectory query database according to the second trajectory query vector.
[0114] S506, matching the second trajectory query vector with the first trajectory query vector, obtaining a matching degree, and determining a response result of the trajectory sub-question according to the matching degree.
[0115] In the disclosed embodiment, the second trajectory query vector is matched with the first trajectory query vector to obtain a matching degree. Optionally, if there is no third trajectory query vector in the first trajectory query vector whose matching degree with the second trajectory query vector is greater than a preset matching threshold, the answer result of the trajectory sub-question is determined to be an answer without the trajectory sub-question. If there is a third trajectory query vector in the first trajectory query vector whose matching degree with the second trajectory query vector is greater than a preset matching threshold, the third trajectory query vector is decoded, and the answer to the trajectory sub-question obtained is used as the answer result of the trajectory sub-question.
[0116] S507, determining a positioning result for the trajectory question according to the answer result of each trajectory sub-question.
[0117] For the introduction of step S507, please refer to the relevant content in the above embodiment, which will not be repeated here.
[0118] In an embodiment of the present disclosure, if the target tool is a pre-deployed trajectory query database, the attribute parameters of the target tool are obtained based on the task information, the attribute parameters and the trajectory sub-problem are combined, the combined trajectory sub-problem is embedded and mapped, a second trajectory query vector is obtained, the second trajectory query vector is matched with the first trajectory query vector, the matching degree is obtained, and the answer result of the trajectory sub-problem is determined according to the matching degree. The present disclosure gradually checks and analyzes the trajectory sub-problems according to the trajectory query database, which can avoid missing the answer details, improve the efficiency and accuracy of trajectory problem positioning, and improve the flexibility of trajectory mining.
[0119] It should be noted that in the embodiments of the present disclosure, among the multiple trajectory sub-problems after decomposing the trajectory problem, there may be trajectory sub-problems that need to call the trajectory query system, the trajectory content extraction system or the trajectory analysis system, and there may also be trajectory sub-problems that need to call the trajectory query database. The method of obtaining the answer result can be referred to the introduction in the above embodiment, and the embodiments of the present disclosure do not limit this.
[0120] Figure 6 is a schematic diagram of a positioning method for a trajectory problem according to an embodiment of the present disclosure, such as Figure 6 As shown, optionally, in an embodiment of the present disclosure, the process of establishing a trajectory query database may include: obtaining multiple historical trajectory question-answer pairs, embedding and mapping the multiple historical trajectory question-answer pairs, and obtaining multiple first trajectory query vectors. Optionally, the historical trajectory question-answer pairs include historical trajectory questions and historical answers corresponding to the historical trajectory questions. In some embodiments, since the historical trajectory question-answer pairs may be large files, they need to be divided into multiple smaller text blocks. The files can be cut into fixed sizes, that is, multiple historical trajectory question-answer pairs are parsed and segmented, multiple trajectory information text blocks are obtained, multiple trajectory information text blocks are embedded and mapped, and multiple first trajectory query vectors are obtained. Then, a trajectory query database is generated based on the multiple first trajectory query vectors.
[0121] In some embodiments, if the target tool is a pre-deployed trajectory query database, the attribute parameters of the trajectory query database and the trajectory sub-problem are combined, the combined trajectory sub-problem is embedded and mapped, a second trajectory query vector is obtained, the second trajectory query vector is input into the trajectory query database, the trajectory query database matches the second trajectory query vector with the first trajectory query vector, obtains the matching degree, obtains a third trajectory query vector whose matching degree is greater than a preset matching threshold, and inputs the third trajectory query vector into the large language model for natural language processing to obtain a response result of the trajectory sub-problem.
[0122] The present disclosure constructs a trajectory query database based on historical trajectory question-answer pairs to facilitate subsequent step-by-step investigation and analysis of trajectory sub-questions, which can avoid missing answer details, improve the efficiency and accuracy of trajectory problem locating, and improve the flexibility of trajectory mining.
[0123] Figure 7 is a flow chart of a positioning method for trajectory problems according to an embodiment of the present disclosure. Figure 7 As shown, the method is executed by the target tool and includes the following steps:
[0124] S701, receiving a request instruction sent by a proxy device.
[0125] In the disclosed embodiment, the target tool may be a pre-deployed open platform, such as a tool in a trajectory query system, a trajectory content extraction system, and a trajectory analysis system, or may be a trajectory query database.
[0126] Optionally, the request instruction sent by the proxy device is a first request instruction including a trajectory sub-problem, or a preset second request instruction, wherein the trajectory sub-problem is a trajectory sub-problem after combining attribute parameters. For the process of the proxy device obtaining the request instruction, please refer to the introduction in the above embodiment and will not be repeated here.
[0127] S702, parse the request instruction, and in response to the request instruction being a first request instruction including a trajectory sub-problem, analyze the trajectory sub-problem, obtain a reply result of the trajectory sub-problem, and send the reply result of the trajectory sub-problem to the proxy device.
[0128] In the embodiment of the present disclosure, when the target tool is a tool in a trajectory query system, a trajectory content extraction system, and a trajectory analysis system, it receives a first request instruction, parses the first request instruction, obtains the trajectory sub-problem, and analyzes the trajectory sub-problem based on its own functions and resources. Optionally, if the target tool can solve the trajectory sub-problem, that is, obtains the answer to the trajectory sub-problem, a reply result is generated according to the first identifier and the answer indicating that the trajectory sub-problem has been solved; if the target tool does not solve the trajectory sub-problem, that is, does not obtain the answer to the trajectory sub-problem, a reply result is generated according to the second identifier indicating that the trajectory sub-problem has not been solved.
[0129] In the embodiment of the present disclosure, the answer may be in text format. In other implementations, the answer text may also be in other formats, which is not limited by the embodiment of the present disclosure.
[0130] S703: In response to the request instruction being a preset second request instruction, sending a first trajectory query vector in a trajectory query database to the proxy device.
[0131] In the embodiment of the present disclosure, when the target tool is a trajectory query database, upon receiving the second request instruction, a first trajectory query vector in the trajectory query database is sent to the proxy device.
[0132] In the disclosed embodiments, when the problem involves multiple fields, the trajectory problem can be decomposed and analyzed through different tools, so that the knowledge and resources of different fields can be called upon to solve the trajectory problem, and the collaborative cooperation of multiple fields can be achieved. Complex trajectory problems can be solved more quickly and intelligently, and the flexibility of trajectory mining can be improved.
[0133] Figure 8 is a structural diagram of a positioning device for trajectory problems according to an embodiment of the present disclosure, such as Figure 8 As shown, the positioning device 800 for the trajectory problem includes:
[0134] An acquisition module 810 is used to acquire a trajectory problem and call a large language model to perform planning decomposition on the trajectory problem to acquire one or more trajectory sub-problems and task information of each trajectory sub-problem;
[0135] An analysis module 820 is used to call a target tool for solving the trajectory sub-problem based on the task information for each trajectory sub-problem, and analyze the trajectory sub-problem based on the target tool to obtain a response result for the trajectory sub-problem;
[0136] The determination module 830 is used to determine the positioning result for the trajectory question according to the answer result of each trajectory sub-question.
[0137] In some embodiments, the analysis module 820 is further configured to:
[0138] According to the answer result, determine whether each trajectory sub-question has an answer, and obtain the trajectory sub-questions that do not have an answer from the trajectory sub-questions;
[0139] Continue to call the large language model to plan and decompose the trajectory sub-problems that have no answers to update the trajectory sub-problems and task information.
[0140] In some embodiments, the analysis module 820 is further configured to:
[0141] Determine a first trajectory subproblem that has no answer among the trajectory subproblems, and obtain answers to second trajectory subproblems other than the first trajectory subproblem;
[0142] The large language model is called to plan and decompose the answers to the first track sub-problem and the second track sub-problem, and the task information of the third track sub-problem and the third track problem is obtained;
[0143] The third track sub-problem and the task information of the third track sub-problem are updated to the new track sub-problem and task information.
[0144] In some embodiments, the analysis module 820 is further configured to:
[0145] Based on the task information, a tool identification of the target tool is determined, and based on the tool identification of the target tool, the target tool for solving the trajectory sub-problem is called.
[0146] In some embodiments, the analysis module 820 is further configured to:
[0147] If the target tool is a tool in the pre-deployed trajectory query system, trajectory content extraction system, and trajectory analysis system, the attribute parameters of the target tool are obtained based on the task information, and the attribute parameters and the trajectory sub-problem are combined;
[0148] generating a first request instruction according to the combined trajectory sub-problem, and sending the first request instruction to the target tool;
[0149] Receive the response result to the trajectory sub-problem sent by the target tool, where the response result is obtained by the target tool analyzing the combined trajectory sub-problem.
[0150] In some embodiments, the analysis module 820 is further configured to:
[0151] If the target tool is a trajectory query system, determining the attribute parameters of the target tool includes at least the specified time information, the specified location range and the information of the terminal device; or
[0152] If the target tool is a trajectory content extraction system or a trajectory analysis system, it is determined that the attribute parameters of the target tool at least include vehicle information, vehicle coordinate information, and timestamp information.
[0153] In some embodiments, the analysis module 820 is further configured to:
[0154] If the target tool is a pre-deployed trajectory query database, sending a preset second request instruction to the trajectory query database, and receiving a first trajectory query vector sent by the trajectory query database;
[0155] Obtain the attribute parameters of the target tool based on the task information, and combine the attribute parameters with the trajectory sub-problem;
[0156] Embed and map the combined trajectory sub-problems to obtain a second trajectory query vector;
[0157] The second trajectory query vector is matched with the first trajectory query vector to obtain a matching degree, and a response result of the trajectory sub-question is determined according to the matching degree.
[0158] In some embodiments, the analysis module 820 is further configured to:
[0159] If there is no third trajectory query vector with a matching degree greater than a preset matching threshold in the first trajectory query vector, determining that the answer result of the trajectory sub-question is that there is no answer to the trajectory sub-question; or
[0160] If there is a third trajectory query vector in the first trajectory query vector whose matching degree is greater than a preset matching threshold, the third trajectory query vector is decoded to obtain an answer to the trajectory sub-question.
[0161] In some embodiments, the positioning device 800 for the trajectory problem further includes a database establishment module 840 for:
[0162] Obtain multiple historical trajectory question-answer pairs, where the historical trajectory question-answer pairs include historical trajectory questions and historical answers corresponding to the historical trajectory questions;
[0163] Embedding and mapping are performed on multiple historical trajectory question-answer pairs to obtain multiple first trajectory query vectors, and a trajectory query database is generated according to the multiple first trajectory query vectors.
[0164] In some implementations, the database building module 840 is further configured to:
[0165] Parse and segment multiple historical trajectory question-answer pairs to obtain multiple trajectory information text blocks;
[0166] Embedding and mapping are performed on the multiple trajectory information text blocks to obtain multiple first trajectory query vectors.
[0167] In some implementations, the determination module 830 is further configured to:
[0168] Based on the response results, get the answer to each trajectory sub-question;
[0169] The answers to each trajectory sub-question are combined to obtain the localization result for the trajectory question.
[0170] In some embodiments, the analysis module 820 is further configured to:
[0171] For each trajectory sub-problem, determine the task identifier corresponding to the trajectory sub-problem according to the task information of the trajectory sub-problem;
[0172] The analysis order of the trajectory subproblems is determined based on the task identifiers corresponding to the trajectory subproblems.
[0173] In some implementations, the determination module 830 is further configured to:
[0174] Based on the response results, get the answer to each trajectory sub-question;
[0175] For each trajectory sub-problem, the answers to the trajectory sub-problems are combined in the analysis order of the trajectory sub-problems to obtain a positioning result for the trajectory problem.
[0176] In the disclosed embodiment, a large language model is called to plan and decompose the trajectory problem to obtain one or more trajectory sub-problems and the task information of each trajectory sub-problem, so as to solve multiple interrelated problems at the same time, thereby avoiding the waste of time resources. For each trajectory sub-problem, a target tool for solving the trajectory sub-problem is called based on the task information to realize the integration of technologies such as artificial intelligence, machine learning and data analysis. The trajectory sub-problem is analyzed based on tool resources in different fields to obtain the answer result of the trajectory sub-problem, which can avoid the errors caused by manual operation and improve the efficiency and accuracy of trajectory problem positioning.
[0177] Fig. 9 is a structural diagram of a positioning device for trajectory problems according to an embodiment of the present disclosure, such as Fig. 9 As shown, the positioning device 900 for the trajectory problem includes:
[0178] The receiving module 910 is used to receive a request instruction sent by the proxy device;
[0179] A first processing module 920 is used to parse the request instruction, and in response to the request instruction being a first request instruction including a trajectory sub-question, analyze the trajectory sub-question, obtain a reply result of the trajectory sub-question, and send the reply result of the trajectory sub-question to the proxy device;
[0180] The second processing module 930 is configured to send a first trajectory query vector in the trajectory query database to the proxy device in response to the request instruction being a preset second request instruction.
[0181] In the disclosed embodiment, the trajectory sub-problem is analyzed based on the target tool, the answer result of the trajectory sub-problem is obtained, and the answer result of the trajectory sub-problem is sent to the agent device. When the problem involves multiple fields, the trajectory problem is decomposed and analyzed by different tools, which can realize the call of knowledge and resources in different fields to solve the trajectory problem, realize the collaborative cooperation of multiple fields, solve complex trajectory problems more quickly and intelligently, and improve the flexibility of trajectory mining.
[0182] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0183] Fig.10It is a block diagram of an electronic device for implementing an embodiment of the present disclosure. The electronic device can implement the positioning method for the trajectory problem of the embodiment of the present disclosure, and the electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0184] like Fig.10 As shown, the device 1000 includes a computing unit 1001, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1002 or a computer program loaded from a storage unit 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the device 1000 can also be stored. The computing unit 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0185] A number of components in the device 1000 are connected to the I / O interface 1005, including: an input unit 1006, such as a keyboard, a mouse, etc.; an output unit 1007, such as various types of displays, speakers, etc.; a storage unit 1008, such as a disk, an optical disk, etc.; and a communication unit 1009, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1009 allows the device 1000 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0186] The computing unit 1001 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1001 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1001 performs the various methods and processes described above, such as a positioning method for a trajectory problem. For example, in some embodiments, the positioning method for a trajectory problem may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 1008. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 1000 via the ROM 1002 and / or the communication unit 1009. When the computer program is loaded into the RAM 1003 and executed by the computing unit 1001, one or more steps of the positioning method for the trajectory problem described above may be performed. Alternatively, in other embodiments, the computing unit 1001 may be configured to execute the positioning method for the trajectory problem in any other appropriate manner (eg, by means of firmware).
[0187] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0188] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0189] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0190] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0191] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0192] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0193] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0194] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A positioning method for trajectory problems, wherein: Executed by the agent, including: Obtaining a trajectory problem, and calling a large language model to perform planning decomposition on the trajectory problem, so as to obtain one or more trajectory sub-problems and task information of each of the trajectory sub-problems; For each of the trajectory sub-problems, a target tool for solving the trajectory sub-problem is called based on the task information, and the trajectory sub-problem is analyzed based on the target tool to obtain a response result of the trajectory sub-problem; A positioning result for the trajectory question is determined according to the answer result of each of the trajectory sub-questions.
2. The method according to claim 1, wherein: After analyzing the trajectory sub-problem based on the target tool to obtain the answer result of the trajectory sub-problem, the method further includes: According to the answer result, determine whether each of the trajectory sub-problems has an answer, and obtain the trajectory sub-problems that do not have an answer from the trajectory sub-problems; The large language model is continuously called to perform planning decomposition on the trajectory sub-problem that has no answer, so as to update the trajectory sub-problem and the task information.
3. The method according to claim 2, wherein: The continuing to call the large language model to perform planning decomposition on the trajectory sub-problem that has no answer to update the trajectory sub-problem and the task information includes: Determine a first trajectory sub-problem that has no answer among the trajectory sub-problems, and obtain answers to second trajectory sub-problems other than the first trajectory sub-problem; Calling the large language model to plan and decompose the answers to the first trajectory sub-problem and the second trajectory sub-problem to obtain task information of the third trajectory sub-problem and the third trajectory problem; The third trajectory sub-problem and the task information of the third trajectory sub-problem are updated to the new trajectory sub-problem and the task information.
4. The method according to claim 2, wherein: The continuing to call the large language model to perform planning decomposition on the trajectory sub-problem that has no answer to update the trajectory sub-problem and the task information includes: Determining a first trajectory subproblem that has no answer among the trajectory subproblems; Calling the large language model to perform planning decomposition on the first trajectory sub-problem to obtain a fourth trajectory sub-problem and task information of the fourth trajectory problem; The first trajectory sub-problem and the task information of the first trajectory sub-problem are replaced with the fourth trajectory sub-problem and the task information of the fourth trajectory sub-problem to update the trajectory sub-problem and the task information.
5. The method according to any one of claims 2 to 4, wherein: The calling of a target tool for solving the trajectory sub-problem based on the task information includes: Based on the task information, a tool identification of the target tool is determined, and based on the tool identification of the target tool, the target tool for solving the trajectory sub-problem is called.
6. The method according to any one of claims 1 to 4, wherein: The analyzing the trajectory sub-problem based on the target tool to obtain a response result of the trajectory sub-problem includes: If the target tool is a tool in a pre-deployed trajectory query system, trajectory content extraction system, and trajectory analysis system, obtaining attribute parameters of the target tool based on the task information, and combining the attribute parameters with the trajectory sub-problem; Generate a first request instruction according to the combined trajectory sub-problem, and send the first request instruction to the target tool; A response result to the trajectory sub-problem sent by the target tool is received, where the response result is obtained by the target tool through analyzing the combined trajectory sub-problem.
7. The method according to claim 6, wherein: include: If the target tool is the trajectory query system, the attribute parameters of the target tool include information of a specified time, a specified location range, and a terminal device; or If the target tool is the trajectory content extraction system or the trajectory analysis system, the attribute parameters of the target tool include vehicle information, vehicle coordinate information and timestamp information.
8. The method according to any one of claims 2 to 4, wherein: The analyzing the trajectory sub-problem based on the target tool to obtain a response result of the trajectory sub-problem includes: If the target tool is a pre-deployed trajectory query database, sending a preset second request instruction to the trajectory query database, and receiving a first trajectory query vector sent by the trajectory query database; Acquire attribute parameters of the target tool based on the task information, and combine the attribute parameters with the trajectory sub-problem; Performing embedding mapping on the combined trajectory sub-problems to obtain a second trajectory query vector; The second trajectory query vector is matched with the first trajectory query vector to obtain a matching degree, and a response result of the trajectory sub-question is determined according to the matching degree.
9. The method according to claim 8, wherein: The step of determining the answer result of the trajectory sub-question according to the matching degree includes: If there is no third trajectory query vector in the first trajectory query vector whose matching degree with the second trajectory query vector is greater than a preset matching threshold, determining that the answer result of the trajectory sub-question is that there is no answer to the trajectory sub-question; or If there is a third trajectory query vector in the first trajectory query vector whose matching degree with the second trajectory query vector is greater than a preset matching threshold, the third trajectory query vector is decoded, and the obtained answer to the trajectory sub-question is used as the answer result of the trajectory sub-question.
10. The method according to claim 8, wherein: The process of establishing the trajectory query database includes: Acquire a plurality of historical trajectory question-answer pairs, wherein the historical trajectory question-answer pairs include historical trajectory questions and historical answers corresponding to the historical trajectory questions; Embedding and mapping are performed on the plurality of historical trajectory question-answer pairs to obtain a plurality of the first trajectory query vectors, and the trajectory query database is generated according to the plurality of the first trajectory query vectors.
11. The method according to claim 10, wherein: The embedding and mapping the plurality of historical trajectory question-answer pairs to obtain a plurality of the first trajectory query vectors includes: Parsing and segmenting the plurality of historical trajectory question-answer pairs to obtain a plurality of trajectory information text blocks; Embedding and mapping are performed on the plurality of trajectory information text blocks to obtain a plurality of the first trajectory query vectors.
12. The method according to claim 1, wherein: Determining the positioning result for the trajectory question according to the answer result of each trajectory sub-question includes: According to the response result, an answer to each of the trajectory sub-questions is obtained; The answers to each of the trajectory sub-questions are combined to obtain a positioning result for the trajectory question.
13. The method according to claim 1, wherein: Before analyzing the trajectory sub-problem based on the target tool, the method further includes: For each of the trajectory sub-problems, determining a task identifier corresponding to the trajectory sub-problem according to the task information of the trajectory sub-problem; The analysis order of the trajectory sub-problems is determined based on the task identifiers corresponding to the trajectory sub-problems.
14. The method according to claim 13, wherein: Determining the positioning result for the trajectory question according to the answer result of each trajectory sub-question includes: According to the response result, an answer to each of the trajectory sub-questions is obtained; For each of the trajectory sub-problems, the answers to the trajectory sub-problems are combined according to the analysis order of the trajectory sub-problems to obtain a positioning result for the trajectory problem.
15. A positioning method for trajectory problems, wherein: Executed by the target tool, including: receiving a request instruction sent by the proxy device; Parsing the request instruction, in response to the request instruction being a first request instruction including a trajectory sub-question, analyzing the trajectory sub-question, obtaining a reply result of the trajectory sub-question, and sending the reply result of the trajectory sub-question to the proxy device; In response to the request instruction being a preset second request instruction, sending a first trajectory query vector in a trajectory query database to the proxy device.
16. A positioning device for trajectory problems, wherein: include: An acquisition module, used for acquiring a trajectory problem, and calling a large language model to perform planning decomposition on the trajectory problem, so as to acquire one or more trajectory sub-problems and task information of each of the trajectory sub-problems; An analysis module, configured to call a target tool for solving each trajectory sub-problem based on the task information, and analyze the trajectory sub-problem based on the target tool to obtain a response result for the trajectory sub-problem; The determination module is used to determine the positioning result for the trajectory question according to the answer result of each trajectory sub-question.
17. The device according to claim 16, wherein: The analysis module is further used for: According to the answer result, determine whether each of the trajectory sub-problems has an answer, and obtain the trajectory sub-problems that do not have an answer from the trajectory sub-problems; The large language model is continuously called to perform planning decomposition on the trajectory sub-problem that has no answer, so as to update the trajectory sub-problem and the task information.
18. The device according to claim 17, wherein: The analysis module is further used for: Determine a first trajectory sub-problem that has no answer among the trajectory sub-problems, and obtain answers to second trajectory sub-problems other than the first trajectory sub-problem; Calling the large language model to plan and decompose the answers to the first trajectory sub-problem and the second trajectory sub-problem to obtain task information of the third trajectory sub-problem and the third trajectory problem; The third trajectory sub-problem and the task information of the third trajectory sub-problem are updated to the new trajectory sub-problem and the task information.
19. The device according to claim 17, wherein: The analysis module is further used for: Determining a first trajectory subproblem that has no answer among the trajectory subproblems; Calling the large language model to perform planning decomposition on the first trajectory sub-problem to obtain a fourth trajectory sub-problem and task information of the fourth trajectory problem; The first trajectory sub-problem and the task information of the first trajectory sub-problem are replaced with the fourth trajectory sub-problem and the task information of the fourth trajectory sub-problem to update the trajectory sub-problem and the task information.
20. The device according to any one of claims 17 to 19, wherein: The analysis module is further used for: Based on the task information, a tool identification of the target tool is determined, and based on the tool identification of the target tool, the target tool for solving the trajectory sub-problem is called.
21. The device according to any one of claims 16 to 19, wherein: The analysis module is further used for: If the target tool is a tool in a pre-deployed trajectory query system, trajectory content extraction system, and trajectory analysis system, obtaining attribute parameters of the target tool based on the task information, and combining the attribute parameters with the trajectory sub-problem; Generate a first request instruction according to the combined trajectory sub-problem, and send the first request instruction to the target tool; A response result to the trajectory sub-problem sent by the target tool is received, where the response result is obtained by the target tool through analyzing the combined trajectory sub-problem.
22. The device according to claim 21, wherein The analysis module is further used for: If the target tool is the trajectory query system, the attribute parameters of the target tool include information of a specified time, a specified location range, and terminal equipment; or If the target tool is the trajectory content extraction system or the trajectory analysis system, the attribute parameters of the target tool include vehicle information, vehicle coordinate information and timestamp information.
23. The device according to any one of claims 17 to 19, wherein: The analysis module is further used for: If the target tool is a pre-deployed trajectory query database, sending a preset second request instruction to the trajectory query database, and receiving a first trajectory query vector sent by the trajectory query database; Acquire attribute parameters of the target tool based on the task information, and combine the attribute parameters with the trajectory sub-problem; Performing embedding mapping on the combined trajectory sub-problems to obtain a second trajectory query vector; The second trajectory query vector is matched with the first trajectory query vector to obtain a matching degree, and a response result of the trajectory sub-question is determined according to the matching degree.
24. The device according to claim 23, wherein: The analysis module is further used for: If there is no third trajectory query vector in the first trajectory query vector whose matching degree with the second trajectory query vector is greater than a preset matching threshold, determining that the answer result of the trajectory sub-question is that there is no answer to the trajectory sub-question; or If there is a third trajectory query vector in the first trajectory query vector whose matching degree with the second trajectory query vector is greater than a preset matching threshold, the third trajectory query vector is decoded, and the obtained answer to the trajectory sub-question is used as the answer result of the trajectory sub-question.
25. The device according to claim 23, wherein: The device also includes a database establishment module, which is used to: Acquire a plurality of historical trajectory question-answer pairs, wherein the historical trajectory question-answer pairs include historical trajectory questions and historical answers corresponding to the historical trajectory questions; Embedding and mapping are performed on the plurality of historical trajectory question-answer pairs to obtain a plurality of the first trajectory query vectors, and the trajectory query database is generated according to the plurality of the first trajectory query vectors.
26. The device according to claim 25, wherein The database establishment module is also used for: Parsing and segmenting the plurality of historical trajectory question-answer pairs to obtain a plurality of trajectory information text blocks; Embedding and mapping are performed on the plurality of trajectory information text blocks to obtain a plurality of the first trajectory query vectors.
27. The device according to claim 16, wherein: The determining module is further used for: According to the response result, an answer to each of the trajectory sub-questions is obtained; The answers to each of the trajectory sub-questions are combined to obtain a positioning result for the trajectory question.
28. The device according to claim 16, wherein: The analysis module is further used for: For each of the trajectory sub-problems, determining a task identifier corresponding to the trajectory sub-problem according to the task information of the trajectory sub-problem; The analysis order of the trajectory sub-problems is determined based on the task identifiers corresponding to the trajectory sub-problems.
29. The device according to claim 28, wherein The determining module is further used for: According to the response result, an answer to each of the trajectory sub-questions is obtained; For each of the trajectory sub-problems, the answers to the trajectory sub-problems are combined according to the analysis order of the trajectory sub-problems to obtain a positioning result for the trajectory problem.
30. A positioning device for trajectory problems, wherein: include: A receiving module, used for receiving a request instruction sent by the proxy device; a first processing module, configured to parse the request instruction, and in response to the request instruction being a first request instruction including a trajectory sub-question, analyze the trajectory sub-question, obtain a reply result of the trajectory sub-question, and send the reply result of the trajectory sub-question to the proxy device; The second processing module is configured to send a first trajectory query vector in a trajectory query database to the proxy device in response to the request instruction being a preset second request instruction.
31. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method according to any one of claims 1 to 14, or execute the method according to claim 15.
32. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to enable the computer to execute the method according to any one of claims 1 to 14, or to execute the method according to claim 15.
33. A computer program product, comprising a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 14, or performs the steps of the method according to claim 15.
Citation Information
Patent Citations
Training method, evaluation method, control method and device of automatic driving model
CN113238970A
Method and device for mining new road based on driving track and electronic equipment
CN114428828A
Question answering method and device, electronic equipment and computer readable storage medium
CN116244418A
Method and device for executing complex task by using large language model
CN116594757A
Large-model-oriented universal tool collaboration and refined learning system and method
CN116594768A