Learn LangChain In 1 Hour With End To End LLM Project With Deployment In Huggingface Spaces

Поділитися
Вставка
  • Опубліковано 7 вер 2024

КОМЕНТАРІ • 118

  • @HarpaAI
    @HarpaAI 10 місяців тому +9

    🎯 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

  • @lanreuzamere4994
    @lanreuzamere4994 10 місяців тому +5

    What a Blessing you are! GOD Bless you exponentially 🎉

  • @maryam12930
    @maryam12930 7 місяців тому +4

    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

  • @farhanafridi8694
    @farhanafridi8694 10 місяців тому +16

    Please try to upload videos on Generative AI more frequently. 😢

    • @AIMLDLNLP-TECH
      @AIMLDLNLP-TECH 10 місяців тому

      What kind of videos you are looking for in Generative AI NLP or computer vision related Farhan ?

  • @ocbhu8666
    @ocbhu8666 10 місяців тому +3

    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 !!

    • @AIMLDLNLP-TECH
      @AIMLDLNLP-TECH 10 місяців тому

      I think practical and particular domain related videos will help more, this is very generic

  • @PAVANKUMAR-vx9ty
    @PAVANKUMAR-vx9ty 10 місяців тому +4

    it is a great tutorial without doubt! Please upload more videos like this❤❤

  • @amiralioghli8622
    @amiralioghli8622 10 місяців тому +3

    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.

  • @himanshupatidar8040
    @himanshupatidar8040 7 місяців тому +1

    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.

  • @aillmforsenioritprofessionals
    @aillmforsenioritprofessionals 6 місяців тому +2

    That joke on 3cr package was very subtle :)

  • @1murali5teja
    @1murali5teja 10 місяців тому +2

    Thank you sir for creating this type of projects with langchain

  • @chidambarjoshi3470
    @chidambarjoshi3470 10 місяців тому +4

    It's my sincere request for you to make a detailed Computer Vision playlist

  • @AIforAll-DOMANA
    @AIforAll-DOMANA 8 місяців тому

    learning by practice is the best thing ; THANK YOU SIR KRISH

  • @jimharrington5678
    @jimharrington5678 10 місяців тому +1

    Thanks Krish, Please upload more videos also.

  • @qammarbhat397
    @qammarbhat397 10 місяців тому +2

    Please make a video about end to end design of a chatbot using gen ai for any website

  • @harshsonawane578
    @harshsonawane578 10 місяців тому +2

    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

  • @aarizmobin4487
    @aarizmobin4487 10 місяців тому +1

    Amazing tutorial.. thank you krish .. you are great.. love you ..

  • @mayanksharma609
    @mayanksharma609 10 місяців тому +3

    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.

    • @atharvaa.markandey4529
      @atharvaa.markandey4529 10 місяців тому

      yes, it's the latest openai version that's the issue

    • @vmajay007
      @vmajay007 10 місяців тому +1

      I have downgraded openai to v0.28.1, still I am facing the issue.

    • @pankajkumar-xr9up
      @pankajkumar-xr9up 9 місяців тому

      how u resolved it my mind is
      fucked up@@vmajay007

    • @santoshkv1125
      @santoshkv1125 9 місяців тому

      I still get the same error. what is the langchain version you've tried?

  • @gautambegde6484
    @gautambegde6484 6 місяців тому

    Thank you Krish sir for such an informative video!

  • @santoshkumarit_4thyear_263
    @santoshkumarit_4thyear_263 День тому

    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?

  • @user-go5tm4kx2w
    @user-go5tm4kx2w 10 місяців тому +1

    Thanks very much needed resource.

  • @sreejak5866
    @sreejak5866 3 місяці тому

    I will probably like this video

  • @akshayshendre7408
    @akshayshendre7408 10 місяців тому +2

    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?

    • @payaljain3508
      @payaljain3508 10 місяців тому +2

      I am facing the same issue.. any solution to this? Please help

    • @payaljain3508
      @payaljain3508 10 місяців тому

      ​@@atharvpingle6937yes.. i changed my file's name from lanchain.ipynb to something else. That fixed the issue..

  • @adityavipradas3252
    @adityavipradas3252 10 місяців тому +2

    Super excited for this series

    • @AIMLDLNLP-TECH
      @AIMLDLNLP-TECH 10 місяців тому

      Are you a data scientist Aditya?

  • @laxmiagarwal3285
    @laxmiagarwal3285 3 місяці тому

    very informative video..can we implement embeddings when we use gpt-3.5-turbo model?

  • @tannaprasanthkumar9119
    @tannaprasanthkumar9119 8 місяців тому +1

    Sir I have a douby while using API keys , I get rate limit error

  • @Danny_DB-xi5lo
    @Danny_DB-xi5lo 7 місяців тому

    Good explanation Sir...
    Please, Can you elaborate how to do deployment using cli as well especially in huggingface?

  • @silviolima07
    @silviolima07 8 місяців тому +2

    Is necessary to buy credits to use it? In other video I got the message " insufficient quota" .

  • @RajaBabu-vz6bo
    @RajaBabu-vz6bo 4 місяці тому

    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

  • @JJGhostHunters
    @JJGhostHunters 10 місяців тому

    You are correct! I was thinking the capital of Austrailia is Melbourne! LOL!

  • @seanrodrigues1842
    @seanrodrigues1842 7 місяців тому

    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

  • @izainonline
    @izainonline 10 місяців тому +1

    Great Sir❤

  • @soumeshnayak4546
    @soumeshnayak4546 10 місяців тому +1

    Great tutorial

  • @dipankardandapat5495
    @dipankardandapat5495 6 місяців тому

    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

  • @honeybhardwaz7461
    @honeybhardwaz7461 4 місяці тому

    Hey, Krsih make some videos on AutoGen to, BTW awesome job.

  • @masdarbaktiar8930
    @masdarbaktiar8930 6 місяців тому

    why when I try pip install, it shows "Defaulting to user installation because normal site-packages is not writeable"

  • @akj3344
    @akj3344 10 місяців тому

    Why are people always begging for more? I always see these comments below krish's videos.

  • @izainonline
    @izainonline 8 місяців тому

    Installing IPI kernal required only 1 time for Jupitar Notebook as we are installing out of environment?

  • @user-wi1be7cg7z
    @user-wi1be7cg7z 10 місяців тому

    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.

  • @SiriRavali
    @SiriRavali Місяць тому

    Hi Krish, Can you please share what's in the .env file.

  • @kaushik1286
    @kaushik1286 9 місяців тому

    It worked completely fine and ven openeed the streamlit webpage, but nothing is shown

  • @mk-uv9ih
    @mk-uv9ih 7 місяців тому

    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

  • @florenceofori7930
    @florenceofori7930 2 місяці тому

    I like how he keeps dangling the API key infront of us 😂

  • @sujjee
    @sujjee 8 місяців тому

    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

  • @arpita0608
    @arpita0608 4 місяці тому

    what kind of token I should create in the hugging face

  • @qzwwzt
    @qzwwzt 9 місяців тому

    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

  • @sanjaychilveri8386
    @sanjaychilveri8386 3 місяці тому

    how should i solve the rate limit errror

  • @krypton_17
    @krypton_17 10 місяців тому +3

    hey krish, can u try to integrate sql in to your projects

    • @AIMLDLNLP-TECH
      @AIMLDLNLP-TECH 10 місяців тому

      Can you specify what do you need ? ETL or langchain with ur own data ??

    • @krypton_17
      @krypton_17 10 місяців тому

      @@AIMLDLNLP-TECH store and retrieve data in project pipeline

  • @sakshisoni3150
    @sakshisoni3150 6 місяців тому

    will it be safe to use llm when your main concern is privacy can i use it with my important data

  • @3091186
    @3091186 10 місяців тому +1

    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 ......."

  • @praulayar4805
    @praulayar4805 9 місяців тому

    Nice Explanation

  • @ramusesandasari8451
    @ramusesandasari8451 6 місяців тому

    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

  • @RamaChandran-fc3hp
    @RamaChandran-fc3hp 10 місяців тому

    Thank you sir

  • @GaganaMD
    @GaganaMD 9 місяців тому

    at 1:17:10 how do we run the app after updating the API key?

  • @memoonashah8108
    @memoonashah8108 9 місяців тому

    can u please make a tutorial that uses Mistral AI 7B from huggingface to make a chatbot

  • @nunoalexandre6408
    @nunoalexandre6408 10 місяців тому

    Love it!!!!!!!!!!!

  • @raph8240
    @raph8240 10 місяців тому

    Thanks for the video

  • @shreyas9280
    @shreyas9280 9 місяців тому

    why openAI cant we use LLAMA2 for RAG?

  • @dhrumil5977
    @dhrumil5977 10 місяців тому +1

    Make a video on how to use AutoGen

    • @AIMLDLNLP-TECH
      @AIMLDLNLP-TECH 10 місяців тому +2

      Do you need autogen research paper explanation or start to end llm project using autogen ?

  • @SatvikSrivastava-js6gm
    @SatvikSrivastava-js6gm 10 місяців тому +1

    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

    • @AIMLDLNLP-TECH
      @AIMLDLNLP-TECH 10 місяців тому

      Langchain llm trained on your pdf document 📃 chatbot system do you need Satvik?

    • @SatvikSrivastava-js6gm
      @SatvikSrivastava-js6gm 10 місяців тому

      @@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

  • @tiwariFlow
    @tiwariFlow 10 місяців тому +1

    I am facing RateLimitError... How to fix this error

    • @sparshadevapalli898
      @sparshadevapalli898 9 місяців тому

      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.

  • @payaljain3508
    @payaljain3508 10 місяців тому

    Hi Krish Sir.. I am getting AttributeError: module 'openai' has no attribute 'error' . Can you please help how to resolve and proceed further?

    • @aswathivishruth4489
      @aswathivishruth4489 9 місяців тому

      Make sure your python version is greater than 3.8. And also upgrade your open AI

  • @cssai4778
    @cssai4778 Місяць тому +1

    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.

  • @JyotiprakashMandal-bp8ng
    @JyotiprakashMandal-bp8ng 5 місяців тому

    Legend

  • @shashanksinghal8395
    @shashanksinghal8395 10 місяців тому

    Temperature value is between 0 and 2.

  • @AbhijitG2
    @AbhijitG2 9 місяців тому

    I am getting that I have exceeded my limit for open AI
    Do we need to get paid subscription for OpenAI API ?

    • @kanishkasharma353
      @kanishkasharma353 9 місяців тому

      ia m also getting the same . kindly reply if u find a soln

    • @opshorts3205
      @opshorts3205 7 місяців тому

      hey any solution for this@@kanishkasharma353

  • @AkankshaBhagat-k1h
    @AkankshaBhagat-k1h Місяць тому

    Hi, Can we access the open Ai api key for free?

  • @pragneshsolanki8243
    @pragneshsolanki8243 10 місяців тому

    Why python==3.9 version is used in this project. There are new version available like 3.10, 3.11, 3.12

    • @AIMLDLNLP-TECH
      @AIMLDLNLP-TECH 10 місяців тому

      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

    • @pragneshsolanki8243
      @pragneshsolanki8243 10 місяців тому

      Thanks @@AIMLDLNLP-TECH

  • @florenceofori7930
    @florenceofori7930 2 місяці тому +1

    Its quite outdated now. Most of the langchain packages have changed.

    • @zerotohero1002
      @zerotohero1002 Місяць тому

      How do I learn I kind of need spoon feeding

  • @rakeshkumarrout2629
    @rakeshkumarrout2629 9 місяців тому

    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.

  • @hitsakhavala9623
    @hitsakhavala9623 9 місяців тому

    33:58 Error achhe hai😅

  • @akinolanathaniel5784
    @akinolanathaniel5784 10 місяців тому +1

    Guys is the open AI Api free?

  • @SkillWisKnowlege
    @SkillWisKnowlege 10 місяців тому

    I am frustrated get job for as fresher I should I can learn

    • @rohan2718
      @rohan2718 10 місяців тому

      Communication Skills and English.

  • @Mr_Sniper5
    @Mr_Sniper5 2 місяці тому

    evey youtuber make video on openAi why

  • @KumR
    @KumR 4 місяці тому

    half & half

  • @HappyDataScience
    @HappyDataScience 10 місяців тому +1

    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
      @AIMLDLNLP-TECH 10 місяців тому

      Do you need real data or random data

    • @HappyDataScience
      @HappyDataScience 10 місяців тому

      @@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

    • @chukwumanwakpa3330
      @chukwumanwakpa3330 10 місяців тому +1

      I'm interested

  • @captvashu8142
    @captvashu8142 9 місяців тому

    is open ai key free?

  • @tiwariFlow
    @tiwariFlow 10 місяців тому

    Rate Limit error agya 😢

  • @DadCooks4Us
    @DadCooks4Us 4 місяці тому

    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

  • @kavyanshpandey3823
    @kavyanshpandey3823 10 місяців тому

    I thought it was Sydney

  • @rahulbarnwal196
    @rahulbarnwal196 Місяць тому

    Bhai phle to tu probably probably bolna km kr, boht irritate krta h

  • @aitoquantum
    @aitoquantum 10 місяців тому +1

    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

    • @santoshkv1125
      @santoshkv1125 8 місяців тому +1

      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.

  • @keerthikapopuri
    @keerthikapopuri 2 місяці тому

    I am getting ratelimit error why?