Amir Youssefi 3c23112ed2 fixing github web rendering of the notebook 2 周之前
..
README.md 99ead57fb6 4 READMEs; requirements 3 周之前
csv2db.py 03ba7d59a8 quickstart folder 3 周之前
nba.txt 03ba7d59a8 quickstart folder 3 周之前
nba_roster.db 03ba7d59a8 quickstart folder 3 周之前
quickstart.ipynb 3c23112ed2 fixing github web rendering of the notebook 2 周之前
requirements.txt 03ba7d59a8 quickstart folder 3 周之前
txt2csv.py 03ba7d59a8 quickstart folder 3 周之前

README.md

Quickstart with Text2SQL

The scripts and notebook in this folder let you get familiar with how to interact with a database using natural language inputs by asking Llama to convert natural language queries into SQL queries.

For detailed instructions on setting up the environment, creating a database, and executing natural language queries using the Text2SQL interface, please refer to the quickstart.ipynb notebook.

Structure:

  • quickstart.ipynb: A Quick Demo of Text2SQL Using Llama 3.3. This Jupyter Notebook includes examples of how to use the interface to execute natural language queries on the sample data. It uses Llama 3.3 to answer questions about a SQLite database using LangChain and the Llama cloud provider Together.ai.
  • nba.txt: A text file containing NBA roster information, which is used as sample data for demonstration purposes.
  • txt2csv.py: A script that converts text data into a CSV format. This script is used to preprocess the input data before it is fed into csv2db.py.
  • csv2db.py: A script that imports data from a CSV file into a SQLite database. This script is used to populate the database with sample data.
  • nba_roster.db: A SQLite database file created from the nba.txt data, used to test the Text2SQL interface.