Small question what would happen if you start a chat with empty history, because the chat needs to know that its history is empty, and still access the data from the vector store
ConversationRetrievalChain without history would be just equal to RetrievalQAChain. Even without history, it will get data from the vector store. But without history, it would not know how your question is related to previous querstion.
@@thestacksdev Yes, for a new session, there will be no data. If you want to continue chatting even after reloading the webpage, consider using DB to store chats. Or you might try local storage to store chats.
please do it with custom prompt template
Small question what would happen if you start a chat with empty history, because the chat needs to know that its history is empty, and still access the data from the vector store
ConversationRetrievalChain without history would be just equal to RetrievalQAChain.
Even without history, it will get data from the vector store.
But without history, it would not know how your question is related to previous querstion.
Then what happens in a new session, where there's no history 😕
@@thestacksdev Yes, for a new session, there will be no data.
If you want to continue chatting even after reloading the webpage, consider using DB to store chats.
Or you might try local storage to store chats.