LangChain Memory Tutorial | Building a ChatGPT Clone in Python

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

КОМЕНТАРІ • 69

  • @alejandro_ao
    @alejandro_ao  Рік тому +37

    Thanks for your support everyone! Are you interested in a video on how to add a Graphical User Interface to this chatbot?

  • @tariqbaater
    @tariqbaater Рік тому +3

    You definitely are a good instructor, would appreciate if you make a video about increasing the knowledge base by adding multiple file types in your previous ASK PDF tutorial using streamlit.

    • @alejandro_ao
      @alejandro_ao  Рік тому +2

      thanks! i have that video planned, it should be out next week! :)

    • @chrisyung655
      @chrisyung655 Рік тому

      @@alejandro_ao can't wait!!!

  • @johnt7776
    @johnt7776 Рік тому +1

    your tutorial videos are amazing. You're one of the best instructors and ability to convey what we need to know and why.

  • @vga7714
    @vga7714 Рік тому +2

    love the langchain tutorials this is a game changer

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

    What would be the correct way to deploy a chatbot with memory, similar to the one you created in this video, on a cloud service? I am asking this because I assume that if you create a standard API, every user call will reset the memory, won't it? should it be done with websockets? 🤔
    Great videos bro, greetings from Colombia :)

  • @shudarshankongkham198
    @shudarshankongkham198 Рік тому +1

    Hi how do i store the langchain wrapper memory and then reload it to the model such that it remembers the previous conversation? I am planning to use an API that takes the prompt along with a session ID as an input, and it will recall the memory as per the session ID which is stored in the database. I was able to store the entities in the database but was not able to feed it to the model to make it refer to the loaded entities before getting the reply back. Will appreciate if you could help me with an answer to this.

    • @eracton
      @eracton Рік тому

      Did you figure this out?

  • @REALVIBESTV
    @REALVIBESTV Рік тому

    I have an OpenAI chatbot assistance in pycharm and am looking for something like this where the bot will remember in conversations, do you do job like this

  • @ottogutierrez
    @ottogutierrez Рік тому

    Great video! thanks for the way you explain: well paced and clear explanations. I have a question: for the messages array, do you send the complete array for every request? and does this consume your tokens faster than if you didn't have that storage?

    • @alejandro_ao
      @alejandro_ao  Рік тому

      hey there! i’m glad you liked it. And yes, i. this model, when using buffer memory, the entire conversation is sent back. so longer conversations consume more tokens per message. buffer memory is more accurate, but only good for short interactions :)

  • @chrisc9725
    @chrisc9725 Рік тому +1

    Great do you have a video on how to implement a vector database and pdf read into this flow?

  • @ardalanbenam
    @ardalanbenam Рік тому

    Thanks so much for the video. One questions, how big the buffer can be? is there any limit on the buffer messages you are sending back to openai?

  • @priyanshugarg6175
    @priyanshugarg6175 Рік тому

    Hi. Is there a way to alter the history of the ConversationSummaryMemory()
    I am using laama 7b and it in some cases it is adding numerous newline characters at the end of the output. These newline vharacters are also added in the history. So I need to remove them.

  • @panenaset8303
    @panenaset8303 Рік тому

    Thank you Alejandro. You are great!

  • @im_s_kumar
    @im_s_kumar Рік тому

    Great work!! Can you please make a vedio on how to extract key informations from scanned pdfs or images using open source models like vicuna, falcon etc.

  • @tonywhite4476
    @tonywhite4476 6 місяців тому +1

    What's the token cost relationship between the three methods?

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

    Hi, great content! Can you redo this using the newest versions of the modules? Thanks!

  • @HiteshPandya-z6y
    @HiteshPandya-z6y Рік тому

    Thanks for the video.
    Would be great if we could have the same example for chat UI being implemented with any chat model from HuggingFace.

  • @VoiceLessQ
    @VoiceLessQ Рік тому +1

    Can you do this with local with downloaded models?

  • @C__MehrabEvan
    @C__MehrabEvan Рік тому

    Hi how to add my customized prompt in the last entity memory?

  • @DeepakKumar-sf1dt
    @DeepakKumar-sf1dt 9 місяців тому

    @alejandro_ao your tutorial videos are amazing. Please make a video on RAG with Memory Implementation with ConversationalRetreival Chain.
    Actually many of the people is not able to implement such scenarious, and most of the people stuck there, it would be great if you can help us out

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

      hey man, the latest video is precisely about this. you can check it out in the channel. next week i’ll be building the UI for it

  • @sebastiansanchez4866
    @sebastiansanchez4866 Рік тому

    The github link is broken. Great video, your vids are always my morning view :)

    • @alejandro_ao
      @alejandro_ao  Рік тому +1

      thank you so much for the heads up, it should work now!

    • @sebastiansanchez4866
      @sebastiansanchez4866 Рік тому

      Thanks. How would we add plugin access. Specifically Bing.

  • @Matepediaoficial
    @Matepediaoficial Рік тому

    You are incredible!!

  • @harikrishnareddygali6244
    @harikrishnareddygali6244 Рік тому

    Great work mate!!! Can you please make an video on making a chatbot on a website using langchain

  • @MiguelNFer
    @MiguelNFer Рік тому

    Awesome vid ;) are there any llm's in LangChain we can use for free? Perhaps using Huggingface models or something

    • @alejandro_ao
      @alejandro_ao  Рік тому +1

      thanks! yes, indeed. you can use any llm that they have available here: python.langchain.com/en/latest/modules/models/llms/integrations.html.
      But the chat wrappers seem to be limited to openai and a few other providers for the moment (here: python.langchain.com/en/latest/modules/models/chat/integrations.html ).
      i hope they'll be adding new ones soon!

  • @maverick456-33
    @maverick456-33 Рік тому

    Cool tutorial !

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

    Can u tell how to setup the environment in python

  • @ramiyan7987
    @ramiyan7987 Рік тому

    awesome tutorial ! can you combine the question answering from custom knowledge base to use a conversational chain (chatgpt).

    • @alejandro_ao
      @alejandro_ao  Рік тому +1

      yes! the video is coming out next week :)

  • @michaelb1099
    @michaelb1099 Рік тому

    can this be used as a standalone app or an app that can be embedded into a web page?

    • @alejandro_ao
      @alejandro_ao  Рік тому

      it can totally be added to a website. you just need to run this in the backend. if you want to use python to perform api calls with langchain, you can use any python back-end framework, like flask or django!

  • @nicuticu
    @nicuticu Рік тому

    nice ... can this be adapted to be used with openai embeddings?

    • @alejandro_ao
      @alejandro_ao  Рік тому

      indeed! i have a video coming that involves doing that 👍

  • @mvsboss
    @mvsboss Рік тому

    Nice video, its possible to do something similar with local models like vincuna?

    • @alejandro_ao
      @alejandro_ao  Рік тому +2

      totally, i'll be expanding to other LLMs soon!

  • @齐洋-o2s
    @齐洋-o2s Рік тому

    I am a guy but this dude has very husky voice, sounds nothing but attractive lol

  • @Diego_UG
    @Diego_UG Рік тому

    It would be great if you could explain how the experiment could be programmed: Generative Agents: Interactive Simulacra of Human Behavior

  • @balogunazeez3458
    @balogunazeez3458 Рік тому

    Make a tutorial using AutoGPT instead of OpenAI's API

    • @alejandro_ao
      @alejandro_ao  Рік тому +1

      i'll be doing vids on other LLMs soon!

  • @andresnino3215
    @andresnino3215 Рік тому

    Alejandro how great that someone who speaks Spanish, or so I think by your name, is contributing to the Langchain community, very good videos :), but tell me how can I contact you?

    • @andresnino3215
      @andresnino3215 Рік тому

      maybe discord :)

    • @alejandro_ao
      @alejandro_ao  Рік тому

      gracias! you can send me an email if you want. i just added it to the channel info

  • @PedroFiorBarbosa
    @PedroFiorBarbosa Рік тому

    Alejandro, I ran the code but this message showed up: ''openai.error.RateLimitError: You exceeded your current quota, please check your plan and billing details.'' I checked the Free trial usage inside the OpenAI and it was empty, its showing that I never used it before. Do you know what´s happening?
    Congrets for your channel, you are a wonderful teacher!