Тёмный

Build an AI Travel Agent with MariaDB, MindsDB, FastAPI, Next.js, OpenAI + more. Complete TUTORIAL. 

CodingEntrepreneurs
Подписаться 348 тыс.
Просмотров 65 тыс.
50% 1

Thank you to MariaDB + MindsDB for sponsoring this series.
⦿ Code: github.com/codingforentrepren...
⦿ Subscribe: cfe.sh/youtube
⦿ Go Pro: cfe.sh/enroll
⦿ Setup Video for Python 3 & Django 3: • Install & Setup Python...
Services used
⦿ MariaDB: mariadb.me/3RXuYup
⦿ MindsDB: mindsdb.com/
⦿ Gretel: gretel.ai/
⦿ AWS EC2: aws.amazon.com/ec2/
⦿ OpenAI: www.openai.com/
Software used
⦿ MariaDB Docker Image: hub.docker.com/_/mariadb/
⦿ Docker Engine docs.docker.com/engine/
⦿ Python: www.python.org/
⦿ Node.js: nodejs.org/
⦿ FastAPI: fastapi.tiangolo.com/
⦿ Next.js: nextjs.org/
⦿ Flowbite: www.flowbite.com/
Chapters
00:00:00 Welcome
00:03:34 Overview
00:07:59 References and Requirements
00:11:05 Provision EC2 Instance
00:16:58 Connect to EC2 Instance via SSH
00:21:11 Install Docker on EC2 Instance
00:23:35 Provision MariaDB with Docker Compose
00:34:04 Connect to EC2-Docker-based MariaDB Instance Locally
00:40:55 Configure Virtual Environment and Jupyter
00:47:54 Loading Dotenv with Python Decouple and Jupyter
00:56:43 Connect to MariaDB via SQLAlchemy
01:03:52 Load a Kaggle Dataset to MariaDB
01:15:47 Create MariaDB User for MindsDB
01:23:13 Integrate MariaDB & MindsDB
01:31:31 Creating a Forecasting Model with MindsDB
01:40:39 Predicting Future Values with MindsDB
01:46:37 Load Flight Prices Dataset to MariaDB
01:53:28 Prepare Flight Data for Predictions
02:03:25 MindsDB Predictor for Flight Price Data
02:08:09 More Data Features for Better Predictions
02:17:21 SQLAlchemy Model from Database Table
02:29:26 Pydantic Schema for SQLAlchemy Model
02:34:05 SQLAlchemy Lookup Functions for Model Data
02:39:04 MindsDB SQL Queries via Rest API and Python Part 1
02:47:25 MindsDB SQL Queries via Rest API and Python Part 2
02:59:34 FastAPI Backend App
03:07:32 Why the FastAPI Backend
03:10:16 Create the Next.js Frontend
03:16:56 FastAPI CORS for Nextjs
03:26:26 Integrate MariaDB to FastAPI
03:31:02 Listing Database Data via API View
03:34:32 Detail View and Schema with FastAPI and Pydantic
03:39:32 Listing API Data with Next.js
03:44:37 Styling a Link with Tailwind
03:46:44 Dynamic URL Route Detail Page in Next.js
03:53:03 Next.js Layout & CSS Class
03:58:17 Reusable Next.js Link Component
04:03:09 Backend API Client in Next.js
04:08:38 Handling request errors with swr and Next.js
04:15:05 Nextjs Form sending POST Requests to FastAPI
04:23:43 MindsDB with FastAPI and Nextjs
04:30:23 Generate and Load Airport Data in MariaDB and FastAPI
04:39:36 Airport Dropdown Selector
04:45:32 Handling POST Data with FastAPI and Pydantic
04:50:51 Prevent Duplicate Airports in Next.js
04:57:56 Improve Flight Price Prediction UI
05:06:10 TailwindCSS Global Styles
05:14:16 Form Styling with Flowbite References
05:21:38 Prediction Results UI Table
05:35:36 Integrate MindsDB with OpenAI to Make Flight Recommendations
05:45:39 OpenAI Recommendation Response in UI
05:56:28 Unique Request ID for Forecasts
05:59:24 Recommendation Display
06:05:47 Purchase Links
06:10:08 Starting to Handle New Data
06:11:51 Export Data and Train a Gretel Model
06:16:49 Load Gretel Data to MariaDB via Pandas
06:31:52 Train MindsDB Forecast Model via Jupyter
06:43:07 Final Clean Up
06:45:04 Thank you and your next challenge

Опубликовано:

 

