Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

817 results about "Database querying" patented technology

A database query extracts data from a database and formats it in a readable form. A query must be written in the language the database requires; usually, that language is Structured Query Language (SQL). For example, when you want data from a database, you use a query to request that specific information.

Systems and methods for facilitating database queries

Approaches are described for facilitating database queries. A data model associated with multiple data stores is received. A natural language question for a data set maintained across these data stores is obtained, where the data set is stored in a non-standardized format and not directly accessible by the querying device. An abstracted query representation is generated and translated into a standardized expression language based on the data model. Query processing approaches identify a predefined query pattern optimized for system performance metrics. An executable query is generated from the identified query pattern and provided to access the data stores. The query is executed to retrieve the data set, formatted as a structured view for unified access to dispersed data.
Owner:QUERYWISE LLC

Techniques for generating and correcting database queries using language models

One embodiment of a method for generating a query includes receiving a user input, selecting, from a plurality of predefined inputs, at least one predefined input based on similarity to the user input, and prompting a trained machine learning model to generate a query based on the user input and at least one predefined query associated with the least one predefined input.
Owner:VIAN SYSTEMS INC

Database query method and device based on natural language and electronic equipment

The invention provides a database query method and device based on a natural language and electronic equipment, and the method comprises the steps: obtaining a query text input by a user, the query text being a natural language; performing cue word analysis processing on the query text by using a cue word project and a locally deployed large model service to obtain a final cue word corresponding to the query text, the final cue word being used for guiding the large model service to generate an SQL statement corresponding to the query text; inputting the final cue word into a large model service, and determining a target SQL query statement output by the large model service and corresponding to the query text; and running the target SQL query statement in the to-be-queried database to obtain a data query result corresponding to the query text. According to the method, the query operation of the database by the natural language is realized through the large model service deployed locally, so that the query difficulty is simplified while the data security is ensured.
Owner:北京远舢智能科技有限公司

Database query method and device, electronic equipment and nonvolatile storage medium

The invention discloses a database query method and device, electronic equipment and a nonvolatile storage medium. The method comprises the steps that a knowledge graph corresponding to a to-be-queried database is determined, and the knowledge graph is used for representing a logic structure and an incidence relation of data in the to-be-queried database; a similarity score between the user question text and each graph node in the knowledge graph is determined, a target node is determined in each graph node of the knowledge graph according to the similarity score, and the similarity score is used for representing a correlation degree between the graph node and the user question text; and generating database mode information corresponding to the to-be-queried database according to the target node, and generating a structured query language statement corresponding to the user question text by adopting a large language model according to the database mode information. According to the method and the device, the technical problem of poor accuracy of generating the query statement of the database by utilizing the large language model due to the fact that the field information in the database is numerous and the relationship is complex is solved.
Owner:CHINA TELECOM ARTIFICIAL INTELLIGENCE TECHNOLOGY (BEIJING) CO LTD

System and method for answering questions requiring database query results in a large language model chat

A system for responding to questions that require database queries including: a query evaluator that trained or programmed to be capable of receiving a user input question and evaluating whether the question requires one or more database queries to answer; a query generator that trained or programmed to be capable of processing the question in order to identify at least one database from a library of databases may be queried to answer the question, and to generate a query output comprising a database schema for the at least one identified database and a query to be run on the identified databases; and a large language model trained to be capable of receiving the query output from the query generator, to run the query on the identified databases, and to generate a response; and methods relating to same.
Owner:ANSIBLE HEALTH INC

Layered database queries for context injection for technical support

A method of automated technical support includes receiving a natural-language prompt from a user and a user identifier corresponding to the user, the natural-language prompt including at least one technical support query, querying a first database with the user identifier to retrieve first information, generating a vector embedding representative of the first information and the natural-language prompt, querying a second database using the vector embedding to retrieve second information, and generating a natural-language response text based on the natural-language prompt, the first information, and the second information. The second database is a vector database comprising a plurality of vectors, each vector of the plurality of vectors representative of a text segment of a plurality of text segments, the second information comprises at least one text segment of the plurality of text segments, and the natural-language response text responsive to the at least one technical support query.
Owner:INSIGHT DIRECT USA INC

