Contextual Conversational Retrieval for Message-Based prompt

My question is, previous message-based results by passing the roles of assistant and user or the entire conversation history.

Hi,

In the course, the entire conversation history is passed to the model by means of the context variable.

Hi,
Should we pass the whole context considering the size of context might increase as the chat continues? Is there any recommendation to send the number of messages (context)

Hi tsfahmad360,

To stay within the input size with a continued chat, the context can be provided in the form of a summary of the preceding chat. Another possibility is to develop an agent. You can see how to do this in the courses on langchain.