LangChain - Conversational RAG
Identify the error in this LangChain code snippet for handling follow-up questions:
from langchain.chains import ConversationChain
from langchain.llms import OpenAI
llm = OpenAI(temperature=0)
conv = ConversationChain(llm=llm)
response1 = conv.predict(input="Hello, who won the world cup?")
response2 = conv.predict("Who scored the most goals?")
print(response2)