MUMBAI, India, Nov. 23 -- Intellectual Property India has published a patent application (202521046972 A) filed by Tata Consultancy Services Limited on May 15, 2025, for Retrieving Data From Relational Databases Using Llm-Based Structured Query Generation From Natural Language Query.

Inventors include Kulkarni, Aniket Nandkishor; Sahu, Varun Singh; and Poojary, Sudhakara Deva.

The application for the patent was published on November 20, 2026, under issue no. 47/2026.

Abstract: ABSTRACT RETRIEVING DATA FROM RELATIONAL DATABASES USING LLM-BASED STRUCTURED QUERY GENERATION FROM NATURAL LANGUAGE QUERY State of the art techniques have limitations is understanding intent of the natural language query in context of available database schema. This leads to generation of inappropriate structured query, effectively resulting in inappropriate data retrieval from database. A method for retrieving data from relational databases using LLM based structured query generation from natural language query is provided. A first instance of LLM supports a schema mapping module while a second instance of LLM supports a query generation module. The SQL query generation utilizes ensemble of methods during query building for searching the database, wherein a full-text search, substring search, and semantic search is applied for searching short text fields of the relevant categorical columns, and wherein a directly semantic search is applied to capture relevant content based on meaning for searching long text fields of the relevant categorical columns if the approach used for short text field fails to retrieve intended data. [

Disclaimer: Curated by HT Syndication.