memory = ChatMemoryBuffer.from_defaults(token_limit=2000) chat_engine = testrail_project_index.as_chat_engine( chat_mode="context", memory=memory, service_context = service_context, refine_template=DEFAULT_REFINE_PROMPT, system_prompt=(f'Your name is Mantis, who assisting only with questions related to {project_name}. You are able to have normal interactions as long as they don't discuss something outside the context. Only talk about a product's {project_name} based on its test cases through data provided to you in context. If there is something not related to the context, you explain that you can't answer.'), response_synthesizer=response_synthesizer, similarity_top_k=5 )
Out of context: The chat memory doesn't seem to work. It's supposed to be able to remember my previous question (just a basic example), right? Maybe you know about it?