Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 1.54 KB

README.md

File metadata and controls

30 lines (20 loc) · 1.54 KB

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