Natural language to SQL on custom enterprise data warehouse powered by generative artificial intelligence

Systems and methods for translating natural language to SQL on a custom enterprise data warehouse powered by Generative AI. With an embodiment of the present invention, a natural language question may be converted to a meaningful and accurate database query, e.g., SQL query, relevant to tables existing in an enterprise data warehouse. An embodiment of the present invention is directed to a comprehensive approach of transforming a natural language query to a focused SQL query using domain specific data models across firmwide metadata systems and data systems. In response to a user query, an embodiment of the present invention performs metadata analysis, targeted data retrieval and then SQL generation. An embodiment of the present invention may apply data warehousing standards and guidelines followed in the enterprise and provide a plug-and-play type architecture and solution that is scalable to large warehousing and other systems.
Owner:MORGAN STANLEY SERVICES GROUP INC

Method for generating SQL (structured query language) from natural language based on bidirectional mapping and semantic analysis

The invention provides a method for generating an SQL (Structured Query Language) by a natural language based on bidirectional mapping and semantic parsing, which relates to the technical field of database query and comprises the following steps of: extracting natural language query elements and packaging the natural language query elements into structured data, and establishing a mapping relationship from a query field to a service attribute and a physical data table by adopting a bidirectional Hash index technology; and automatically identifying multi-table association keys, performing semantic extension and compliance verification, generating an abstract syntax tree, performing processing according to user permission, and finally converting the abstract syntax tree into an SQL statement conforming to a target database syntax specification. According to the method, the accuracy and the efficiency of converting the natural language into the SQL are improved, and the flexibility and the safety of the system are enhanced.
Owner:北京科杰科技有限公司

Conversational database query method and device based on large language model agent

The invention relates to a database query method and device based on a large language model agent and electronic equipment, and the method comprises the steps: obtaining and analyzing query request information, recognizing a query request intention type, carrying out the problem splitting of the query request information according to the query request intention type, and obtaining sub-query request information; searching and obtaining an SQL statement corresponding to the sub-query request information in the target knowledge base according to the category of the query request intention, constructing and generating an SQL statement prompt word and sending the SQL statement prompt word to the large language model when the SQL statement is not searched, executing according to the returned SQL statement to obtain a sub-query result, integrating the sub-query result and obtaining a query result of the query request information, and generating a data visualization code based on the large language model, executing and outputting a query result and a visualization display result thereof. By combining natural language processing, a large language model and a multi-item optimization technology, the efficiency and usability of data query are greatly improved, and non-technical users can conveniently analyze complex data.
Owner:HASHDATA LTD

System and method for artificial intelligence based generation of database queries

A system and method for automatic generation of database queries using zero-shot, context-based machine learning may output and / or execute database queries and / or analytics insights or plots based on text prompts, and may include or involve: wrapping a text prompt to include database structure information; generating, by a large language model (LLM), a query based on the wrapped prompt, where the query may include one or more database operations; and extracting data or information items from a database based on the query. Some embodiments may include additional prompt or query processing operations such as, e.g., wrapping queries to include corresponding database operations, validating that queries do not include malicious or undesirable commands, and automatically performing appropriate computer actions based on generated queries. Some embodiments of the invention may relate to databases and text prompts describing user actions input to a computer and collected by a desktop data collection software.
Owner:NICE LTD

System and method for generating database queries based on natural language input

Provided herein are systems, methods, and computer-readable media for generating one or more database queries based on a natural language input data. An example method comprises configuring, using a conversational artificial intelligence (AI) editing module, information for a task. Moreover, the method may further comprise parsing the configured information based on a database schema to obtain a parsed database schema. Further, the method may further comprise generating, using a natural language question-answering system, one or more database queries based on the parsed database schema and natural language input data.
Owner:SHOPEE IP SINGAPORE PTE LTD

