ConversationRetrievalChain in LangChain - Detailed Tutorial

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

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

  • @abusufyanvu
    @abusufyanvu 8 месяцев назад +1

    please do it with custom prompt template

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

    Small question what would happen if you start a chat with empty history, because the chat needs to know that its history is empty, and still access the data from the vector store

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

      ConversationRetrievalChain without history would be just equal to RetrievalQAChain.
      Even without history, it will get data from the vector store.
      But without history, it would not know how your question is related to previous querstion.

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

      Then what happens in a new session, where there's no history 😕

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

      @@thestacksdev Yes, for a new session, there will be no data.
      If you want to continue chatting even after reloading the webpage, consider using DB to store chats.
      Or you might try local storage to store chats.