Natural Language Database Query Translation via Machine Learning

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional database systems require strong database expertise from users and are restrictive in terms of the information that users can access, as they typically use structured query languages like SQL and are designed for specific use cases.

Innovation Solution

An online system that uses a natural language interface and a machine learned language model to translate user requests into structured queries, allowing users to access and modify database information through conversational interactions.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of operation

If conventional database query languages like SQL are used, then database searching capability is provided, but user accessibility deteriorates due to requiring strong database expertise

Engineering Contradiction:
Improveuser accessibilityVSAvoiddatabase searching capability
Core Design Contradiction:
Ease of operationVSAdaptability or versatility

Solution Approach 1:

The patent introduces a natural language processing intermediary layer that translates user-friendly natural language queries into structured database queries. This mediator system includes language model processing, query parsing, and schema mapping components that bridge the gap between simple user input and complex database operations, allowing users without database expertise to access database functionality.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system creates a universal interface that handles multiple types of database operations through a single natural language interface. The chat interface can perform searches, retrieve information, modify records, and execute various database functions using the same conversational mechanism, eliminating the need for users to learn different query languages for different operations.

Inventive Principle:
Principle #6Universality (Multi-functionality)

2Adaptability or versatility

If specialized applications are created for specific use cases, then access to specific data is enabled, but system versatility deteriorates as users cannot access data beyond the application's design scope

Engineering Contradiction:
Improvedata access rangeVSAvoidapplication modification complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent implements a universal database access system where a single chat interface application can access any data in the database through natural language queries. The system uses schema mapping and language model processing to understand user intent and retrieve data from any table or field, eliminating the need for separate applications for different data access needs.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

Instead of requiring the application to adapt to specific use cases through customization, the system inverts the approach by making the application universally adaptable to any use case through natural language processing. The flexibility is built into the core system through AI-driven query interpretation rather than through application-specific configurations.

Inventive Principle:
Principle #13The other way round (Inversion)

3Ease of operation

If conventional chat interfaces are used for user interaction, then user-friendly communication is provided, but database query accuracy deteriorates due to lack of structured output

Engineering Contradiction:
Improveinterface user-friendlinessVSAvoidquery translation accuracy
Core Design Contradiction:
Ease of operationVSMeasurement precision

Solution Approach 1:

The system implements feedback loops where the language model processes natural language input, generates structured queries, and refines its output based on the results and user corrections. The system learns from user interactions and adjusts its query generation to improve accuracy over time, creating a feedback-driven improvement mechanism.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The system performs preliminary processing of natural language input through multiple stages including language model encoding, query template selection, parameter extraction, and schema mapping before executing the final database query. This multi-stage preliminary action ensures that the natural language input is thoroughly processed and transformed into accurate structured queries.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS20250147954A1Database search based on machine learning based language models
Publication Date: 2025.05.08 MAPLEBEAR INC
  • US20250147954A1 patent drawing
  • US20250147954A1 patent drawing
  • US20250147954A1 patent drawing

AI summary

An online system receives information describing a set of items requested by a user and an indication via a chat interface that a particular item needs replacement. The online system generates one or more prompts configured to request a machine learned language model to identify the particular item that needs replacement and to identify one or more replacement items for the particular item. The online system receives a set of item identifiers from the machine learned language model and selects a replacement item from a database based on the set of item identifiers. The online system may also receive an order and a communication history associated with a user including a message with a request to modify the a. The online uses the machine-learning language model to map the request type to the set of API requests for updating the order to reflect the request from the user.