1 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 51   
@CodingEntrepreneurs
@CodingEntrepreneurs 9 месяцев назад
Thanks for watching. A few references for you: Code: github.com/codingforentrepreneurs/ai-travel-agent Chapters 00:00:00 Welcome 00:03:34 Overview 00:07:59 References and Requirements 00:11:05 Provision EC2 Instance 00:16:58 Connect to EC2 Instance via SSH 00:21:11 Install Docker on EC2 Instance 00:23:35 Provision MariaDB with Docker Compose 00:34:04 Connect to EC2-Docker-based MariaDB Instance Locally 00:40:55 Configure Virtual Environment and Jupyter 00:47:54 Loading Dotenv with Python Decouple and Jupyter 00:56:43 Connect to MariaDB via SQLAlchemy 01:03:52 Load a Kaggle Dataset to MariaDB 01:15:47 Create MariaDB User for MindsDB 01:23:13 Integrate MariaDB & MindsDB 01:31:31 Creating a Forecasting Model with MindsDB 01:40:39 Predicting Future Values with MindsDB 01:46:37 Load Flight Prices Dataset to MariaDB 01:53:28 Prepare Flight Data for Predictions 02:03:25 MindsDB Predictor for Flight Price Data 02:08:09 More Data Features for Better Predictions 02:17:21 SQLAlchemy Model from Database Table 02:29:26 Pydantic Schema for SQLAlchemy Model 02:34:05 SQLAlchemy Lookup Functions for Model Data 02:39:04 MindsDB SQL Queries via Rest API and Python Part 1 02:47:25 MindsDB SQL Queries via Rest API and Python Part 2 02:59:34 FastAPI Backend App 03:07:32 Why the FastAPI Backend 03:10:16 Create the Next.js Frontend 03:16:56 FastAPI CORS for Nextjs 03:26:26 Integrate MariaDB to FastAPI 03:31:02 Listing Database Data via API View 03:34:32 Detail View and Schema with FastAPI and Pydantic 03:39:32 Listing API Data with Next.js 03:44:37 Styling a Link with Tailwind 03:46:44 Dynamic URL Route Detail Page in Next.js 03:53:03 Next.js Layout & CSS Class 03:58:17 Reusable Next.js Link Component 04:03:09 Backend API Client in Next.js 04:08:38 Handling request errors with swr and Next.js 04:15:05 Nextjs Form sending POST Requests to FastAPI 04:23:43 MindsDB with FastAPI and Nextjs 04:30:23 Generate and Load Airport Data in MariaDB and FastAPI 04:39:36 Airport Dropdown Selector 04:45:32 Handling POST Data with FastAPI and Pydantic 04:50:51 Prevent Duplicate Airports in Next.js 04:57:56 Improve Flight Price Prediction UI 05:06:10 TailwindCSS Global Styles 05:14:16 Form Styling with Flowbite References 05:21:38 Prediction Results UI Table 05:35:36 Integrate MindsDB with OpenAI to Make Flight Recommendations 05:45:39 OpenAI Recommendation Response in UI 05:56:28 Unique Request ID for Forecasts 05:59:24 Recommendation Display 06:05:47 Purchase Links 06:10:08 Starting to Handle New Data 06:11:51 Export Data and Train a Gretel Model 06:16:49 Load Gretel Data to MariaDB via Pandas 06:31:52 Train MindsDB Forecast Model via Jupyter 06:43:07 Final Clean Up 06:45:04 Thank you and your next challenge
@VinodKasera-ks6em
@VinodKasera-ks6em 9 месяцев назад
Es
@davidkorn5253
@davidkorn5253 9 месяцев назад
this kind of quality content for free is just mindblowing
@rbano5493
@rbano5493 9 месяцев назад
Appreciable
@Batman-ld7bm
@Batman-ld7bm 3 месяца назад
now it's gotten extremely complex, too many things happening at once. But, thanks a lot, man, for providing exceptionally high quality content for free. That's a game changer. Totally appreciate it, hahaha.
@ryomensukuna9513
@ryomensukuna9513 9 месяцев назад
Thank You, Sir.😍
@TheAremoh
@TheAremoh 9 месяцев назад
This is so cool. Thanks
@CodingEntrepreneurs
@CodingEntrepreneurs 9 месяцев назад
Thank you
@nakicode
@nakicode 9 месяцев назад
Thank you for this beautiful tutorial course
@carthagely122
@carthagely122 9 месяцев назад
Thank you very much
@headlikeahole6548
@headlikeahole6548 9 месяцев назад
Thanks.
@user-gb2io2cb9o
@user-gb2io2cb9o 9 месяцев назад
Awesome thank you! For an app with users logging in, would using DRF instead of Fastapi make it easier for managing users and permissions? Would love DRF+Nextjs+Postgres! Hopefully free instead of paid BaaS if possible for the lil guy.
@Noritoshi-r8m
@Noritoshi-r8m 9 месяцев назад
6 hours of CFE lecture lets goooooooo ☕👨‍💻
@CodingEntrepreneurs
@CodingEntrepreneurs 9 месяцев назад
💯
@dreamlit8500
@dreamlit8500 9 месяцев назад
How would you suggest we demo the final app? How to deploy I mean?
@eprohoda
@eprohoda 9 месяцев назад
Codingentrepreneurs!bonjour. good . :)
@ShourovRoy-pk5zm
@ShourovRoy-pk5zm 9 месяцев назад
Please come with a compete fastapi and graphql video ❤
@joaoarthurbandeira
@joaoarthurbandeira 8 месяцев назад
Hey, can you pleaase do a video on how to integrate DRF with Stripe (so users can put their credit card info once and make payments, say in a marketplace or ecommerce) and how to connect it with NexJs. I've searched a lot and there is no good/up-to-date video anywhere explaining this in details, it would be HUGE!! Thanks!
@mohammedismail6872
@mohammedismail6872 8 месяцев назад
at 54:08 in the env.py file you are having errors in decouple but still the config is running in jupyter notebook. for me its showing a module not found error. how come ?
@jimbo5437
@jimbo5437 3 месяца назад
I do not have "lightwood" installed. Everytime I try to install it there is nothing but issues and it never installs. Any idea whats causing this?
@dgiri2333
@dgiri2333 9 месяцев назад
You can same do using Django and restapi every time shift other skills its takes more time
@drdarbandi48
@drdarbandi48 9 месяцев назад
nice job try to tag along a little bit more with sanctions in middleast for ai subscribtion services
@marito3051
@marito3051 8 месяцев назад
Thanks, can you do a fastapi course like a "Try Django" -> "Try FastApi" 😅
@irfansaeedkhan7242
@irfansaeedkhan7242 5 месяцев назад
wow , your content is next level man
@arunbeckham8384
@arunbeckham8384 8 месяцев назад
Perfecto, gracious. 😊
@unelampeaumilieudestenebres
@unelampeaumilieudestenebres 9 месяцев назад
hi Mr 👍👍👍👍👍
@dreamlit8500
@dreamlit8500 9 месяцев назад
Can we use something besides AWS for this?
@CodingEntrepreneurs
@CodingEntrepreneurs 9 месяцев назад
Yes. Any VM works. The install process is the same, the security features will prob be different.
@seanthomson23
@seanthomson23 Месяц назад
Absolutely loving this! However MindsDB Cloud isn't taking new users currently... Do you have an alternative I could use perhaps? Thanks in advance :) stuck at 01:23:13
@CodingEntrepreneurs
@CodingEntrepreneurs Месяц назад
Thank you! You could try MindsDB docker version. Otherwise maybe contact them directly?
@sunkarayukeshkumar6856
@sunkarayukeshkumar6856 9 месяцев назад
Definitely I will go through it and replicate the same with your help ❤ Thanks in advance 🎉
@mrfran1
@mrfran1 8 месяцев назад
Django + next js?
@dreamlit8500
@dreamlit8500 9 месяцев назад
the price column is missing from the original data set
@dreamlit8500
@dreamlit8500 9 месяцев назад
had to fix it... just added the column to the csv
@jaguarnet
@jaguarnet 9 месяцев назад
Which LLM you are going to use?
@mariadb
@mariadb 9 месяцев назад
OpenAI via MindsDB
@dreamlit8500
@dreamlit8500 9 месяцев назад
How did you get the dataset so small? I have 29k objects to iterate through in mindsdb. It keeps giving me a 40% status error on predictor model creation
@dreamlit8500
@dreamlit8500 9 месяцев назад
I think it is because my dataset is so large
@dreamlit8500
@dreamlit8500 9 месяцев назад
I see what I did, I have to go to the updated dataset and get the one you used.
@dreamlit8500
@dreamlit8500 9 месяцев назад
it works. fixed the status generation error
@CodingEntrepreneurs
@CodingEntrepreneurs 9 месяцев назад
I had to use Dask to take a subset of the original dataset. That’s why I published the smaller one - adding that step isn’t exactly for everyone. Glad you got it sorted.
@dreamlit8500
@dreamlit8500 9 месяцев назад
@@CodingEntrepreneurs thank you.. one day I have to try out dask
@nakicode
@nakicode 9 месяцев назад
I would like to learn FastApi with nosql
@CodingEntrepreneurs
@CodingEntrepreneurs 9 месяцев назад
Which NoSQL? Also why NoSQL aka Not Only SQL?
@dreamlit8500
@dreamlit8500 9 месяцев назад
MACOs tells me to get docker desktop to run docker
@CodingEntrepreneurs
@CodingEntrepreneurs 9 месяцев назад
Locally yes, check out my Try Docker series on my channel. New vid dropped today solves this
@drdarbandi48
@drdarbandi48 9 месяцев назад
تعداد کم کیفیت بالا 😍
Далее
OpenAI Embeddings and Vector Databases Crash Course
18:41
Why You NEED To Learn FastAPI | Hands On Project
21:15
Просмотров 156 тыс.
кукинг с Даниилом 🥸
01:00
Просмотров 2,2 млн
Как пронести Конфеты В ТЮРЬМУ
19:16
Документы для озокомления😂
00:24
You don't need a frontend framework
15:45
Просмотров 117 тыс.
DJANGO VS REACT: KNOW THE DIFFERENCE
3:18
Просмотров 1,5 тыс.
10 common mistakes with the Next.js App Router
20:37
Просмотров 197 тыс.
When RESTful architecture isn't enough...
21:02
Просмотров 261 тыс.
4 Tips for Building a Production-Ready FastAPI Backend
27:02
The cloud is over-engineered and overpriced (no music)
14:39
кукинг с Даниилом 🥸
01:00
Просмотров 2,2 млн