LLM Memory with LangChain (6.3)

Поділитися
Вставка
  • Опубліковано 4 жов 2024
  • LLMs do not have the sort of memory where you often see ChatGPT recall information from earlier in the conversation. This sort of memory must be added by the host program. In this video I will show how LangChain can add this sort of memory to a conversation.
    Code for This Video:
    github.com/jef...
    ~~~~~~~~~~~~~~~ COURSE MATERIAL ~~~~~~~~~~~~~~~
    📖 Textbook - coming soon
    😸🐙 GitHub - github.com/jef...
    ▶️ Play List - • 2024 PyTorch Version A...
    🏫 WUSTL Course Site - sites.wustl.ed...
    ~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~
    🖥️ Website: www.heatonrese...
    🐦 Twitter - / jeffheaton
    😸🐙 GitHub - github.com/jef...
    📸 Instagram - / jeffheatondotcom
    🦾 Discord: / discord
    ▶️ Subscribe: www.youtube.co...
    ~~~~~~~~~~~~~~ SUPPORT ME 🙏~~~~~~~~~~~~~~
    🅿 Patreon - / jeffheaton
    🙏 Other Ways to Support (some free) - www.heatonrese...
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    #python #langchain #llm

КОМЕНТАРІ • 6

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

    Love the memento analogy! Makes it stick.

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

    Thank you

  • @דניאלכהן-ג6ג
    @דניאלכהן-ג6ג 8 місяців тому

    If I have the budget for both 4070 Super and 4060Ti, which is better?
    When not dealing with state of the art models, what is better, is 50% more performance better than +4GB Vram?
    When more than 12GB Vram is needed the the training will always be very long (1Hour+)?
    I mean, when needing 16Vram is the training will always be Hours long?
    Is there a scenario when you need 16Vram but the training is very fast (Minutes)? If for both GPUs I will need the cloud for large models, should I get the 4070 Super for not so large models?
    Please advise.

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

    how to add memory in langchain serve?

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

    How does the Summary Memory determine what to store there. Is that include in the System prompt or is another model used as a Summarizer?

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

      Its another LLM, with a couple of prompts built into the memory class.