Data analysis system and method based on artificial intelligence

According to the artificial intelligence-based data analysis system and method provided by the invention, a set of novel data analysis system architecture is designed, and key technical components such as natural language processing, a large language model, database query optimization, multi-modal visualization and a semantic knowledge graph are fused; data transmission between modules is realized through unified intermediate data objects such as a structured query intention, an analytic tree and a structured query language template object, and asynchronous collaboration is realized through event driving and a message queue mechanism, so that a non-professional user can input an analysis request through a natural language; semantic analysis, structured query language query statement generation, data query and result visualization presentation are automatically completed, the method can be widely applied to data analysis scenes in the industries of government affairs, traffic, finance, education and the like, the data use efficiency is improved, the technical threshold is reduced, and the digital decision-making ability is enhanced.
Owner:WUHAN DEEPIN DIGITAL TECHNOLOGY CO LTD

Database Query Generation from Natural Language Statements

Query language statements are generated from natural language statements using a knowledge graph representing one or more databases. The knowledge graph is obtained by creating nodes representing tables and operations referenced by queries to the databases. The data of the databases is evaluated to identify entities and dimensions of entities from among the nodes. The entities are assigned human-understandable labels by an LLM. A natural language statement is converted to a knowledge graph language (KGL) statement and references in the KGL statement are replaced with references to entities in the knowledge graph. The KGL statement is then programmatically converted to a database language statement.
Owner:DATAIRIS PLATFORM INC

Generation of verbose tax category descriptions using a generative language model

A computing system for generating verbose tax category descriptions includes a computing device with processing circuitry configured to identify defined tax categories. For each defined tax category, the processing circuitry is configured to extract source text data associated with the defined tax category, generate embeddings representing the source text data, and store the source text embeddings in a vector database. The processing circuitry is further configured to receive an instruction requesting a verbose tax category description of an indicated tax category, generate instruction text embeddings, and query the vector database with the instruction text embeddings to identify a subset of matching source text embeddings. The processing circuitry is further configured to retrieve matching source text data, generate a prompt for a generative language model, input the prompt into the model to generate verbose tax category description text, and output the verbose tax category description text.
Owner:VERTEX INC

Context learning-based database query generation method and system and storage medium

The invention discloses a context learning-based database query generation method and system and a storage medium, and the method comprises the steps: extracting keywords and phrases from a natural language query, retrieving values similar to the keywords in a database, and returning values most related to the keywords and corresponding columns thereof, retrieving description information related to the keywords and the phrases in a database directory; performing mode selection aiming at the most relevant value of each keyword and the corresponding column, namely screening out the column irrelevant to the natural language query, further selecting a table necessary for generating the SQL query, and finally reducing the mode to a minimum column set necessary for generating the SQL query; and correcting logic and grammar errors of the method model through the database mode, the natural language query, the generated candidate SQL query and the execution result thereof. According to the method, the efficient SQL query statement is generated by intelligently understanding the data context and the query requirement.
Owner:GUANGDONG POWER GRID CO LTD +1

Space-time question semantic understanding method and device, equipment and medium

The invention discloses a time-space question semantic understanding method and device, equipment and a medium, and relates to the technical field of geographic time-space queries, the method comprises the steps that an obtained target natural language time-space question is input into an improved BiLSTM-CRF model to obtain a keyword coding result, and the improved BiLSTM-CRF model is added with multiple self-attention layers; classifying the target natural language spatio-temporal question according to the keyword coding result to obtain a question type of the target natural language spatio-temporal question; performing semantic analysis on the target natural language spatio-temporal question based on the question type of the target natural language spatio-temporal question by adopting dependency syntactic analysis to obtain analysis content; converting the analysis content into an intermediate language; the intermediate language is converted into the structured query language, semantic information and intention of the question can be accurately extracted, and conversion from a natural language to a database query language is achieved.
Owner:CHINESE ACAD OF SURVEYING & MAPPING

