From a5f93fac8ee7a801a1bdeceb308346bcb3ccc3a4 Mon Sep 17 00:00:00 2001 From: Jerry Liu Date: Tue, 18 Apr 2023 00:13:46 -0700 Subject: [PATCH] add async to auto_llama (#10) --- auto_llama/auto_llama/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto_llama/auto_llama/actions.py b/auto_llama/auto_llama/actions.py index cd7357c..cb9c641 100644 --- a/auto_llama/auto_llama/actions.py +++ b/auto_llama/auto_llama/actions.py @@ -112,7 +112,7 @@ def download_web(url: str, doc_name: str, service_context: ServiceContext): os.mkdir("data") index.save_to_disk("data/" + doc_name + ".json") summary = index.query( - "Summarize the contents of this web page.", response_mode="tree_summarize" + "Summarize the contents of this web page.", response_mode="tree_summarize", use_async=True ) return summary.response