From db5159fc2464060b6f3081dfc9e35130e62aa79d Mon Sep 17 00:00:00 2001 From: Yannick Stephan Date: Thu, 20 Feb 2025 14:47:31 +0100 Subject: [PATCH] added missing type --- lightrag/operate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightrag/operate.py b/lightrag/operate.py index a79192ac..73fa2f88 100644 --- a/lightrag/operate.py +++ b/lightrag/operate.py @@ -573,7 +573,7 @@ async def kg_query( global_config: dict[str, str], hashing_kv: BaseKVStorage | None = None, system_prompt: str | None = None, -) -> str: +) -> str | AsyncIterator[str]: # Handle cache use_model_func = global_config["llm_model_func"] args_hash = compute_args_hash(query_param.mode, query, cache_type="query")