Database query method and device, electronic equipment and storage medium

The invention provides a database query method and device, electronic equipment and a storage medium, and is applied to the technical field of computers.The method comprises the steps that a to-be-queried database and a query problem text input by a user for the database are obtained; constructing a cue word project according to the related information of the database; inputting the query problem text and the prompt word project into a large language model, performing text-to-query statement conversion processing, and determining a target query statement corresponding to the query problem text; the cue word project is used for guiding the large language model to generate a query statement according to the cue word project; and querying in the database according to the target query statement to determine a query result. By means of the technical scheme, a user does not need to master compiling of database query statements skillfully, and therefore the technical threshold of database query of the user can be lowered.
Owner:CHINA ACADEMY OF RAILWAY SCI CORP LTD +2

Data query method and system for converting natural language into database query language

The invention provides a data query method and system for converting a natural language into a database query language, and the method comprises the steps: analyzing the natural language input of a user through a multi-modal understanding agent on the basis of constructing a dynamic knowledge graph based on metadata, combining a historical session with a business term table, eliminating ambiguity, and generating a standardized Query, a retrieval routing agent selects a query strategy according to Query complexity, simple query directly matches a cache template, complex query traverses a knowledge graph, and related tables, fields and service constraints are returned; then, an expert committee agent generates an SQL (Structured Query Language) by adopting multi-stage collaboration, executes plan pre-evaluation, and selects a version with the highest comprehensive score; the test agent simulates and executes the SQL in the isolation environment, and verifies the grammar legality and the field permission; and finally, executing the detected SQL, and processing a result. According to the method, the accuracy of converting the natural language into the SQL (NL2SQL) in a complex database scene can be effectively improved.
Owner:HI-THINK YONDERVISION (BEIJING) TECH CO LTD

Database migration method and device, electronic equipment and storage medium

The invention relates to the technical field of databases, can be applied to the field of science and technology finance / digital medical treatment, and discloses a database migration method and device, electronic equipment and a storage medium. The method comprises the steps that database structured query language identifiers are defined, strategy classes corresponding to all databases are packaged, and a strategy context management container is created; receiving a target database type, dynamically loading a strategy type instance according to the type, and generating an executable query strategy chain according to the strategy type instance; when a database query request is received, matching a corresponding strategy type instance, and processing an original database query statement to generate a target database executable instruction; controlling a query strategy chain to execute a single-path or double-write-path mode through a common switch, and transmitting the instruction to a strategy type instance for execution; and analyzing a return result of the target database, performing conversion adaptation through the strategy type instance, and returning a conversion adaptation result. The method realizes automatic migration, reduces cost and risk, and improves system performance.
Owner:CHINA PING AN LIFE INSURANCE CO LTD

LLM-based constraint and self-repairing uniformization equipment knowledge graph automatic construction method

The invention belongs to the technical field of equipment knowledge engineering and natural language processing, and discloses an LLM-based constraint and self-repairing uniformization equipment knowledge graph automatic construction method. The method comprises the following steps: firstly, acquiring equipment related document data through network collection, document arrangement and database query; then, utilizing an equipment domain ontology and constraints as preposed soft and hard constraints, driving LLM to generate semantic intermediate representation, and obtaining candidate triples through structured compiling; then, a self-repairing closed loop is formed through semantic unit testing, logic consistency detection and evidence binding verification, and triples which violate constraints and have conflicts or illusions are automatically recognized and repaired; and finally, entity standard identification, cross-document duplicate removal combination and conflict resolution are realized through cross-segment unification and incremental alignment. According to the method, the fragile path that the LLM directly generates the triple and blindly stores the triple is avoided, the illusion and inconsistency problems are effectively inhibited, and the correctness, interpretability and maintainability of the equipment knowledge graph are remarkably improved.
Owner:SICHUAN UNIV

Database query training method and device based on RAG and large model

