Skip to content

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