Skip to content

This project enables performing SQL queries in natural language using LangChain and Streamlit.

License

Notifications You must be signed in to change notification settings

aysenurcftc/LangChainSQLAgent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LangChain SQL Agent

agent_sql

This project is a system that connects to a PostgreSQL database and runs AI-powered SQL queries. It uses LangChain and FAISS to convert database content into vector format and generate SQL queries based on natural language questions. This makes data retrieval from the database faster and more accurate. The project also features a user-friendly interface with Streamlit.

agen

Environment Variables

OPENAI_API_KEY=

LANGCHAIN_API_KEY=

DB_USER=

DB_PASSWORD=

DB_HOST=

DB_PORT=

DB_NAME=

Run Locally

Clone the project

 git clone https://github.com/aysenurcftc/LangChainSQLAgent.git

Go to the project directory

  cd LangChainSQLAgent

Install dependencies

    pipenv install

Start the project

   streamlit run python main.py

About

This project enables performing SQL queries in natural language using LangChain and Streamlit.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages