From 955f9439f94a49e3f72ff62b229514c7283229ec Mon Sep 17 00:00:00 2001 From: Richard Anthony Hein Date: Fri, 23 Aug 2024 20:32:01 +0000 Subject: [PATCH] check index properly --- playground/demos/chatbot/server/vector_storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playground/demos/chatbot/server/vector_storage.py b/playground/demos/chatbot/server/vector_storage.py index 63960a58..f440a82d 100644 --- a/playground/demos/chatbot/server/vector_storage.py +++ b/playground/demos/chatbot/server/vector_storage.py @@ -127,7 +127,7 @@ class RedisVectorStorage: visited.add(url) # Check if the URL has already been processed - if self.redis_client.exists(f"{url}::chunk::1"): + if self.index.exists(f"{url}::chunk::1"): print(f"URL {url} has already been processed. Skipping.") return