Unleash the Power of Falcon with LangChain: Step-by-Step Guide to Run Chat App using Chainlit

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ธ.ค. 2024

ความคิดเห็น • 57

  • @hassankamran3480
    @hassankamran3480 ปีที่แล้ว +1

    Grateful to have people like you on TH-cam; spreading the valuable information with the developer community :)

  • @tursunable
    @tursunable ปีที่แล้ว +2

    You are our guide in the dark with your tutorials. We're thankful that you offer them for free, so we don't need to buy courses. :) Thanks!

  • @newcooldiscoveries5711
    @newcooldiscoveries5711 ปีที่แล้ว +1

    I have watched two of your videos and they were both impressive. Good job on putting the app together and also clearly explaining it. Thanks. Liked and subscribed.

    • @menloparklab
      @menloparklab  ปีที่แล้ว

      Thanks a lot 🙏

    • @awaisali-ww4wp
      @awaisali-ww4wp ปีที่แล้ว

      @@menloparklab hi i want to add like chatgpt when this model generate text after that user will ask summerize it so how i do that?

  • @vhater2006
    @vhater2006 ปีที่แล้ว

    Thank You , All the best keep good thing up "Bon Courage et Merci"

  • @shadidhaque1009
    @shadidhaque1009 ปีที่แล้ว

    Dude exactly what I was looking for.

  • @pleabargain
    @pleabargain ปีที่แล้ว +1

    Please do another video showing langchain doing cooler stuff like iterating over output from the LLM to create new prompts from templates.

  • @menloparklab
    @menloparklab  ปีที่แล้ว +2

    Course website for pre-launch pricing: builtbyou.com/
    Project requests: forms.office.com/r/NU5Lf5PPjr

  • @pleabargain
    @pleabargain ปีที่แล้ว

    9:45 please do a vid on using the agents with chainlit

  • @QHawk7
    @QHawk7 10 หลายเดือนก่อน

    Hi, can I run this on a colab or kaggle? and can I use pdfs or other docs? to chat with my data ?

  • @MisCopilotos
    @MisCopilotos ปีที่แล้ว

    Hey, great content. Question: is it possible to connect chainlit with a bubble app?

    • @menloparklab
      @menloparklab  ปีที่แล้ว +1

      Good question, you might be able to embed it as an HTML embed

  • @pushkar260
    @pushkar260 ปีที่แล้ว

    running the chat gives me Error raised by inference API: Internal Server Error

  • @IamalwaysOK
    @IamalwaysOK ปีที่แล้ว +1

    I appreciate your video, but I need clarification regarding the process when running the code. Does it involve downloading the model onto your machine or codespace container, or does it utilize the Huggingface key to make an API call to the hosted model on the Huggingface hub? In other words, where is the model actually hosted?

    • @menloparklab
      @menloparklab  ปีที่แล้ว +2

      It's using the HF API call to the hosted mode on the hub. One could also download the modela and run inference on the local version as well using langchain.

    • @IamalwaysOK
      @IamalwaysOK ปีที่แล้ว

      @@menloparklab That's cool! So we're using models hosted by HF. If you have a moment, could you make a video showing how to put the model on AWS Sagemaker or a free service and run it?

    • @menloparklab
      @menloparklab  ปีที่แล้ว

      Actually, there are some well documented ways of deploying to services like BananaML or Replicate.com, which might be a bit easier. Will test it out for sagemaker. Thanks.

    • @IamalwaysOK
      @IamalwaysOK ปีที่แล้ว

      @@menloparklab Thank you! Appreciate it!

    • @koganin9
      @koganin9 ปีที่แล้ว +1

      @@menloparklab How can one download the models and run it for local inference? I do see that files are available on the model cards on HF (.bin files?) Is there some package that would allow me to use these local models/files?

  • @Neenad-x1e
    @Neenad-x1e ปีที่แล้ว +1

    I tried the exact same way you did in the video ,but encountered with an error as
    "ValueError: langchain_factory use_async parameter is required" do you have any solution for it ?

    • @tenhusho
      @tenhusho ปีที่แล้ว

      Same

    • @Neenad-x1e
      @Neenad-x1e ปีที่แล้ว

      @@tenhusho did you got any solution ?

    • @xnl-h4ck3r
      @xnl-h4ck3r ปีที่แล้ว +1

      To fix that, I changed the line:
      @cl.langchain_factory
      to
      @cl.langchain_factory(use_async=False)

  • @usoppgostoso
    @usoppgostoso ปีที่แล้ว

    First I hear of Falcon

    • @feverdelrey
      @feverdelrey ปีที่แล้ว

      its beaten Llama model and tops the HF LLM leaderboard. Its completely open source and ready for commercial use as well.

  • @fontenbleau
    @fontenbleau ปีที่แล้ว

    I'm skeptical it's 40B model, the biggest one, people complain it's very slow and demands very powerful hardware.
    I'm waiting when Orca will be available.

  • @Clip0clips
    @Clip0clips ปีที่แล้ว

    Hi. You are great.
    But i don’t understand i have you questions😓.
    I had install the chatbot but he responds some “bad” questions , we need to train the program ?
    And second Can i install this on my page? Thank you very much❤

    • @menloparklab
      @menloparklab  ปีที่แล้ว

      You can try updating the prompt template and see if that helps. Yes you can embed it on your page.

  • @ahmedewis486
    @ahmedewis486 ปีที่แล้ว +1

    How can we use it for a custom dataset or pdf file? And can it be multilingual?

    • @menloparklab
      @menloparklab  ปีที่แล้ว +1

      I haven't tested it yet with the custom dataset, but I am sure there are ways to run it.

    • @koganin9
      @koganin9 ปีที่แล้ว

      @@menloparklab I'd also be interested in learning about how to use something like this for a dataset file.
      Regardless, subscribed! Thanks for putting up such great content.

    • @menloparklab
      @menloparklab  ปีที่แล้ว +2

      @@koganin9 Will give it a try

  • @im_shubham27
    @im_shubham27 ปีที่แล้ว

    Hi It does not perform well on follow up questions(related to last question), can you share an implementation where we can include chat history, probably by using memory from langchain. Thanks In Advance.

    • @menloparklab
      @menloparklab  ปีที่แล้ว

      Yes the current setup is without memory. Will try to make something with memory.

    • @im_shubham27
      @im_shubham27 ปีที่แล้ว

      And please do show how to deploy it on cloud

  • @GirijaCk-gg1ty
    @GirijaCk-gg1ty ปีที่แล้ว

    Is it possible to run Falcon 40b instruct in single GPU without using cloud?

    • @menloparklab
      @menloparklab  ปีที่แล้ว

      Haven’t tried it myself, will have to test it

  • @Tsvideosss1
    @Tsvideosss1 ปีที่แล้ว

    i followed the steps you mentioned above but i still got the error
    AttributeError: module 'chainlit' has no attribute 'langchain_factory'

    • @menloparklab
      @menloparklab  ปีที่แล้ว

      Solution is discussed in one of the earlier comments.

  • @mayorc
    @mayorc ปีที่แล้ว

    Why does when you create the codespace below there is written Codespace usage for this repository is paid for by misbahsy? Is that a public Codespace you created and you are paying it for other users to use? Explain what's happening.

    • @menloparklab
      @menloparklab  ปีที่แล้ว

      Not sure actually why it says that. Maybe they allow some amount for free computation, and paid after. But will have to check their docs.

  • @vishnusureshperumbavoor
    @vishnusureshperumbavoor ปีที่แล้ว +1

    Do we need to pay to get hugging face token?

    • @fontenbleau
      @fontenbleau ปีที่แล้ว

      No, it's free, they register who download their files with token and your ip, maybe for statistical reason.

  • @nikk6489
    @nikk6489 ปีที่แล้ว

    Have you tried using Chainlit in Docker Container? Can we do it?

    • @menloparklab
      @menloparklab  ปีที่แล้ว

      I am pretty positive it should work in a docker container as well, give it a try

  • @riyaz8072
    @riyaz8072 ปีที่แล้ว

    I'm sorry but could you please let me know why do we need langchain here?

    • @menloparklab
      @menloparklab  ปีที่แล้ว

      Not needed, but in case you want to use other LangChain components in your app.

  • @Masterhunter325
    @Masterhunter325 ปีที่แล้ว

    Can it be used in flowise?

    • @menloparklab
      @menloparklab  ปีที่แล้ว

      Will give it a try actually, should be able to run it with Flowise.

  • @logost5786
    @logost5786 ปีที่แล้ว

    I don't understand what this chat I for?

  • @patricklloyd770
    @patricklloyd770 ปีที่แล้ว

    No no no no no no!!!!!

  • @andybaldman
    @andybaldman ปีที่แล้ว

    I don’t even know what this is.

    • @menloparklab
      @menloparklab  ปีที่แล้ว

      It's about the newly released AI Large Language model - Falcon

    • @timothymaggenti717
      @timothymaggenti717 ปีที่แล้ว +1

      Also if you use Falcon and you make over 1 million dollars with it you have to pay the creators money... How is that open source?

    • @menloparklab
      @menloparklab  ปีที่แล้ว

      @@timothymaggenti717 the license was revised to remove that clause recently