QuestionQ18

VerifiedFundamentals of Large Language Models

Given the following code block:

qa = ConversationalRetrievalChain.from_llm(llm, retriever=retv, memory=memory)  

At which points does a chain typically interact with memory during execution?

Explanation

A conversational chain typically loads memory variables after receiving user input and before executing its core logic. It then saves the relevant inputs and outputs to memory after that logic completes and before returning the output.

Community Discussion

No comments yet. Be the first to start the discussion!