Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rohanchanana2/sql-query-agent
A system that converts natural language questions into SQL queries, executes them on a PostgreSQL database, and provides structured responses using LangChain and ChatGroq.
https://github.com/rohanchanana2/sql-query-agent
groq jupyter-notebook postgresql
Last synced: 20 days ago
JSON representation
A system that converts natural language questions into SQL queries, executes them on a PostgreSQL database, and provides structured responses using LangChain and ChatGroq.
- Host: GitHub
- URL: https://github.com/rohanchanana2/sql-query-agent
- Owner: rohanchanana2
- Created: 2025-01-14T03:40:50.000Z (25 days ago)
- Default Branch: main
- Last Pushed: 2025-01-14T03:46:35.000Z (25 days ago)
- Last Synced: 2025-01-14T04:43:12.535Z (25 days ago)
- Topics: groq, jupyter-notebook, postgresql
- Language: Jupyter Notebook
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LangChain SQL Query Agent with ChatGroq
This project demonstrates the integration of LangChain's SQL utilities and ChatGroq, a language model, to create an intelligent agent that can generate and execute SQL queries based on natural language user inputs. The application interacts with a PostgreSQL database to retrieve and process data.
## Features
- **Natural Language to SQL**: Convert user questions into SQL queries.
- **PostgreSQL Integration**: Execute queries directly on a PostgreSQL database.
- **Flexible LLM Integration**: Leverage the ChatGroq model for structured output and dynamic query generation.
- **State Management**: Maintain the application state for questions, queries, results, and answers.