Skip to content

A LLM agent to interact with your database in human language

Notifications You must be signed in to change notification settings

ayushgupta4002/database-talks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📊 Database Talks

Database Talks is an LLM-powered FastAPI application that lets you interact with your database using natural human language. It translates user queries to SQL, validates them, executes them on a connected database, and returns results in a human-readable format.


Blog Link : https://medium.com/@ayush4002gupta/building-an-llm-agent-to-directly-interact-with-a-database-0c0dd96b8196

🚀 Features

  • 💬 Query your database using plain English.
  • 🧠 Uses LangChain, LangGraph, and Google Gemini (via LangChain).
  • 🛠️ Validates and fixes SQL queries automatically.
  • 📥 Executes SQL queries and presents readable output.
  • 🔌 Easily integrable with any PostgreSQL database.

🛠 Tech Stack


⚙️ Environment Variables

Create a .env file in the root directory:

GOOGLE_API_KEY=your_google_gemini_api_key
DATABASE_URL=your_postgres_connection_string

![image](https://github.com/user-attachments/assets/668d8f4c-0e17-4544-9121-e2092cf4b29d)

About

A LLM agent to interact with your database in human language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published