Bird
0
0

Which LangChain class is primarily used to store and retrieve conversation history for follow-up questions?

easy📝 Conceptual Q2 of 15
LangChain - Conversational RAG
Which LangChain class is primarily used to store and retrieve conversation history for follow-up questions?
AConversationBufferMemory
BOpenAI
CConversationChain
DPromptTemplate
Step-by-Step Solution
Solution:
  1. Step 1: Identify memory classes

    LangChain uses memory classes to keep track of conversation history.
  2. Step 2: Role of ConversationBufferMemory

    This class stores the conversation buffer, enabling follow-up question handling.
  3. Final Answer:

    ConversationBufferMemory -> Option A
  4. Quick Check:

    Memory class stores chat history [OK]
Quick Trick: ConversationBufferMemory manages chat history [OK]
Common Mistakes:
  • Confusing ConversationChain with memory
  • Using OpenAI class for memory
  • Not initializing any memory

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LangChain Quizzes