ValueError: Invalid message type: <class 'langchain.schema.messages.SystemMessage'>
query_engine = index.as_query_engine(text_qa_template=CHAT_QA_PROMPT, refine_template=CHAT_REFINE_PROMPT
I assume this is outdated code. What would be the newer way of doing this? (see screenshot) thank you! π @Logan Mtext_qa_template=CHAT_QA_PROMPT
I don't get the error and the code works.