From c01c15f7fbf06c4b8ac32d6df20db4823e637f32 Mon Sep 17 00:00:00 2001 From: yuanxiaobin Date: Fri, 6 Dec 2024 09:11:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BA=86=E4=B8=80=E4=B8=8B?= =?UTF-8?q?=E6=89=8B=E8=AF=AF=E7=9A=84=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lightrag/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lightrag/utils.py b/lightrag/utils.py index 43a8b850..d080ee03 100644 --- a/lightrag/utils.py +++ b/lightrag/utils.py @@ -312,9 +312,9 @@ def process_combine_contexts(hl, ll): async def get_best_cached_response( hashing_kv, current_embedding, similarity_threshold=0.95 ): - """Get the cached response with highest similarity""" + """Get the cached response with the highest similarity""" try: - # Get all keys using list_keys() + # Get all keys all_keys = await hashing_kv.all_keys() max_similarity = 0 best_cached_response = None