🎯 Key Takeaways for quick navigation: 00:00 📋 *Introduction and Agenda* - Introduction to LangChain and the purpose of the video. - Agenda for the video, focusing on practical orientation and end-to-end projects. 02:46 🛠️ *Environment Setup and API Key* - Setting up a virtual environment (VENV) for the project. - Obtaining and handling the OpenAI API key. - Installing necessary libraries. 08:35 🧠 *Understanding Temperature in Language Models* - Explanation of the temperature parameter in language models. - How temperature affects model output creativity. 16:12 🤖 *Model Prediction and Output* - Demonstrating model prediction with a sample input. - Displaying the output of the language model. 18:30 🤝 *Using Hugging Face Models* - Installing the Hugging Face library. - Setting up the Hugging Face API token for accessing open-source models. - Exploring available Hugging Face models for text generation. 21:21 🧩 *Understanding LangChain and Hugging Face Integration* - Learn how to integrate LangChain and Hugging Face for language models. 23:28 📊 *Comparing OpenAI GPT-3.5 and Hugging Face LLM Models* - OpenAI GPT-3.5 provides more detailed responses compared to Hugging Face LLM models. 27:09 🧵 *Working with Prompt Templates in LangChain* - Using prompt templates to structure input for LLN models. 34:12 🔗 *Combining Multiple Chains with Simple Sequential Chain* - How to combine multiple chains using the Simple Sequential Chain approach. 01:07:22 🚀 *Setting Up Basic Application* - Creating a basic application. - Initializing a Streamlit app. - Setting page titles and headers. - Handling user input with a submit button. 01:09:55 🧩 *Capturing User Input and Calling OpenAI Model* - Capturing user input using a text field. - Sending user input to the OpenAI model. - Processing and returning the model's response. - Exploring how the OpenAI model can be customized. 01:13:19 🌐 *Deployment on Hugging Face Spaces* - Deploying the application on Hugging Face Spaces. - Adding secret keys for OpenAI API. - Uploading the application files. - Testing the deployed chatbot in a public space. Made with HARPA AI
Hello Sir, The openAI api and google gemini api both are paid so how a student who wants to include this project in his portfolio bears the cost because they are expensive
Thanks Krish , these video are amazing & because of you it seems like its really possible to quickly learn & leverage open ai llm models . Keep up the good work !!! Cheers !!
Hi, sir. Since you are working with sequential data, may I kindly suggest that you consider creating a video tutorial on implementing Transformers for time series data? This tutorial could cover topics such as forecasting, classification, or anomaly detection. It's not necessary to cover all of them; just one would be sufficient.
it's a great tutorial. just one issue that video title says hugging face hub and video is mostly implemented using openai where we usually get rate limit error in openai api.
i am unable to implement / run part after sequential chain becoz i dont have access to openAI model any alternative for those models cant use opensource models from huggingface in ChatOpenAI please suggest alternet suggestion
I faced ERROR "AttributeError: module 'openai' has no attribute 'Completion' while running llm=OpenAI() after today's update in openai, might be this error is coming. I switched to "openai==v0.28.1" and it worked fine.
I am facing Ratelimt error and found no usage on my OpenAi dashboarad, what may be the possible reason? Please help me if anyone know hot to solve this?
hi Krish! I am getting AttributeError: module 'openai' has no attribute 'error'. while trying to run llm.predict(text). I don't know the issue. tried looking online but couldn't find a soultion. could it possibly a version related issue?
Hello Krish I saw ur langchain video. It was nice & i want to implement it. But i m getting error while running api key. Erro code 429. That my credit is used. I have created new (1st time) in openAi, still i m getting this error. Can u help mein this
What LLM model do you use in the project? I mean is it chatgpt or llama? In the code we dont mention the type of LLM model? Is it gpt4 since we are using OPEN AI? @krish naik
I have this use-case where there are different types of documents. I can parse documents using document loaders using langchain. But, there are images also in these documents. I want to store them as metadata and if answer generated from a context chunk it show the image also. Please help sir
Krish please tell me why I am getting the error from langchain.llms import google_palm import os from dotenv import load_dotenv load_dotenv() TypeError Traceback (most recent call last) Cell In[16], line 1 ----> 1 llm = google_palm(google_api_key=os.environ["GOOGLE_API_KEY"], temperature=0.1) TypeError: 'module' object is not callable
hi Krish, every time when i pass argument in final, getting below error. hipe this will not trouble: "Retrying langchain.chat_models.openai.ChatOpenAI.completion_with_retry.._completion_with_retry in 4.0 seconds as it raised ServiceUnavailableError: The server is overloaded ......."
if i install packages without versions in requirements.txt am getting following error: pip install -r requirements.txt ERROR: Could not find a version that satisfies the requirement lanchain==0.1.7 (from versions: none) ERROR: No matching distribution found for lanchain==0.1.7
Thanks Krish , can you make a video on training lanchain and open ai api with a set of input and output documents so that with a set of new documents it is able to create an output document
Two things here: 1) If the current execution run after multiple successful response yields this error, then wait for a while before you run for next time. The model has a limit of at least 3 responses per request. 2) if you're facing this issue when your existing API key for the model has expired, create a new API key with new mobile and email address. It will help you create a new API key for the model. Hope this helps.
If you don't probably stop using probably so insanely probably incorrectly in ur probable speech, I'll probably unsubscribe despite such probably good content.
Because all the python libraries used in this project are compatible and tested with 3.9 versions, if you want you can update only issue is sometime syntax get change
Not everyone is providing how to finetune llms cause they donot have any idea how it works.They will , not now only in future after copy pasting someone ele's content.
i have made a google form for reasearch study on data science and i want to reach to as many as possible, to collect the study data. if anyone can help me to get in a group or would like to contribute please reply. i'm student so don't worry about the data integrity it's for study!
@@AIMLDLNLP-TECH real data, i need response from data science field from student to employee if you know any group i can give you my number, this project is for my study i want to do data cleaning and analysis on this
Everytime in all your videos you make a virtual env naming venv! I wonder how many venv you have? So for 100 projects if there are 100 venvs won't it be confusing? @KrishNaik
the venv's made here are with -p (path) switch, which tells you not a project specific to that folder. so to activate it you will have to provide the path to that environment. To access this environment globally you have to provide the entire path to that venv which in any case you will know where are going.
🎯 Key Takeaways for quick navigation:
00:00 📋 *Introduction and Agenda*
- Introduction to LangChain and the purpose of the video.
- Agenda for the video, focusing on practical orientation and end-to-end projects.
02:46 🛠️ *Environment Setup and API Key*
- Setting up a virtual environment (VENV) for the project.
- Obtaining and handling the OpenAI API key.
- Installing necessary libraries.
08:35 🧠 *Understanding Temperature in Language Models*
- Explanation of the temperature parameter in language models.
- How temperature affects model output creativity.
16:12 🤖 *Model Prediction and Output*
- Demonstrating model prediction with a sample input.
- Displaying the output of the language model.
18:30 🤝 *Using Hugging Face Models*
- Installing the Hugging Face library.
- Setting up the Hugging Face API token for accessing open-source models.
- Exploring available Hugging Face models for text generation.
21:21 🧩 *Understanding LangChain and Hugging Face Integration*
- Learn how to integrate LangChain and Hugging Face for language models.
23:28 📊 *Comparing OpenAI GPT-3.5 and Hugging Face LLM Models*
- OpenAI GPT-3.5 provides more detailed responses compared to Hugging Face LLM models.
27:09 🧵 *Working with Prompt Templates in LangChain*
- Using prompt templates to structure input for LLN models.
34:12 🔗 *Combining Multiple Chains with Simple Sequential Chain*
- How to combine multiple chains using the Simple Sequential Chain approach.
01:07:22 🚀 *Setting Up Basic Application*
- Creating a basic application.
- Initializing a Streamlit app.
- Setting page titles and headers.
- Handling user input with a submit button.
01:09:55 🧩 *Capturing User Input and Calling OpenAI Model*
- Capturing user input using a text field.
- Sending user input to the OpenAI model.
- Processing and returning the model's response.
- Exploring how the OpenAI model can be customized.
01:13:19 🌐 *Deployment on Hugging Face Spaces*
- Deploying the application on Hugging Face Spaces.
- Adding secret keys for OpenAI API.
- Uploading the application files.
- Testing the deployed chatbot in a public space.
Made with HARPA AI
What a Blessing you are! GOD Bless you exponentially 🎉
Hello Sir,
The openAI api and google gemini api both are paid so how a student who wants to include this project in his portfolio bears the cost because they are expensive
Please try to upload videos on Generative AI more frequently. 😢
What kind of videos you are looking for in Generative AI NLP or computer vision related Farhan ?
Thanks Krish , these video are amazing & because of you it seems like its really possible to quickly learn & leverage open ai llm models . Keep up the good work !!! Cheers !!
I think practical and particular domain related videos will help more, this is very generic
it is a great tutorial without doubt! Please upload more videos like this❤❤
👏🏼
Hi, sir. Since you are working with sequential data, may I kindly suggest that you consider creating a video tutorial on implementing Transformers for time series data? This tutorial could cover topics such as forecasting, classification, or anomaly detection. It's not necessary to cover all of them; just one would be sufficient.
it's a great tutorial. just one issue that video title says hugging face hub and video is mostly implemented using openai where we usually get rate limit error in openai api.
That joke on 3cr package was very subtle :)
Thank you sir for creating this type of projects with langchain
It's my sincere request for you to make a detailed Computer Vision playlist
❤
learning by practice is the best thing ; THANK YOU SIR KRISH
Thanks Krish, Please upload more videos also.
Please make a video about end to end design of a chatbot using gen ai for any website
i am unable to implement / run part after sequential chain becoz i dont have access to openAI model
any alternative for those models
cant use opensource models from huggingface in ChatOpenAI
please suggest alternet suggestion
Amazing tutorial.. thank you krish .. you are great.. love you ..
I faced ERROR "AttributeError: module 'openai' has no attribute 'Completion' while running llm=OpenAI()
after today's update in openai, might be this error is coming.
I switched to "openai==v0.28.1" and it worked fine.
yes, it's the latest openai version that's the issue
I have downgraded openai to v0.28.1, still I am facing the issue.
how u resolved it my mind is
fucked up@@vmajay007
I still get the same error. what is the langchain version you've tried?
Thank you Krish sir for such an informative video!
I am facing Ratelimt error and found no usage on my OpenAi dashboarad, what may be the possible reason? Please help me if anyone know hot to solve this?
Thanks very much needed resource.
I will probably like this video
hi Krish! I am getting AttributeError: module 'openai' has no attribute 'error'. while trying to run llm.predict(text). I don't know the issue. tried looking online but couldn't find a soultion. could it possibly a version related issue?
I am facing the same issue.. any solution to this? Please help
@@atharvpingle6937yes.. i changed my file's name from lanchain.ipynb to something else. That fixed the issue..
Super excited for this series
Are you a data scientist Aditya?
very informative video..can we implement embeddings when we use gpt-3.5-turbo model?
Sir I have a douby while using API keys , I get rate limit error
Good explanation Sir...
Please, Can you elaborate how to do deployment using cli as well especially in huggingface?
Is necessary to buy credits to use it? In other video I got the message " insufficient quota" .
Did you get the solution?
Hello Krish
I saw ur langchain video.
It was nice & i want to implement it.
But i m getting error while running api key.
Erro code 429.
That my credit is used.
I have created new (1st time) in openAi, still i m getting this error.
Can u help mein this
You are correct! I was thinking the capital of Austrailia is Melbourne! LOL!
What LLM model do you use in the project? I mean is it chatgpt or llama? In the code we dont mention the type of LLM model? Is it gpt4 since we are using OPEN AI?
@krish naik
Great Sir❤
Great tutorial
I have this use-case where there are different types of documents. I can parse documents using document loaders using langchain. But, there are images also in these documents. I want to store them as metadata and if answer generated from a context chunk it show the image also. Please help sir
Hey, Krsih make some videos on AutoGen to, BTW awesome job.
why when I try pip install, it shows "Defaulting to user installation because normal site-packages is not writeable"
Why are people always begging for more? I always see these comments below krish's videos.
Installing IPI kernal required only 1 time for Jupitar Notebook as we are installing out of environment?
I have tried everything i could but still getting this error:
ImportError: Can't connect to HTTPS URL because the SSL module is not available.
Hi Krish, Can you please share what's in the .env file.
It worked completely fine and ven openeed the streamlit webpage, but nothing is shown
Krish please tell me why I am getting the error
from langchain.llms import google_palm
import os
from dotenv import load_dotenv
load_dotenv()
TypeError Traceback (most recent call last)
Cell In[16], line 1
----> 1 llm = google_palm(google_api_key=os.environ["GOOGLE_API_KEY"], temperature=0.1)
TypeError: 'module' object is not callable
I like how he keeps dangling the API key infront of us 😂
why there are so many ways to run llm im confuse with them like when to use when like there is predict, call, invoke, generate
what kind of token I should create in the hugging face
Hi Sir, you have a video where you teach how to query a PDF. Is it possible to query, at the same .py my PDF and gpt-4, for example? Tks a lot
how should i solve the rate limit errror
hey krish, can u try to integrate sql in to your projects
Can you specify what do you need ? ETL or langchain with ur own data ??
@@AIMLDLNLP-TECH store and retrieve data in project pipeline
will it be safe to use llm when your main concern is privacy can i use it with my important data
hi Krish, every time when i pass argument in final, getting below error. hipe this will not trouble:
"Retrying langchain.chat_models.openai.ChatOpenAI.completion_with_retry.._completion_with_retry in 4.0 seconds as it raised ServiceUnavailableError: The server is overloaded ......."
Nice Explanation
if i install packages without versions in requirements.txt am getting following error:
pip install -r requirements.txt
ERROR: Could not find a version that satisfies the requirement lanchain==0.1.7 (from versions: none)
ERROR: No matching distribution found for lanchain==0.1.7
spelling mistake - langchai not lanchain
Thank you sir
at 1:17:10 how do we run the app after updating the API key?
can u please make a tutorial that uses Mistral AI 7B from huggingface to make a chatbot
Love it!!!!!!!!!!!
Thanks for the video
why openAI cant we use LLAMA2 for RAG?
Make a video on how to use AutoGen
Do you need autogen research paper explanation or start to end llm project using autogen ?
Thanks Krish , can you make a video on training lanchain and open ai api with a set of input and output documents so that with a set of new documents it is able to create an output document
Langchain llm trained on your pdf document 📃 chatbot system do you need Satvik?
@@AIMLDLNLP-TECH yeah kind of we need to train llm on our pdf(s) so that it is able to create the output document , not a chatbot system definitely
I am facing RateLimitError... How to fix this error
Two things here:
1) If the current execution run after multiple successful response yields this error, then wait for a while before you run for next time. The model has a limit of at least 3 responses per request.
2) if you're facing this issue when your existing API key for the model has expired, create a new API key with new mobile and email address. It will help you create a new API key for the model.
Hope this helps.
Hi Krish Sir.. I am getting AttributeError: module 'openai' has no attribute 'error' . Can you please help how to resolve and proceed further?
Make sure your python version is greater than 3.8. And also upgrade your open AI
If you don't probably stop using probably so insanely probably incorrectly in ur probable speech, I'll probably unsubscribe despite such probably good content.
Legend
Temperature value is between 0 and 2.
I am getting that I have exceeded my limit for open AI
Do we need to get paid subscription for OpenAI API ?
ia m also getting the same . kindly reply if u find a soln
hey any solution for this@@kanishkasharma353
Hi, Can we access the open Ai api key for free?
Why python==3.9 version is used in this project. There are new version available like 3.10, 3.11, 3.12
Because all the python libraries used in this project are compatible and tested with 3.9 versions, if you want you can update only issue is sometime syntax get change
Thanks @@AIMLDLNLP-TECH
Its quite outdated now. Most of the langchain packages have changed.
How do I learn I kind of need spoon feeding
Not everyone is providing how to finetune llms cause they donot have any idea how it works.They will , not now only in future after copy pasting someone ele's content.
33:58 Error achhe hai😅
Guys is the open AI Api free?
Naah, It's not 🙃
I am frustrated get job for as fresher I should I can learn
Communication Skills and English.
evey youtuber make video on openAi why
half & half
i have made a google form for reasearch study on data science and i want to reach to as many as possible, to collect the study data.
if anyone can help me to get in a group or would like to contribute please reply.
i'm student so don't worry about the data integrity it's for study!
Do you need real data or random data
@@AIMLDLNLP-TECH real data, i need response from data science field from student to employee if you know any group i can give you my number,
this project is for my study i want to do data cleaning and analysis on this
I'm interested
is open ai key free?
yes
Rate Limit error agya 😢
Who wants your API KEY dude? C’mon.. and btw you can always create a new one. Stop behaving like a kid about the API KEY
I thought it was Sydney
Bhai phle to tu probably probably bolna km kr, boht irritate krta h
Everytime in all your videos you make a virtual env naming venv! I wonder how many venv you have? So for 100 projects if there are 100 venvs won't it be confusing? @KrishNaik
the venv's made here are with -p (path) switch, which tells you not a project specific to that folder. so to activate it you will have to provide the path to that environment. To access this environment globally you have to provide the entire path to that venv which in any case you will know where are going.
I am getting ratelimit error why?