The invention provides a database query training method and device based on RAG and a large model, and the method comprises the steps: obtaining DDL annotation data and SQL annotation data, standardizing the data into a training document, vectorizing the training document into a retrieval knowledge vector, and storing the retrieval knowledge vector into a preset vector database; in response to a query operation of a user, vectorizing the query operation into a query vector, and retrieving matched associated DDL and associated SQL in a preset vector database according to the query vector; constructing a model cue word according to a query problem corresponding to the query operation, the associated DDL and the associated SQL, inputting the model cue word into a preset large language model, and converting the query problem into a corresponding target SQL; and determining a query result of the target SQL in the target business database, and feeding back the query result to the user. According to the method, intelligent conversion from the natural language to the SQL can be realized, and the vector retrieval is introduced to enhance the generation process, so that the illusion problem of a large model is remarkably reduced, and the accuracy and safety of generating the SQL are improved.
Owner:SHANGHAI ANXINCHENG NETWORK TECHNOLOGY CO LTD

Generating database query using machine-learned large language models

A computer system uses a machine-learned language model to generate an SQL query for a user query. The system receives a user query comprising a task for performing a database query. The system identifies an embedding for the user query to represent the user query. The system generates a prompt for input to a machine-learned language model, and the prompt specifies the user query, metadata associated with the identified data table and a request to generate one or more SQL statements for performing the database query on the data table. The system provides the prompt to a model serving system and receives an output generated that includes the requested SQL statements for performing the database query. The system presents a response to the user query using the received SQL statements.
Owner:MAPLEBEAR INC

Intelligent information processing system based on large model Agent

The invention provides an intelligent information processing system based on a large model Agent, and belongs to the technical field of large language models. Comprising a database query module configured to receive user input and convert the user input into SQL statements for database query; the document retrieval module is configured to vectorize a document uploaded by a user, store the document in a vector database and retrieve a related document according to a user question; the API calling module is configured to configure and call an external API and process data returned by the interface; the large model processing module is configured as the core of the system and is responsible for processing user questions and providing intelligent answers; and the system management module is configured for system configuration, monitoring and optimization. The method is driven by a large model technology, so that people can execute and process professional or complicated work tasks in a high-automation manner by taking a natural language as an interaction mode, and the vigor of personnel is released to a great extent.
Owner:浪潮智能终端有限公司

SQL (Structured Query Language) generation method and system based on large language model, terminal and medium

The invention belongs to the field of SQL generation, and particularly discloses an SQL generation method and system based on a large language model, a terminal and a medium, a natural language query statement and a target database mode are transmitted into the large language model, and N candidate tables most relevant to user query are selected and fed back by the large language model according to a first prompt word; selecting and feeding back a plurality of candidate data columns most relevant to the user query from each candidate table by the large language model according to the second cue word; retrieving an example question and answer pair similar to the user query from the vector database, wherein the example question and answer pair comprises an example question and an example SQL statement; generating a plurality of candidate SQL statements by the large language model according to the third cue word; and carrying out confidence coefficient filtering on the plurality of generated candidate SQL statements, and selecting a final SQL statement. According to the method, the natural language query statement is converted into the SQL statement through the large language model, the SQL statement generation efficiency and accuracy are improved, and then the usability and accuracy of database query are improved.
Owner:山东浪潮智慧医疗科技有限公司

Financial bill and non-tax collection intelligent data analysis platform

The invention relates to an intelligent data analysis platform for financial bills and non-tax collection. The intelligent data analysis platform comprises a business layer, a service layer, a model layer and a data layer, the business layer is used for interacting with a user, managing user sessions and proposed common questions, and managing a database and prompt words; the service layer is used for identifying and processing sensitive vocabularies of questions input by a user and carrying out visualization and analysis output processing on a query result based on a large language model; the model layer comprises a large language model, a Rerank model and an Embedding model, and is used for converting a natural language into an SQL (Structured Query Language) query statement and performing accurate query matching in the data layer; and the data layer comprises a business database and a vector database, and is used for storing business data of financial bills and non-tax collection and process data of correct query results. Therefore, the dependence on technicians is eliminated, and the query threshold of the SQL database is reduced.
Owner:FUJIAN BOSS SOFTWARE

