Recall & Review
beginner
What is the purpose of question reformulation with history in Langchain?
It helps to rewrite a follow-up question by including previous conversation context, making the question clear and complete for the language model.
Click to reveal answer
intermediate
Which Langchain component is commonly used for question reformulation with history?
The
ConversationalRetrievalChain or a custom chain that uses a prompt template to combine chat history and the new question.Click to reveal answer
beginner
Why is including chat history important when reformulating questions?
Because follow-up questions often depend on previous answers or context, including history ensures the language model understands the full meaning.
Click to reveal answer
intermediate
What is a typical prompt structure for question reformulation with history?
A prompt that shows the chat history and then asks to rewrite the follow-up question as a standalone question.
Click to reveal answer
intermediate
How does question reformulation improve retrieval or answer quality in Langchain?
By making questions self-contained, it helps retrieval systems or language models find or generate more accurate and relevant answers.
Click to reveal answer
What does question reformulation with history mainly aim to do?
✗ Incorrect
Question reformulation with history rewrites follow-up questions to include prior conversation context for clarity.
Which Langchain feature helps combine chat history with new questions?
✗ Incorrect
ConversationalRetrievalChain is designed to handle chat history and reformulate questions.
Why should follow-up questions be reformulated before retrieval?
✗ Incorrect
Reformulating makes follow-up questions self-contained, improving retrieval accuracy.
What is included in the prompt for question reformulation?
✗ Incorrect
The prompt includes chat history plus the new question to rewrite it clearly.
What is a benefit of question reformulation in Langchain?
✗ Incorrect
Reformulated questions help generate more relevant and accurate answers.
Explain how question reformulation with history works in Langchain and why it is useful.
Think about how follow-up questions depend on previous conversation.
You got /4 concepts.
Describe a typical prompt template used for question reformulation with history in Langchain.
Focus on how the prompt guides the model to rewrite the question.
You got /4 concepts.