Development with Large Language Models Tutorial - OpenAI, Langchain, Agents, Chroma

  Рет қаралды 187,829

freeCodeCamp.org

freeCodeCamp.org

Күн бұрын

Welcome to this course about development with Large Language Models, or LLMs. Throughout this course, you will complete hands-on projects will help you learn how to harness LLMs for your own projects. You will build projects with LLMs that will enable you to create dynamic interfaces, interact with vast amounts of text data, and even empower LLMs with the capability to browse the internet for research papers.
This course was developed by @Luup.ai123
Colab notebook for introduction to the API:colab.research.google.com/dri...
Github : github.com/pythonontheplane12...
Join the Discord: / discord
Twitter : / akshatnon
⭐️ Contents ⭐️
⌨️ (0:00:00) Brief introduction to LLMs
⌨️ (0:11:49) Quick note from the future
⌨️ (0:12:04) Chatgpt playground (skip this is you know this already)
⌨️ (0:18:21) GPT API basics (skip this is you know this already)
⌨️ (0:30:43) Brief intro to chainlit
⌨️ (0:31:33) Cloning chatgpt user interface
⌨️ (0:45:37) Limitations of our interface
⌨️ (0:47:48) Adding streaming, backend view, stop sequence button
⌨️ (0:58:42) Introduction to vector databases
⌨️ (1:04:42) Vector databases hands on
⌨️ (1:12:10) QnA with Documents - .txt and .pdf
⌨️ (1:23:32) Testing out our Q&A system
⌨️ (1:27:22) Introduction to web-browsing and agents
⌨️ (1:32:52) AI researcher
⌨️ (1:42:23) Human as a tool
⌨️ (1:44:44) Mini code interpreter plugin(Replit tool)
⌨️ (1:46:29) Searching youtube using agents
⌨️ (1:49:19) Guide to explore more
⌨️ (1:50:33) Shell Tool
⌨️ (1:55:43) Create your own tools
⌨️ (2:01:19) Ending Notes
🎉 Thanks to our Champion and Sponsor supporters:
👾 davthecoder
👾 jedi-or-sith
👾 南宮千影
👾 Agustín Kussrow
👾 Nattira Maneerat
👾 Heather Wcislo
👾 Serhiy Kalinets
👾 Justin Hual
👾 Otis Morgan
--
Learn to code for free and get a developer job: www.freecodecamp.org
Read hundreds of articles on programming: freecodecamp.org/news

