💬 Chat with SQL
💾 Talk to SQL With LangChain.js 🦜🔗
- 💾This Next.js template shows how to query a SQL database with natural language
- 💡It queries a serverless Neon DB Postgres instance running the Chinook demo database.
- 🎭This sample DB represents a digital media store, including tables for artists, albums, media tracks, invoices, and customers.
- 💻You can find the prompt and model logic for this use-case in
app/api/chat/route.ts
. - 🎨The main frontend logic is found in
app/page.tsx
. - 🐙This template is open source - you can see the source code and deploy your own version from the GitHub repo!
- 👇Try asking e.g.
Who works here?
below!