Find answers from the community

Updated 2 months ago

Hello Team

Hello Team
policies_storage_context = StorageContext.from_defaults( persist_dir="./custom-knowledge-base") policies_index = load_index_from_storage(policies_storage_context) policies_engine = policies_index.as_query_engine(similarity_top_k=10) memory = ChatMemoryBuffer.from_defaults(token_limit=1500) chat_engine = policies_index.as_chat_engine( memory=memory, chat_mode="condense_question", ) response = chat_engine.chat(text)

Here is my chat_engine, so i want that it should remember the previous conversation and able to answer from the previous answers and questions. Right now if im asking a question like What was my previous question it reply back with apology message.
A
r
7 comments
@ravitheja please help here
@Ahsan Mirza after how many questions it is not able to answer?
after second question @ravitheja
@Ahsan Mirza sorry, missed it. It might be because of token_limit in memory?
Add a reply
Sign up and join the conversation on Discord