{"id":26577919,"url":"https://github.com/laolarou726/text_2_sql_demo","last_synced_at":"2026-02-16T00:32:22.731Z","repository":{"id":283919286,"uuid":"953291742","full_name":"laolarou726/Text_2_SQL_Demo","owner":"laolarou726","description":"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.","archived":false,"fork":false,"pushed_at":"2025-04-08T03:50:48.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T04:28:26.717Z","etag":null,"topics":["agent","database","langchain","llm","python","sqlite","text2sql"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/laolarou726.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-23T02:20:19.000Z","updated_at":"2025-04-08T03:50:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"88710273-0942-4bcd-a9c4-d83baf9cfc3f","html_url":"https://github.com/laolarou726/Text_2_SQL_Demo","commit_stats":null,"previous_names":["laolarou726/text_2_sql_demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/laolarou726/Text_2_SQL_Demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laolarou726%2FText_2_SQL_Demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laolarou726%2FText_2_SQL_Demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laolarou726%2FText_2_SQL_Demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laolarou726%2FText_2_SQL_Demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laolarou726","download_url":"https://codeload.github.com/laolarou726/Text_2_SQL_Demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laolarou726%2FText_2_SQL_Demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000659,"owners_count":26082817,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent","database","langchain","llm","python","sqlite","text2sql"],"created_at":"2025-03-23T04:18:02.716Z","updated_at":"2025-10-08T20:24:01.613Z","avatar_url":"https://github.com/laolarou726.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RAG DEMO\n\n![GitHub](https://img.shields.io/github/license/laolarou726/Text_2_SQL_Demo?logo=github\u0026style=for-the-badge)\n![Maintenance](https://img.shields.io/maintenance/yes/2025?logo=diaspora\u0026style=for-the-badge)\n![GitHub commit activity](https://img.shields.io/github/commit-activity/m/laolarou726/Text_2_SQL_Demo?style=for-the-badge)\n![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed/laolarou726/Text_2_SQL_Demo?logo=github\u0026style=for-the-badge)\n![GitHub repo size](https://img.shields.io/github/repo-size/laolarou726/Text_2_SQL_Demo?logo=github\u0026style=for-the-badge)\n\nThis 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.\n\n## Before Start\n\nFirst, make a copy of `.env.sample` and rename it to `.env`, and change any fields that need to be changed\n\nThen:\n\n1. Download `Chinook Database` from [here](https://database.guide/2-sample-databases-sqlite/).\n   1. Change the connection string in the `.env` file.\n2. Setup the `Ollama` for the document tokenization and interaction\n   1. See [Setup - OllamaEmbeddings](https://python.langchain.com/docs/integrations/text_embedding/ollama/)\n   2. See [Ollama](https://ollama.com/)\n3. Get your LangSmith API Key from [here](https://smith.langchain.com/hub).\n\n## Start the demo\n\nRun `python main.py` and type anything you want to ask the RAG system\n\n## Screenshots\n\n![image](https://github.com/user-attachments/assets/73a21efa-5502-465a-b890-16f4523b1504)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaolarou726%2Ftext_2_sql_demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaolarou726%2Ftext_2_sql_demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaolarou726%2Ftext_2_sql_demo/lists"}