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

Поделиться
HTML-код
  • Опубликовано: 24 дек 2024

Комментарии • 120

  • @HarpaAI
    @HarpaAI Год назад +10

    🎯 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

  • @aillminsimplelanguage
    @aillminsimplelanguage 10 месяцев назад +2

    That joke on 3cr package was very subtle :)

  • @lanreuzamere4994
    @lanreuzamere4994 Год назад +5

    What a Blessing you are! GOD Bless you exponentially 🎉

  • @ocbhu8666
    @ocbhu8666 Год назад +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 Год назад

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

  • @1murali5teja
    @1murali5teja Год назад +2

    Thank you sir for creating this type of projects with langchain

  • @adityavipradas3252
    @adityavipradas3252 Год назад +2

    Super excited for this series

  • @PAVANKUMAR-vx9ty
    @PAVANKUMAR-vx9ty Год назад +4

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

  • @AIforAll-DOMANA
    @AIforAll-DOMANA 11 месяцев назад

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

  • @aarizmobin4487
    @aarizmobin4487 Год назад +1

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

  • @gautambegde6484
    @gautambegde6484 10 месяцев назад

    Thank you Krish sir for such an informative video!

  • @LalithaReddy-d4o
    @LalithaReddy-d4o Год назад +1

    Thanks very much needed resource.

  • @jimharrington5678
    @jimharrington5678 Год назад +1

    Thanks Krish, Please upload more videos also.

  • @himanshupatidar8040
    @himanshupatidar8040 10 месяцев назад +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.

  • @izainonline
    @izainonline Год назад +1

    Great Sir❤

  • @farhanafridi8694
    @farhanafridi8694 Год назад +17

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

    • @AIMLDLNLP-TECH
      @AIMLDLNLP-TECH Год назад

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

  • @soumeshnayak4546
    @soumeshnayak4546 Год назад +1

    Great tutorial

  • @chidambarjoshi3470
    @chidambarjoshi3470 Год назад +4

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

  • @sreejak5866
    @sreejak5866 7 месяцев назад

    I will probably like this video

  • @praulayar4805
    @praulayar4805 Год назад

    Nice Explanation

  • @nunoalexandre6408
    @nunoalexandre6408 Год назад

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

  • @Gaurav-my7vv
    @Gaurav-my7vv Месяц назад +1

    If anybody is encountering this error-
    {“error”:“Authorization header is correct, but the token seems invalid”}
    Do the following steps-
    1. go to hugging face account → setting → Access Token
    2. Edit Access Token Permissions
    3. Under the Repositories check box Write access to contents/settings of all repos under your personal namespace.
    4. Under the Inference check box Make calls to the serverless Inference API
    5. Save and retry to run your code.(If still not working then delete this access token, create a new one will these permissions)
    Happy Learning!!😉

  • @RamaChandran-fc3hp
    @RamaChandran-fc3hp Год назад

    Thank you sir

  • @qammarbhat397
    @qammarbhat397 Год назад +2

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

  • @JJGhostHunters
    @JJGhostHunters Год назад

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

  • @raph8240
    @raph8240 Год назад

    Thanks for the video

  • @JyotiprakashMandal-bp8ng
    @JyotiprakashMandal-bp8ng 9 месяцев назад

    Legend

  • @maryam12930
    @maryam12930 11 месяцев назад +5

    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

  • @laxmiagarwal3285
    @laxmiagarwal3285 7 месяцев назад

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

  • @honeybhardwaz7461
    @honeybhardwaz7461 8 месяцев назад

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

  • @Danny_DB-xi5lo
    @Danny_DB-xi5lo 11 месяцев назад

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

  • @akshayshendre7408
    @akshayshendre7408 Год назад +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 Год назад +2

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

    • @payaljain3508
      @payaljain3508 Год назад

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

  • @harshsonawane578
    @harshsonawane578 Год назад +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

  • @mayanksharma609
    @mayanksharma609 Год назад +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 Год назад

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

    • @vmajay007
      @vmajay007 Год назад +1

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

    • @pankajkumar-xr9up
      @pankajkumar-xr9up Год назад

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

    • @santoshkv1125
      @santoshkv1125 Год назад

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

  • @GaganaMD
    @GaganaMD Год назад

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

  • @silviolima07
    @silviolima07 Год назад +2

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

  • @krypton_17
    @krypton_17 Год назад +3

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

    • @AIMLDLNLP-TECH
      @AIMLDLNLP-TECH Год назад

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

    • @krypton_17
      @krypton_17 Год назад

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

  • @akj3344
    @akj3344 Год назад

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

  • @seanrodrigues1842
    @seanrodrigues1842 11 месяцев назад

    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

  • @tannaprasanthkumar9119
    @tannaprasanthkumar9119 11 месяцев назад +1

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

  • @izainonline
    @izainonline Год назад

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

  • @sakshisoni3150
    @sakshisoni3150 10 месяцев назад

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

  • @florenceofori7930
    @florenceofori7930 6 месяцев назад

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

  • @hitsakhavala9623
    @hitsakhavala9623 Год назад

    33:58 Error achhe hai😅

  • @arpitaingermany
    @arpitaingermany 7 месяцев назад

    what kind of token I should create in the hugging face

  • @mk-uv9ih
    @mk-uv9ih 11 месяцев назад

    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

  • @SiriRavali
    @SiriRavali 4 месяца назад

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

  • @dipankardandapat5495
    @dipankardandapat5495 10 месяцев назад

    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

  • @santoshkumarit_4thyear_263
    @santoshkumarit_4thyear_263 3 месяца назад

    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?

  • @masdarbaktiar8930
    @masdarbaktiar8930 9 месяцев назад

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

  • @dhrumil5977
    @dhrumil5977 Год назад +1

    Make a video on how to use AutoGen

    • @AIMLDLNLP-TECH
      @AIMLDLNLP-TECH Год назад +2

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

  • @SatvikSrivastava-js6gm
    @SatvikSrivastava-js6gm Год назад +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 Год назад

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

    • @SatvikSrivastava-js6gm
      @SatvikSrivastava-js6gm Год назад

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

  • @kaushik1286
    @kaushik1286 Год назад

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

  • @qzwwzt
    @qzwwzt Год назад

    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

  • @shashanksinghal8395
    @shashanksinghal8395 Год назад

    Temperature value is between 0 and 2.

  • @memoonashah8108
    @memoonashah8108 Год назад

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

  • @tuguest2
    @tuguest2 Год назад

    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.

  • @sujjee
    @sujjee Год назад

    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

  • @ramusesandasari8451
    @ramusesandasari8451 10 месяцев назад

    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

  • @AbhijitG2
    @AbhijitG2 Год назад

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

    • @kanishkasharma353
      @kanishkasharma353 Год назад

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

    • @opshorts3205
      @opshorts3205 10 месяцев назад

      hey any solution for this@@kanishkasharma353

  • @Ashok_kumar_009
    @Ashok_kumar_009 Месяц назад

    Can try this in Google colab

  • @shreyas9280
    @shreyas9280 Год назад

    why openAI cant we use LLAMA2 for RAG?

  • @tiwariFlow
    @tiwariFlow Год назад +1

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

    • @sparshadevapalli898
      @sparshadevapalli898 Год назад

      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.

  • @arnaritbhunia5031
    @arnaritbhunia5031 26 дней назад

    "Authorization header is correct, but the token seems invalid" ye error bar bar araha hain ..please koi batao kaise fix karun yesab ???

  • @payaljain3508
    @payaljain3508 Год назад

    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 Год назад

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

  • @sanjaychilveri8386
    @sanjaychilveri8386 6 месяцев назад

    how should i solve the rate limit errror

  • @pragneshsolanki8243
    @pragneshsolanki8243 Год назад

    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 Год назад

      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 Год назад

      Thanks @@AIMLDLNLP-TECH

  • @florenceofori7930
    @florenceofori7930 6 месяцев назад +1

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

    • @zerotohero1002
      @zerotohero1002 5 месяцев назад

      How do I learn I kind of need spoon feeding

  • @rakeshkumarrout2629
    @rakeshkumarrout2629 Год назад

    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.

  • @cssai4778
    @cssai4778 5 месяцев назад +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.

  • @AkankshaBhagat-k1h
    @AkankshaBhagat-k1h 4 месяца назад

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

  • @akinolanathaniel5784
    @akinolanathaniel5784 Год назад +1

    Guys is the open AI Api free?

  • @RajaBabu-vz6bo
    @RajaBabu-vz6bo 7 месяцев назад

    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

  • @3091186
    @3091186 Год назад +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 ......."

  • @SkillWisKnowlege
    @SkillWisKnowlege Год назад

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

    • @rohan2718
      @rohan2718 Год назад

      Communication Skills and English.

  • @captvashu8142
    @captvashu8142 Год назад

    is open ai key free?

  • @Mr_Sniper5
    @Mr_Sniper5 6 месяцев назад

    evey youtuber make video on openAi why

  • @KumR
    @KumR 7 месяцев назад

    half & half

  • @HappyDataScience
    @HappyDataScience Год назад +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 Год назад

      Do you need real data or random data

    • @HappyDataScience
      @HappyDataScience Год назад

      @@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 Год назад +1

      I'm interested

  • @tiwariFlow
    @tiwariFlow Год назад

    Rate Limit error agya 😢

  • @DadCooks4Us
    @DadCooks4Us 7 месяцев назад

    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

  • @madarauchiha-m2f
    @madarauchiha-m2f 5 месяцев назад

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

  • @kavyanshpandey3823
    @kavyanshpandey3823 Год назад

    I thought it was Sydney

  • @aitoquantum
    @aitoquantum Год назад +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 Год назад +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 5 месяцев назад

    I am getting ratelimit error why?