This repository contains multiple labs focused on implementing Text-to-SQL using various tools and techniques. Below are the details for each lab included in this repository.
This lab focuses on implementing Text-to-SQL functionality with different approaches.
lab1_text2sql_implementation/
1.basic_implementation.ipynb
: Jupyter notebook for text-to-sql prompt engineering.2.function_calling(tool_use).ipynb
: Jupyter notebook for text-to-sql workflow design using Tool Use.
This lab focuses on how to prepare DB schema documents for Text-to-SQL.
lab2_text2sql_schema_preparation/
1.sample_queries.ipynb
: Jupyter notebook for preparing the sample query documents.2.detailed_schema.ipynb
: Jupyter notebook for preparing the detailed schema documents.
In this lab, you will create a Text-to-SQL application.
lab3_text2sql_app/
1.setup-streamlit.ipynb
: Jupyter notebook for developing the Text-to-SQL application.demo-app.py
: Sample Application (main)src/...
: Custom libraries for Text2SQL app.
In this lab, you will build a cyclic workflow using LangGraph
lab4_text2sql_langgraph/
1.text2sql_langgraph.ipynb
: Jupyter notebook for developing the Text-to-SQL workflow using LangGraph.
Refer to SETUP.md
for instructions on how to set up the environment and dependencies for running the labs.
cloudformation/
: Directory containing CloudFormation templates for setting up resources.