This commit is contained in:
yichuan520030910320
2025-08-04 14:15:52 -07:00
parent 8899734952
commit 33521d6d00
4 changed files with 12 additions and 3 deletions

View File

@@ -636,7 +636,10 @@ class LeannChat:
"Please provide the best answer you can based on this context and your knowledge."
)
ask_time = time.time()
ans = self.llm.ask(prompt, **llm_kwargs)
ask_time = time.time() - ask_time
logger.info(f" Ask time: {ask_time} seconds")
return ans
def start_interactive(self):