Large model Text-to-SQL conditional clause improvement method and system based on fuzzy recall field value enhancement

The invention relates to the technical field of natural language processing and database query, and particularly discloses a large model Text-to-SQL conditional clause improvement method and device based on fuzzy recall field value enhancement, which are used for solving the problem of SQL query errors caused by inaccurate field values input by a user. According to the main scheme, the method comprises the following steps: extracting and recognizing date, field name and field value keywords in user input through a large model entity; 2) dynamically acquiring related field values from a database by combining a multi-stage recall mechanism of ElasticSearch (ES) fuzzy matching and vector semantic retrieval, and improving the recall accuracy through threshold screening; (3) organizing recall field values into structured contexts, injecting the structured contexts into a large model cue word template, and guiding the structured contexts to generate SQL condition clauses (such as WHERE clauses) containing accurate field values; and (4) changing a real-time synchronous database into an ES and vector database to ensure data consistency.
Owner:SICHUAN UNIV

Database query generation method and system based on multi-selection optimization and storage medium

The invention discloses a database query generation method and system based on multi-selection optimization and a storage medium. The method comprises the steps that tables and columns related to natural language query are extracted from a database mode through multiple prompts; generating a plurality of candidate SQL queries by utilizing multiple prompts based on the extracted tables and columns related to the natural language queries and a selection strategy based on question similarity and mask question similarity; and performing screening according to the confidence score of each candidate SQL query, and selecting an optimal SQL query through a multi-selection method. According to the method and the device, the accuracy and the robustness of generating the SQL query are improved.
Owner:GUANGDONG POWER GRID CO LTD +1

Structured query language generation method and device, equipment and storage medium

The invention discloses a structured query language generation method and device, equipment and a storage medium, and relates to the technical field of database query, and the method comprises the following steps: obtaining a natural language input by a target user, and analyzing the natural language by using a preset large model to obtain structured data; determining a corresponding mapping relationship based on the structured data and a preset database knowledge graph, determining an initial structured query language based on a preset large model and the mapping relationship, and performing query by using the initial structured query language to obtain a query result; determining a first reward value based on the structured data, determining a second reward value based on the query result, and adjusting a preset large model by using the first reward value, the second reward value and a strategy gradient algorithm to obtain an adjusted large model; and evaluating the adjusted large model by utilizing a preset verification set, and if the evaluation is passed, generating a target structured query language by utilizing the adjusted large model. Therefore, the SQL generation accuracy can be improved.
Owner:INSPUR YUNZHOU (SHANDONG) IND INTERNET CO LTD

SQL (Structured Query Language) database query method, question and answer method and system with intention recognition

The invention provides an SQL (Structured Query Language) database query method, question and answer method and system with intention recognition, and belongs to the technical field of data processing. Identifying and correcting intentions in the user questions to obtain a field content dictionary from the aligned database fields to the user questions; generating a database supplementary information description according to the field content dictionary, and combining the database supplementary information description with a standardized database description to form context information; obtaining an SQL (Structured Query Language) query statement corresponding to the user question according to the context information and a preset large language model, and obtaining to-be-queried content according to an SQL database queried by the SQL query statement; according to the method, the alignment problem of the user problem and the actual data of the SQL database is effectively solved, the field content related to the user problem can be accurately found, the SQL query statement meeting the requirement is generated, and the query precision and the query efficiency are greatly improved.
Owner:SHANDONG EVAYINFO TECH CO LTD

Systems and methods for generating query parameters from natural language utterances

A method may receive a text string of an utterance. A method may tokenize the utterance into a plurality of tokens. A method may transform the plurality of tokens into a plurality of feature vectors. A method may assign an entity label to each of the plurality of feature vectors. A method may resolve each feature vector of the plurality of feature vectors to a corresponding standardized value of a database query language.
Owner:JPMORGAN CHASE BANK NA +1