Пікірлер: 108
@Luup.ai123
@Luup.ai123 9 ай бұрын
Hey everyone, Akshath here Had a great time making it this course and I hope you enjoy it 🎊🎊
@sriramchundi3142
@sriramchundi3142 9 ай бұрын
Amazing video. Most simply explained video on the channel. Great work!!!
@KararaJawaab
@KararaJawaab 9 ай бұрын
Thank you so much. God bless you.
@VictorRage
@VictorRage 9 ай бұрын
thank you for dedicating your time to this course
@leandroblanmo
@leandroblanmo 9 ай бұрын
That's such an amazing content, Akshath. Is there any suggestion on how to have a deeper understanding of each step we went through in this video? That's a totally new field for me. Can you share a roadmap to master this subject? I mean, if I study Machine Learning only, will I learn everything from this lesson in depth? Many thanks!
@AdeAulya
@AdeAulya 6 ай бұрын
This is great. Thank you for this explanation. i'll try in google collab if i may.
@Bobcoolyoung
@Bobcoolyoung 9 ай бұрын
This is exactly what I was waiting for.
@jeroenritmeijer7283
@jeroenritmeijer7283 7 ай бұрын
it appears that various libraries have moved on a bit since this was recorded. If you get errors during execution then make sure you replace 'message' with 'message.content' when passing that parameter into a function.
@xu-raytjhin7315
@xu-raytjhin7315 7 ай бұрын
Thank you !
@FatchelPiresGuitar
@FatchelPiresGuitar 9 ай бұрын
Amazing, guys! I'll love a similar video using opensource models!
@nithinbhandari3075
@nithinbhandari3075 9 ай бұрын
Completed this video. Learned chainlit, document q and a by basics of chromadb (most favorite part), basics of vector db, langchain, agents etc. It was nice. The second hour was more interesting. (As first hour was basic stuff that many people may knows).
@AIWithShrey
@AIWithShrey 9 ай бұрын
I'm unsure why we used Chatlit instead of Streamlit, but it works nonetheless. Something very fun to do is to upload your resume and ask the chatbot questions on it. I think this will help the hiring team of an organisation greatly, as it simplifies the job of reviewing resumes and understanding the applicant's abilities. So scaling the document QnA project will be tremendously valuable.
@Luup.ai123
@Luup.ai123 9 ай бұрын
hi yes, thats a fair point as streamlit is more popular. I wanted this series to emphasize giving people an understanding of LLMs and their capabilities so i just chose chainlit because it needed less code to work with lets us only worry about the use of LLMs and agents.
@DANNYEL20122
@DANNYEL20122 8 ай бұрын
@@Luup.ai123 hi please how can i run chainlit using google colab or jupyter notebook?
@mayankkumawat6077
@mayankkumawat6077 8 ай бұрын
My Godddd, the ability to have custom tools for the agent changes everything, so theoretically (I bet, we are going to see some implementations of these pretty soon), we can do everything using natural language, what a time to be alive
@Alice8000
@Alice8000 8 ай бұрын
This is exactly what I was waiting for. Before anyone else.
@navturn
@navturn 9 ай бұрын
Amazing man, I am hooked !
@rewanthnayak2972
@rewanthnayak2972 9 ай бұрын
Thank you for answering my request so quickly
@markceraldi8719
@markceraldi8719 9 ай бұрын
QUESTION: at VERY end of video, the custom tool multiplier decided to return "12" even when the delegated python function had hard-cod overrided to divide "/" instead of "*". The system internally experiences cognitive dissonance "thoughts" -- including the correct answer - then resolves by returning an unqualified 12 due to all the prevailing context suggesting that was the intention, eg some "common sense". I would love to know more about that clash like if there is a term for it. Also this was the most mind expanding tutorial ive ever seen in my life.
@GattuBattu789
@GattuBattu789 9 ай бұрын
Very Informative one
@som4971
@som4971 9 ай бұрын
finally i can understand LLMs thanks fcc
@user-hy2el1pt1r
@user-hy2el1pt1r 9 ай бұрын
Amazing video!
@MariodeFelipe
@MariodeFelipe 4 ай бұрын
Good content and fantastic explanation 🎉
@krox477
@krox477 9 ай бұрын
Wow we already started using LLMs
@louisejin792
@louisejin792 5 ай бұрын
very very helpful ,tks
@peeturpain9379
@peeturpain9379 9 ай бұрын
Thank you for this. I have been assigned a project at our company for document QnA with LLMs and this is exactly what I wanted. Please upload follow up courses as well such as for prompt engineering.
@letssee6813
@letssee6813 9 ай бұрын
Hii @peeturpain9379. i have some doubts regarding your llm project.
@peeturpain9379
@peeturpain9379 9 ай бұрын
@@letssee6813 what do you mean?
@Yogic-ignition
@Yogic-ignition 7 ай бұрын
HI i would love to talk about this, even i have a similar project going on
@peeturpain9379
@peeturpain9379 7 ай бұрын
@@Yogic-ignition sure, lets get in touch
@tjhorton
@tjhorton 9 ай бұрын
Correction: Think of parameters as WEIGHTS (between neurons) not as NEURONS.
@Galmion
@Galmion 9 ай бұрын
when the trainer includes the API key in the main file lmao
@RedCloudServices
@RedCloudServices 6 ай бұрын
thanks for the video lesson. the new OpenAI retrieval Assistant abstracts all of these steps so was wondering if Chainlit can be configured with the new Assistant API?
@akshayugale5785
@akshayugale5785 8 ай бұрын
Hi @Luup.ai123 , Nice vide. Can you also make a video on RLHF or share some resource on it ? Like how to introduce this concept to your model.
@conradcaldeira7131
@conradcaldeira7131 9 ай бұрын
heyyy there, have always enjoyed your vids......could you provide a tutorial for creating a LLM from scratch on windows without GPU
@vibuvignesh7359
@vibuvignesh7359 9 ай бұрын
I am getting an error 13 permission denied error. How do I fix it?
@bidhanchandrosana
@bidhanchandrosana 9 ай бұрын
Good
@SYEDHASSANASLAMBE-CSE
@SYEDHASSANASLAMBE-CSE 9 ай бұрын
Sir please post about tts model vedio
@shivanshugautam1381
@shivanshugautam1381 9 ай бұрын
Hi, I am working with document QA project but I am bit confused about what will be the actual chunk size for better semantic search results. And I am using milvus to store my embeddings. I am having large pdfs.
@abdulrehmanbaber2104
@abdulrehmanbaber2104 8 ай бұрын
try different chunk sizes, they are made only because the context window of llms are short.
@Yogic-ignition
@Yogic-ignition 7 ай бұрын
i am facing permission denied error after uploading the file. On the Temp folder. Any idea how to solve this
@powerball200
@powerball200 8 ай бұрын
Do i need to know any prior skills to learn langchain? Like what coding language, web dev etc?
@Robo-fg3pq
@Robo-fg3pq 7 ай бұрын
When should we use langchain tools vs openai function calling?
@user-jz6ks5wp2c
@user-jz6ks5wp2c 9 ай бұрын
can you help me for i build simulink model for this Dataset "Activity Human by smartphone"
@csowm5je
@csowm5je 8 ай бұрын
Thanks for tutorial. All developers moved to mac? 1:25 windows machine errno13 permission denied. got it to work with wsl.
@nicholaslim2913
@nicholaslim2913 9 ай бұрын
I keep getting the error No module named 'chromadb'
@manh9105
@manh9105 9 ай бұрын
don't see GPT-4 option in the free version of playground model? has open ai team removed it ?
@Luup.ai123
@Luup.ai123 9 ай бұрын
I dont think GPT-4 is available to non premium users. Bit of an oversight on my part using it as it as chatgpt premium is definetly not necessary for this course. The API is available to non premium subscribers as well as it works on a standard per use pricing model.
@manh9105
@manh9105 9 ай бұрын
few questions Akshat. Who owns the data trained by us. If its Open AI ? aren't we making it more powerful basically like a Frankenstein
@kingslyroche
@kingslyroche 9 ай бұрын
API and Playground requests will not be used to train our models.
@Luup.ai123
@Luup.ai123 9 ай бұрын
Hi, Akshath here. We dont specifically "train" it, we just do a retreival augmented search so technically chroma db is where all of this information is stored. Given that chroma is open source and the python package runs on our machinne locally, noone has access to the embeddings but us. Additionally OpenAI claims that it doesn't use any of our data to train their models. big emphasis on the word "claims".
@user-qk2ld3zm4r
@user-qk2ld3zm4r 9 ай бұрын
Are we supposed to buy or pay credits for access to chatgpt playground?
@c_54_spoorthi21
@c_54_spoorthi21 8 ай бұрын
can you make a tutorial to do the same with llama 2 model
@muhammadaamir321
@muhammadaamir321 9 ай бұрын
Kindly upload prompt engineering course
@rashedulkabir6227
@rashedulkabir6227 9 ай бұрын
Prompt Engineering is not coding.
@furkantyagi3261
@furkantyagi3261 9 ай бұрын
please made a video on tekla structure
@KennethMak
@KennethMak 8 ай бұрын
From buildspace 👋
@wilonweb
@wilonweb 6 ай бұрын
We have to get a GPT4 prenium account to do that ?
@yaroslav8717
@yaroslav8717 6 ай бұрын
Does it still make sense to go through his video after Assistants API release?
@AB-kq9xm
@AB-kq9xm 4 ай бұрын
no
@amansaxena4827
@amansaxena4827 9 ай бұрын
👍
@WHAT-gm1xm
@WHAT-gm1xm 9 ай бұрын
Learning hacking course actually can hack anything in technical field
@kamalkamals
@kamalkamals 8 ай бұрын
Hope to make the same with langchain js not just langchain python
@wilonweb
@wilonweb 6 ай бұрын
You do that ?
@Ruthrap-dm1ki
@Ruthrap-dm1ki 13 күн бұрын
this coding not support for windows is it?? if any another alternative code is available , let me know
@amalvijay8222
@amalvijay8222 9 ай бұрын
Rate limit exceeded for API key.. someone help me with this
@ilianos
@ilianos 9 ай бұрын
If you've used gpt-4: there's a limit of requests per time allowed You can have a look into your settings when you log into your openai account. There you might have set a manual limit.
@agastyareddy5489
@agastyareddy5489 9 ай бұрын
Ily
@shubhrai3027
@shubhrai3027 8 ай бұрын
can someone tell me if there's any free alternative of the OpenAi API ?......bcoz no GPT 4...and even GPT-3 is limited time , credit ....please.....thanks
@41cata
@41cata 9 ай бұрын
Does anyone have similar videos that use C++ or a different language instead?
@MMABeijing
@MMABeijing 9 ай бұрын
python is easier than C++ ( a language that is not used in data science or AI). why would you need C++, if I may ask?
@Abraham_doestech
@Abraham_doestech 9 ай бұрын
@@MMABeijing python may be easier than C++ to pick up but it is used in AI too. Especially for faster computations, ie: things like Pytorch and other Cuda directives have code in c++ not just in c as in the case of CPython etc etc. But yes not many people here will be using anything other than Python because of the ease of implementation
@MMABeijing
@MMABeijing 9 ай бұрын
@@Abraham_doestech First I want to say that there is a C++ library to interact with Openai. Second: although I know the advantages of CPP, or rust, I am curious as to why @Majesticaln would want to use them to interact with OpenAi "infrastructure". There are fields where web assembly deemed mission critical, and considering that RUst actually has the tighest integration with WASM it makes sense to use it... but what is the use case that would motivate Majestic to want to talk with OpenAI using CPP? Python has a richer community, more help available, and langchain is using it too. It s clear to me that we are at a stage when the speed of integration is crucial, and for that reason I thing going along with python is the way to go. That being said I am interested in hearing other, possibly conflicting, opinions
@duongital
@duongital 9 ай бұрын
sorry for not relating much to the topic, what is the chrome extension for pets running?
@abelgalindo1458
@abelgalindo1458 5 ай бұрын
Can someone provide a possible solution for this error? if match := _special_token_regex(disallowed_special).search(text): TypeError: expected string or buffer
@digitalthinkers7760
@digitalthinkers7760 5 ай бұрын
Issue: 1st param type is expected to be string or buffer in acall function. Resolution: So, you need to update the param to message.content. res = await chain.acall(message.content, callbacks=[cb]).
@dovatmotos5223
@dovatmotos5223 9 ай бұрын
hello everyone! PermissionError: [Errno 13] Permission denied: 'C:\\Users\\Usuario\\AppData\\Local\\Temp\\tmpjf7ckm9u' can somone tell me how to fix this problem when i import the pdf to the app?! thanks!
@raphaelmarietan9322
@raphaelmarietan9322 9 ай бұрын
Replace `with tempfile.NamedTemporaryFile() as tempfile` with `with tempfile.NamedTemporaryFile(delete=False) as tempfile`, since you don't want the temporary processed file you create to be deleted once closed.
@nicholaslim2913
@nicholaslim2913 9 ай бұрын
Thank you!@@raphaelmarietan9322
@salimnegan7289
@salimnegan7289 9 ай бұрын
thank's, got same problem@@raphaelmarietan9322
@jpw2184
@jpw2184 8 ай бұрын
This should be pinned@@raphaelmarietan9322
@gainmuscle
@gainmuscle 8 ай бұрын
javascript version anytime soon?
@LordPBA
@LordPBA 2 ай бұрын
19:15 why there is a cat walking on the screen?
@bonkers_dave
@bonkers_dave 6 ай бұрын
immediately stuck at playground UI, which does not look anything like the video, and coming into this cold, I have to go find some other resource or training to understand the playground UI.
@yaroslav8717
@yaroslav8717 6 ай бұрын
just change to Chat from Assistants next to Playground logo
@user-rk4ux3cj8q
@user-rk4ux3cj8q 8 ай бұрын
1:41:27
@ricardoandreom
@ricardoandreom Ай бұрын
Do we need a chat gpt paid subscription to follow this tutorial?
@KGnanaVarshita
@KGnanaVarshita 9 ай бұрын
Do we need chat gpt subscription to complete this tutorial
@Luup.ai123
@Luup.ai123 9 ай бұрын
nope, you only need an api key
@midprogramming
@midprogramming 8 ай бұрын
Is there any reason why you used assistant over system when giving a personality?
@techtechweekly
@techtechweekly 6 ай бұрын
18:30
@NarutoHugsMikasa
@NarutoHugsMikasa 9 ай бұрын
First !
@41cata
@41cata 9 ай бұрын
day1 - 34:44 day2 -
@yaroslav8717
@yaroslav8717 6 ай бұрын
Hard to follow the course, and not really a detailed explanation. But anyway thank you!
@legosupermangustavo
@legosupermangustavo 9 ай бұрын
1st 😅
@donelkingii3738
@donelkingii3738 9 ай бұрын
Can you make it without the ethical blockers? Tired of the "That us illegal" blah blah etc.
@shreyasaravanan7720
@shreyasaravanan7720 5 ай бұрын
100th comment
@entertainmentarc6466
@entertainmentarc6466 9 ай бұрын
Pappu , pedda pappu, panikiraani pappu
@arsagor8506
@arsagor8506 9 ай бұрын
First comment plz pin
@MyrLin8
@MyrLin8 3 ай бұрын
Aligning with human values ... not.
@_MrCode
@_MrCode 5 ай бұрын
These are very basics, and only 10 minute of content, but this guy takes 2 hours for extra talking, the main part of chatbot is multi-user conversation ability, which he didn't discussed even.
LangChain Crash Course for Beginners
1:05:30
freeCodeCamp.org
Рет қаралды 141 М.
Generative AI in a Nutshell - how to survive and thrive in the age of AI
17:57
Cat story: from hate to love! 😻 #cat #cute #kitten
00:40
Stocat
Рет қаралды 12 МЛН
[Vowel]물고기는 물에서 살아야 해🐟🤣Fish have to live in the water #funny
00:53
Did you find it?! 🤔✨✍️ #funnyart
00:11
Artistomg
Рет қаралды 120 МЛН
[1hr Talk] Intro to Large Language Models
59:48
Andrej Karpathy
Рет қаралды 1,8 МЛН
Joscha at Microsoft
48:46
Simuli
Рет қаралды 1,2 М.
What is LangChain?
8:08
IBM Technology
Рет қаралды 127 М.
OpenAI Assistants API - Course for Beginners
3:32:55
freeCodeCamp.org
Рет қаралды 193 М.
Learn LangChain.js - Build LLM apps with JavaScript and OpenAI
1:39:27
freeCodeCamp.org
Рет қаралды 73 М.
Learn Git - Full Course for Beginners
3:43:34
freeCodeCamp.org
Рет қаралды 190 М.
LangChain Explained in 13 Minutes | QuickStart Tutorial for Beginners
12:44
Cat story: from hate to love! 😻 #cat #cute #kitten
00:40
Stocat
Рет қаралды 12 МЛН