Text-to-SQL: Building Natural Language Interface for Analytics and BI Dashboards Using LLMs and RAG

scgupta


8

Votes

Description:

Analytics dashboards can be overcrowded and intimidating, and not all analysts and business leaders are experts in SQL. This talk will walk you through how to create a Natural Language Interface for Analytics and BI dashboards using Large Language Models (LLMs) and Retrieval Augmented Generation (RAG).

There are 4 major steps:

  1. Create embeddings for table and column metadata along with table DDL statements and store in a Vector DB
  2. Translate natural language text to an SQL query by
    • First retrieving relevant tables and columns from a Vector DB
    • Then using the metadata for retrieved tables and columns to construct an LLM prompt for generating SQL.
  3. Execute this SQL and get the resulting data (rows and columns).
  4. Use LLM to summarize these results into an answer in natural language.

Takeaways:

  • What is LLM, RAG, Embeddings, and VectorDBs
  • How to build applications using LLMs and RAG

Prerequisites:

Basic knowledge of Python and SQL

Speaker Info:

Satish Chandra Gupta is a seasoned Data/ML Practitioner and Advisor/Consultant with over 25 years of industry experience. He was co-founder and Chief Data Officer at Slang Labs, where he helped create a Conversational AI platform for building multilingual, multimodal voice assistants in mobile and web apps. Before that, he was building real-time streaming data pipelines and ML applications at Ola processing a billion events a day. Prior to that, he worked at top-tier organizations such as Amazon, Microsoft Research, and IBM Software Lab.

His expertise lies in helping startups and small to medium-sized companies craft a data/ML strategy and build an economical low-maintenance data infrastructure, actionable data analytics, machine learning, and LLM applications. He shares his learnings in a popular newsletter Machine Learning for Developers (ML4Devs) with over 8,000 subscribers, and on LinkedIn with over 26,000 followers.

Before his foray into data and ML, he built compilers, profilers, IDEs, program analysis, and developer tools. He earned a BTech in Chemical Engineering from IIT Kanpur in 1996 and an MS in Computer Science from the University of Wisconsin - Milwaukee in 2001.

Speaker Links:

Section: Artificial Intelligence and Machine Learning
Type: Talk
Target Audience: Intermediate
Last Updated: