Closed as not planned
Description
Question Validation
- I have searched both the documentation and discord for an answer.
Question
def rag(self, memory, index, prompt, k=1):
chat_engine = index.as_chat_engine(
chat_mode="condense_plus_context",
memory=memory,
temperature=0.9,
similarity_top_ps=0.9,
similarity_top_k=k,
)
result = self.transform_str(chat_engine.chat(prompt))
return result
this is my code, I want queries that do not meet the threshold requirement to be excluded when searching the index.