TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Member-only story

GENERATIVE AI

Business Analytics with LangChain and LLMs

A step-by-step tutorial on querying SQL databases with human language

Naser Tamimi
TDS Archive
Published in
7 min readDec 19, 2023

--

Image by the author (generated via Midjourney)

Many businesses have a lot of proprietary data stored in their databases. If there’s a virtual agent that understands human language and can query these databases, it opens up big opportunities for these businesses. Think of customer service chatbots, they’re a common example. These agents can take customer requests, ask the database for information, and give the customer what they need.

The benefit of such agents is not limited to external customer interactions. Many business owners or people in companies, even in tech companies, might not know SQL or similar languages, but they still need to ask the database for information. That’s where frameworks like LangChain come in. Such frameworks make it easy to create these helpful agents/applications. Agents that can talk to humans and at the same time, talk to databases, APIs, and more.

LLM-backed Applications

LangChain is an open-source framework for building interactive applications using Large Language Models (LLMs). It’s a tool that helps LLMs connect with other sources of information and lets them talk to the world around them. One important concept in such frameworks…

--

--

TDS Archive
TDS Archive

Published in TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Naser Tamimi
Naser Tamimi

Written by Naser Tamimi

Data Engineer @ Expedia | Ex-Meta, Ex-Shell

No responses yet