Skip to content

bour278/text2sql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text2SQL

Description

📔 Text ➡️ SQL 🧑‍💻

Tools

Tutorials

Papers

Running

1 - install requirements

pip install requirements.txt

2- navigate to /data and run sqlite-synthetic.py to create a toy dataset

cd data
python sqlite-synthetic.py

after this step you should see a synthetic_data.db in /src

3- navigate to src and run either main.py or the UI:

For command line interface:

cd ../src
# Use OpenAI (default)
python main.py

# Or use Google's Gemini model
python main.py -gemini

For the web interface:

cd ../src
# Run the Streamlit UI
python run_ui.py

Optional run visualize_workflows.py to show workflow graphs

API Keys

Create a keys.env file in the src/agents directory with your API keys:

OPENAI_API_KEY=your_openai_key_here
GOOGLE_API_KEY=your_gemini_key_here # Optional, only if using Gemini

Development

See TODO.md for planned features and improvements.

Implementaions

Langgraph Workflow 🦜

  • Master Workflow

Master Workflow

  • Python Workflow

Python Workflow

  • SQL Workflow

SQL Workflow

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages