Skip to content

A system that converts natural language questions into SQL queries, executes them on a PostgreSQL database, and provides structured responses using LangChain and ChatGroq.

Notifications You must be signed in to change notification settings

rohanchanana2/sql-query-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

755ba29 · Jan 14, 2025

History

4 Commits
Jan 14, 2025
Jan 14, 2025
Jan 14, 2025

Repository files navigation

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.

About

A system that converts natural language questions into SQL queries, executes them on a PostgreSQL database, and provides structured responses using LangChain and ChatGroq.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published