sugarforever / LangChain-SQL-Chain

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chat with SQL database via LangChain SQLDatabaseChain

In this Python notebook, I will show you how to use SQLDatabaseChain to interact with a MySQL database in natural language.

How to use

  1. Configure .env with your valid OpenAI API key in your local env following the example .env.example.
  2. Install and launch MySQL database server in your local env.
  3. Create a new database students.
  4. Import students.sql into the created databse in step 3.

About


Languages

Language:Jupyter Notebook 100.0%