{"id":17776355,"url":"https://github.com/aysenurcftc/langchainsqlagent","last_synced_at":"2026-02-09T11:06:53.397Z","repository":{"id":259482899,"uuid":"876823752","full_name":"aysenurcftc/LangChainSQLAgent","owner":"aysenurcftc","description":"This project enables performing SQL queries in natural language using LangChain and Streamlit.","archived":false,"fork":false,"pushed_at":"2024-11-25T14:17:01.000Z","size":188,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-13T10:44:07.941Z","etag":null,"topics":["faiss-vector-database","langchain","postgresql","sql-agent","streamlit"],"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/aysenurcftc.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}},"created_at":"2024-10-22T16:02:28.000Z","updated_at":"2024-11-25T14:17:05.000Z","dependencies_parsed_at":"2024-11-25T15:36:29.172Z","dependency_job_id":null,"html_url":"https://github.com/aysenurcftc/LangChainSQLAgent","commit_stats":{"total_commits":13,"total_committers":2,"mean_commits":6.5,"dds":0.3846153846153846,"last_synced_commit":"8c8eabba06db7bfadbadf4367b5f44a05cbb80ef"},"previous_names":["aysenurcftc/sqlagent"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aysenurcftc/LangChainSQLAgent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aysenurcftc%2FLangChainSQLAgent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aysenurcftc%2FLangChainSQLAgent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aysenurcftc%2FLangChainSQLAgent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aysenurcftc%2FLangChainSQLAgent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aysenurcftc","download_url":"https://codeload.github.com/aysenurcftc/LangChainSQLAgent/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aysenurcftc%2FLangChainSQLAgent/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268361144,"owners_count":24238386,"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-08-02T02:00:12.353Z","response_time":74,"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":["faiss-vector-database","langchain","postgresql","sql-agent","streamlit"],"created_at":"2024-10-26T22:05:15.734Z","updated_at":"2026-02-09T11:06:53.312Z","avatar_url":"https://github.com/aysenurcftc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# LangChain SQL Agent \n\n\n![agent_sql](https://github.com/aysenurcftc/LangChainSQLAgent/blob/main/sql_agent.png)\n\nThis project is a system that connects to a PostgreSQL database and runs AI-powered SQL queries. It uses LangChain and FAISS to convert database content into vector format and generate SQL queries based on natural language questions. This makes data retrieval from the database faster and more accurate. The project also features a user-friendly interface with Streamlit.\n\n![agen](https://github.com/aysenurcftc/LangChainSQLAgent/blob/main/agent.png)\n\n\n## Environment Variables\n\n\n`OPENAI_API_KEY=`\n\n`LANGCHAIN_API_KEY=`\n\n`DB_USER=`\n\n`DB_PASSWORD=`\n\n`DB_HOST=`\n\n`DB_PORT=`\n\n`DB_NAME=`\n\n## Run Locally\n\nClone the project\n\n```bash\n git clone https://github.com/aysenurcftc/LangChainSQLAgent.git\n```\n\nGo to the project directory\n\n```bash\n  cd LangChainSQLAgent\n```\n\nInstall dependencies\n\n```bash\n    pipenv install\n```\n\nStart the project\n\n```bash\n   streamlit run python main.py\n\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faysenurcftc%2Flangchainsqlagent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faysenurcftc%2Flangchainsqlagent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faysenurcftc%2Flangchainsqlagent/lists"}