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
- π¬ 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.
- FastAPI
- LangChain
- LangGraph
- Google Gemini via LangChain
- PostgreSQL
Create a .env
file in the root directory:
GOOGLE_API_KEY=your_google_gemini_api_key
DATABASE_URL=your_postgres_connection_string
