Skip to content

Demonstrates how to query a SQL database using natural language by leveraging OpenAI GPT-4 and the data framework LlamaIndex

Notifications You must be signed in to change notification settings

redswimmer/natural-language-to-sql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Natural Language to SQL Demo

This example demonstrates how to query our SQL database using natural language by leveraging the LLM OpenAI and LlamaIndex. It was adapted from this example by Jerry Liu to add support for multiple tables and foreign keys.

Demo Video

I recorded a demo video here if you don't feel like reading the code.

Requirements

You'll need an API key from OpenAI and to install LlamaIndex pip install llama-index

Releases

No releases published

Packages

No packages published