Build an AI chatbot with Python
Key Takeaways
Building an AI chatbot with Python using Large Language Models (LLMs), LangChain, and LangGraph
Full Transcript
hey this is Kevin I'll make this quick I just launched a brand new course called build an AI chatbot with python in this course you'll create your first AI app in 60 minutes using Lang chain and Lang graph in this video I'll tell you about Lang chain and Lang graph as well as how you can access llms for free via API if you like what you hear please check out the course it's only $9 and the link is in the description below thanks in this course you'll build a custom chat bot using an llm Lang chain and Lang graph let me explain each of these terms llm is short for large language model you've almost certainly used an llm like GPT 4 Gemini Llama Or Claude probably through a chat-based interface these models are known as Foundation models because they are very large scale and serve as the foundation for a wide variety of Downstream tasks they're trained on vast data sets and designed to be general purpose meaning they can be used as is or adapted for specific applications Lang chain is a framework for developing applications powered by llms for example if you wanted to build a custom customer service spot for your company on top of GPT 4 you could use Lang chain Lang graph is an extension of Lang chain that allows you to build more complex workflows for your application you can build complex workflows using Lang chain alone but adding on Lang graph makes certain aspects of app development way easier which is why we're going to use both in this course Lang chain and Lang graph are both free open-source python libraries their development and direction are Guided by a four profit company called Lang chain which also offers some paid features for debugging and deployment our use of Lang chain and Lang graph will be 100% free and and there are also some llms that you can use for free as I said we'll be building an app on top of an llm using Lang chain and Lang graph one of the benefits of the Lang chain framework is that you can use any llm you want we'll be writing code to tell Lang chain and Lang graph what to do and it will communicate with the llm of your choice using API requests most llm options are paid but a few options are free if you have a credit card and can afford spending a few dollars I recommend using a model from open AI who are the makers of chat GPT at the moment I'd recommend using GPT 40 mini which is fast cheap and high quality pricing is based on the number of input and output tokens you use GPT 40 mini currently costs 15 cents per million input tokens plus 60 cents per million output tokens using open ai's tokenizer we can see how tokens are used to represent words by copying and pasting this text we can see that most words and punctuation marks become their own tokens whereas some words like tokenization and open AI are split into multiple tokens for fun we can see the IDS of each token anyway the point is that you'll be charged based on how many tokens you send to the model and how many tokens it sends back if you don't have a credit card or you don't want to spend anything this page has free options my current recommendation from here is Mistral law platform because it's completely free and has very high token limits the main downside is that they're allowed to use any data you send to them to improve their model in other words your data does not remain private to you also their free plan is a bit slower than GPT 40 mini and the results aren't quite as good but that is fine while you're learning once you need your data to be private you can switch to a paid option and by then you'll have a good understanding of how many tokens you're using so you can estimate the cost of switching to a paid model if you like what you hear please check out the course it's only $9 and the link is in the description below thanks
Original Description
Watch the first two lessons of my new course, Build an AI chatbot with Python ($9): https://courses.dataschool.io/build-an-ai-chatbot-with-python
In this video, you'll learn:
- What is a Large Language Model (LLM)?
- How are LangChain and LangGraph used to build AI apps?
- What are my recommendations for free and cheap LLMs?
Resources:
LangChain: https://python.langchain.com/docs/introduction/
LangGraph: https://langchain-ai.github.io/langgraph/
OpenAI API pricing: https://openai.com/api/pricing/
OpenAI tokenizer: https://platform.openai.com/tokenizer
Free LLM API resources: https://github.com/cheahjs/free-llm-api-resources
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Data School · Data School · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Setting up Git and GitHub
Data School
Navigating a GitHub Repository - Part 1
Data School
Forking a GitHub Repository
Data School
Creating a New GitHub Repository
Data School
Copying a GitHub Repository to Your Local Computer
Data School
Committing Changes in Git and Pushing to a GitHub Repository
Data School
Syncing Your GitHub Fork
Data School
Allstate Purchase Prediction Challenge on Kaggle
Data School
Troubleshooting: Updates Rejected When Pushing to GitHub
Data School
Hands-on dplyr tutorial for faster data manipulation in R
Data School
ROC Curves and Area Under the Curve (AUC) Explained
Data School
Going deeper with dplyr: New features in 0.3 and 0.4 (tutorial)
Data School
What is machine learning, and how does it work?
Data School
Setting up Python for machine learning: scikit-learn and Jupyter Notebook
Data School
Getting started in scikit-learn with the famous iris dataset
Data School
Training a machine learning model with scikit-learn
Data School
Comparing machine learning models in scikit-learn
Data School
Data science in Python: pandas, seaborn, scikit-learn
Data School
Selecting the best model in scikit-learn using cross-validation
Data School
How to find the best model parameters in scikit-learn
Data School
How to evaluate a classifier in scikit-learn
Data School
What is pandas? (Introduction to the Q&A series)
Data School
How do I read a tabular data file into pandas?
Data School
How do I select a pandas Series from a DataFrame?
Data School
Why do some pandas commands end with parentheses (and others don't)?
Data School
How do I rename columns in a pandas DataFrame?
Data School
How do I remove columns from a pandas DataFrame?
Data School
How do I sort a pandas DataFrame or a Series?
Data School
How do I filter rows of a pandas DataFrame by column value?
Data School
How do I apply multiple filter criteria to a pandas DataFrame?
Data School
Your pandas questions answered!
Data School
How do I use the "axis" parameter in pandas?
Data School
How do I use string methods in pandas?
Data School
How do I change the data type of a pandas Series?
Data School
When should I use a "groupby" in pandas?
Data School
How do I explore a pandas Series?
Data School
How do I handle missing values in pandas?
Data School
What do I need to know about the pandas index? (Part 1)
Data School
What do I need to know about the pandas index? (Part 2)
Data School
How do I select multiple rows and columns from a pandas DataFrame?
Data School
Machine Learning with Text in scikit-learn (PyCon 2016)
Data School
When should I use the "inplace" parameter in pandas?
Data School
How do I make my pandas DataFrame smaller and faster?
Data School
How do I use pandas with scikit-learn to create Kaggle submissions?
Data School
More of your pandas questions answered!
Data School
How do I create dummy variables in pandas?
Data School
How do I work with dates and times in pandas?
Data School
How do I find and remove duplicate rows in pandas?
Data School
How do I avoid a SettingWithCopyWarning in pandas?
Data School
How do I change display options in pandas?
Data School
How do I create a pandas DataFrame from another object?
Data School
How do I apply a function to a pandas Series or DataFrame?
Data School
Getting started with machine learning in Python (webcast)
Data School
Q&A about Machine Learning with Text (online course)
Data School
Your pandas questions answered! (webcast)
Data School
Machine Learning with Text in scikit-learn (PyData DC 2016)
Data School
Write Pythonic Code for Better Data Science (webcast)
Data School
Web scraping in Python (Part 1): Getting started
Data School
Web scraping in Python (Part 2): Parsing HTML with Beautiful Soup
Data School
Web scraping in Python (Part 3): Building a dataset
Data School
More on: LLM Foundations
View skill →Related AI Lessons
⚡
⚡
⚡
⚡
Stop Guessing: Guaranteed Structured Output from LLMs in Node.js
Dev.to · Hardik Mehta
Spring AI Tutorial — Your First REST Endpoint with OpenAI (2026)
Dev.to AI
Notes: Memory, Context, and Large Language Models (LLMs)
Dev.to · Vladimir Panov
10 ChatGPT Prompts for Job Seekers: Resumes, Interviews & Career Growth
Medium · ChatGPT
🎓
Tutor Explanation
DeepCamp AI