Skip to content

This is a minimal demo project to show the capabilities of a Text2SQL system using LangChain, it contains all the things you required to build a basic RAG system. Using Chinook as the sample database.

License

Notifications You must be signed in to change notification settings

laolarou726/Text_2_SQL_Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RAG DEMO

GitHub Maintenance GitHub commit activity GitHub closed pull requests GitHub repo size

This is a minimal demo project to show the capabilities of a Text2SQL system using LangChain, it contains all the things you required to build a basic RAG system. Using Chinook as the sample database.

Before Start

First, make a copy of .env.sample and rename it to .env, and change any fields that need to be changed

Then:

  1. Download Chinook Database from here.
    1. Change the connection string in the .env file.
  2. Setup the Ollama for the document tokenization and interaction
    1. See Setup - OllamaEmbeddings
    2. See Ollama
  3. Get your LangSmith API Key from here.

Start the demo

Run python main.py and type anything you want to ask the RAG system

Screenshots

image

About

This is a minimal demo project to show the capabilities of a Text2SQL system using LangChain, it contains all the things you required to build a basic RAG system. Using Chinook as the sample database.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages