ChatCSV App: Chat with CSV files using LangChain and Llama 2

  Рет қаралды 18,522

Muhammad Moin

Muhammad Moin

10 ай бұрын

#langchain #llama2 #llama #csv #chatcsv #chatbot #largelanguagemodels #generativeai #generativemodels
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
⭐ Learn LangChain: Build #22 LLM Apps using OpenAI & Llama 2 (13$):
www.udemy.com/course/yolov9-l...
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
In this video 📝 We will be building a chatbot to interact with CSV files using Llama 2 LLM. In this project-based tutorial, we will be using LangChain's framework for developing applications powered by language models.
We will begin by introducing the architecture of this complete project. Then, we will dive into the code and show you how to load and use the Llama 2 model with LangChain to create a chatbot to interact with CSV Files.
If you enjoyed this video, be sure to subscribe and press the 👍 button
🧑🏻‍💻 My AI and Computer Vision Courses⭐:
📙 YOLOv9: Learn Object Detection, Tracking with WebApps (13$):
www.udemy.com/course/yolov9-l...
📕 Learn LangChain: Build #22 LLM Apps using OpenAI & Llama 2 (14$):
www.udemy.com/course/learn-la...
📚 Computer Vision Web Development: YOLOv8 and TensorFlow.js (13$):
www.udemy.com/course/computer...
📕 Learn OpenCV: Build # 30 Apps with OpenCV, YOLOv8 & YOLO-NAS (13$):
www.udemy.com/course/learn-op...
📗 YOLO-NAS, OpenAI, SAM with WebApps using Flask and Streamlit (13$): www.udemy.com/course/yolo-nas...
📘 YOLO-NAS The Ultimate Course for Object Detection & Tracking (13$): www.udemy.com/course/yolo-nas...
📙 YOLOv8: Object Detection, Tracking & Web Apps in Python 2023 (13$) : www.udemy.com/course/yolov8-t...
📚 YOLOv7 YOLOv8 YOLO-NAS: Object Detection, Tracking & Web Apps in Python 2023 (13$): www.udemy.com/course/yolov7-o...
Download the Code Files:
github.com/MuhammadMoinFaisal...
Follow Me:
LinkedIn: / muhammad-moin-7776751a0
GitHub: github.com/MuhammadMoinFaisal
Chat with us on Discord:
► / discord
For Consultation Call:
www.upwork.com/freelancers/~0...

Пікірлер: 48
@muhammadmoinfaisal
@muhammadmoinfaisal 10 ай бұрын
🧑🏻‍💻 My AI and Computer Vision Courses⭐: 📙 YOLOv9: Learn Object Detection, Tracking with WebApps (13$): www.udemy.com/course/yolov9-learn-object-detection-tracking-with-webapps/?couponCode=JUNE13DOLLARS 📕 Learn LangChain: Build #22 LLM Apps using OpenAI & Llama 2 (14$): www.udemy.com/course/learn-langchain-build-12-llm-apps-using-openai-llama-2/?couponCode=JUNE13DOLLARS 📚 Computer Vision Web Development: YOLOv8 and TensorFlow.js (13$): www.udemy.com/course/computer-vision-web-development/?couponCode=JUNE13DOLLARS 📕 Learn OpenCV: Build # 30 Apps with OpenCV, YOLOv8 & YOLO-NAS (13$): www.udemy.com/course/learn-opencv-build-30-apps-with-opencv-yolov8-yolo-nas/?couponCode=JUNE13DOLLARS 📗 YOLO-NAS, OpenAI, SAM with WebApps using Flask and Streamlit (13$): www.udemy.com/course/yolo-nas-object-detection-tracking-web-app-in-python-2023/?couponCode=JUNE13DOLLARS 📘 YOLO-NAS The Ultimate Course for Object Detection & Tracking (13$): www.udemy.com/course/yolo-nas-the-ultimate-course-for-object-detection-tracking/?couponCode=JUNE13DOLLARS 📙 YOLOv8: Object Detection, Tracking & Web Apps in Python 2023 (13$) : www.udemy.com/course/yolov8-the-ultimate-course-for-object-detection-tracking/?couponCode=JUNE13DOLLARS 📚 YOLOv7 YOLOv8 YOLO-NAS: Object Detection, Tracking & Web Apps in Python 2023 (13$): www.udemy.com/course/yolov7-object-detection-tracking-with-web-app-development/?couponCode=JUNE13DOLLARS
@Sparzzzzzzzzzzz
@Sparzzzzzzzzzzz Ай бұрын
This is absolutely amazing. You explain everything so well too. Thanks so much!
@priyaranjanmarathe
@priyaranjanmarathe 4 ай бұрын
Excellent tutorial. Thanks for sharing it with us.
@karunyadevi8377
@karunyadevi8377 9 ай бұрын
TQ sir it's working I feel so happy 🎉
@kunalsoni7681
@kunalsoni7681 9 ай бұрын
Thanks for making these amazing AI tutorials :)
@muhammadmoinfaisal
@muhammadmoinfaisal 9 ай бұрын
Glad you like them!
@amitavroydev
@amitavroydev 5 ай бұрын
This is a great video. Thanks for the amazing explaination. Although some of the code is not relevant with the latest changes to Langchain, but it was easy to fix with GPT :)
@user-bw1uc2fc4v
@user-bw1uc2fc4v 7 ай бұрын
Thanks a lot for this tutorial, but i have a question ,how to imporve (quantize) this model to be more fast in response becuase i want to use it on a big csv files of movies (30MB) and it takes a lot of time to answer ?
@andyd170
@andyd170 10 ай бұрын
Great work!
@muhammadmoinfaisal
@muhammadmoinfaisal 10 ай бұрын
Thanks!
@dharmaraj7411
@dharmaraj7411 7 ай бұрын
this a copy project from AI anytime channel and this project will not work well with CSV which is having more rows and columns
@user-xl9qq6ff6h
@user-xl9qq6ff6h 8 ай бұрын
Good walk through in general terms of how this might be used in a text search basis, but 30 mins to achieve: select Happiness from table where country = "Finland"; feels like we're missing the point of what these tools can do. I'm not certain it would have been able to handle something like "What is the average happiness of countries in Europe?" or a similar language based question....
@akshatjain6470
@akshatjain6470 9 ай бұрын
how did you create the project? or its only the virtual environment
@jennilthiyam1261
@jennilthiyam1261 7 ай бұрын
Hi Mr. Moin. Thank you so much for this wonderful tutorial. Could you please tell me what would I do if I wanted to run this code in GPU and not CPU?
@joelbhaskarnadar7391
@joelbhaskarnadar7391 10 ай бұрын
SuperB stuff
@muhammadmoinfaisal
@muhammadmoinfaisal 10 ай бұрын
Thanks a ton
@santoshkumar-ok4hr
@santoshkumar-ok4hr 2 ай бұрын
What do we do when multiple CSV's are to be ingested? Thank you
@reassume4826
@reassume4826 8 ай бұрын
it is taking soo long to give response.... 16gb ram ..i7 processor...any suggestions to speed up?
@MrAhsan99
@MrAhsan99 9 ай бұрын
Is context/chat_history preserved in this app?
@matchme3753
@matchme3753 2 ай бұрын
Can we use api toke instade of using it locally ??
@rabihbadr54
@rabihbadr54 10 ай бұрын
Great job
@muhammadmoinfaisal
@muhammadmoinfaisal 10 ай бұрын
Thanks
@kewaljoshi5293
@kewaljoshi5293 8 ай бұрын
Great Tutorial!! But I have a question here. Do we have an alternate for downloading the Embeddings from Hugging Face website and instead have it locally on our system to run the chatbot locally?
@sauravnarayan
@sauravnarayan 3 ай бұрын
same question
@Sarmitha16
@Sarmitha16 10 ай бұрын
When I used the Llama-2 model for 8GB RAM that you mentioned and use a csv of my choice, I get error as Number of tokens (631) exceeded maximum context length (512). How to resolve it?
@saravanajogan1221
@saravanajogan1221 9 ай бұрын
Hey there! reduce your chunk size from 500 to 300 or lesser.
@GiridharReddy-hb5nv
@GiridharReddy-hb5nv 10 ай бұрын
Why not using the CSV_Agent directly from the LangChain Library sir ? Thanks in advance
@muhammadmoinfaisal
@muhammadmoinfaisal 10 ай бұрын
CSV_Agent works good with OpenAI but not with Llama 2
@jennilthiyam1261
@jennilthiyam1261 6 ай бұрын
how can we run this code on GPU?
@Sarmitha16
@Sarmitha16 9 ай бұрын
Pls can u reply When I used the Llama-2 model for 8GB RAM that you mentioned and use a csv of my choice, I get error as Number of tokens (631) exceeded maximum context length (512). How to resolve it? Pls can someone help
@muhammadmoinfaisal
@muhammadmoinfaisal 9 ай бұрын
Hi Sarmitha, the reason you are getting this error because your input data is large, you can change the maximum context length value from 512 to 1024, it will solve your error Thanks
@binayaktv2646
@binayaktv2646 5 ай бұрын
@@muhammadmoinfaisal Its not fixing the issue with both max_new_tokens=1024 , context_length = 1024. can you help me out.
@amalks8676
@amalks8676 4 ай бұрын
@@binayaktv2646 Facing the same issue. I have changed both parameters still showing context length as 512 and throws same error
@memesthatifoundonreddit6432
@memesthatifoundonreddit6432 7 ай бұрын
why my output is taking so long?
@Ramachandran.2912
@Ramachandran.2912 10 ай бұрын
Nice .
@muhammadmoinfaisal
@muhammadmoinfaisal 10 ай бұрын
Thank you! Cheers!
@Ramachandran.2912
@Ramachandran.2912 10 ай бұрын
@@muhammadmoinfaisal so basically the gen ai is dynamic way of showing the content. Very interesting, finding the best use cases
@shrekogre1010
@shrekogre1010 9 ай бұрын
Nice video although the 1983 World Cup was won by India and Kapil Dev was the captain ;-)
@chetann4793
@chetann4793 8 ай бұрын
The chatbot is hallucinating about the 83 world cup.
@TextScribe
@TextScribe 6 ай бұрын
Can't instantiate abstract class BaseLanguageModel with abstract methods agenerate_prompt, apredict, apredict_messages, generate_prompt, predict, predict_messages (type=type_error) this error happens there i did all the thing but didn't resolve
@TextScribe
@TextScribe 6 ай бұрын
please can you reply this
@TextScribe
@TextScribe 6 ай бұрын
also having one question that it's free without limit
@jennilthiyam1261
@jennilthiyam1261 Ай бұрын
nice video, but why are you not replying to anyone's confusion questions? you are replying to only the appreciation comments. What can we do if we have multiple csv files. lots of people are asking this question the comment section.
@lucifer-learning-data
@lucifer-learning-data 4 ай бұрын
1983 world cup was won by India by the way 🤪 at 13:46.
@sunilkumarpradhan.4376
@sunilkumarpradhan.4376 2 ай бұрын
13:00 Who won the 1983 world cup ?
@NileshKumarPandey-vr7pw
@NileshKumarPandey-vr7pw 2 ай бұрын
How to tackle questions like, """ give me Healthy life expectancy of Denmark Norway Iceland Netherlands Switzerland Sweden New Zealand ?"""
@exxprt62
@exxprt62 3 ай бұрын
hi there @muhammadmoinfaisal thanks for the informative video, i was wondering if i can swap out the model for any other GGML type model
Talk to Your Documents, Powered by Llama-Index
17:32
Prompt Engineering
Рет қаралды 79 М.
How to Build Chatbot with Python & Rasa
2:28:05
Parwiz Forogh
Рет қаралды 44 М.
I Can't Believe We Did This...
00:38
Stokes Twins
Рет қаралды 109 МЛН
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 65 МЛН
ОСКАР vs БАДАБУМЧИК БОЙ!  УВЕЗЛИ на СКОРОЙ!
13:45
Бадабумчик
Рет қаралды 6 МЛН
Chat with SQL and Tabular Databases using LLM Agents (DON'T USE RAG!)
58:54
The LangChain Cookbook - Beginner Guide To 7 Essential Concepts
38:11
Greg Kamradt (Data Indy)
Рет қаралды 334 М.
Build a Python Web App to chat with your datasets using GenAI
4:23
Tech at Worldline
Рет қаралды 23 М.
WATERPROOF RATED IP-69🌧️#oppo #oppof27pro#oppoindia
0:10
Fivestar Mobile
Рет қаралды 19 МЛН