From 389f4ee87272fae7501b445360977ff709e65cea Mon Sep 17 00:00:00 2001 From: yangdx Date: Fri, 31 Jan 2025 15:33:41 +0800 Subject: [PATCH] Shorten log message for cosine similarity threshold. --- lightrag/kg/nano_vector_db_impl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightrag/kg/nano_vector_db_impl.py b/lightrag/kg/nano_vector_db_impl.py index 60a2bc00..6e8873fc 100644 --- a/lightrag/kg/nano_vector_db_impl.py +++ b/lightrag/kg/nano_vector_db_impl.py @@ -140,7 +140,7 @@ class NanoVectorDBStorage(BaseVectorStorage): embedding = await self.embedding_func([query]) embedding = embedding[0] logger.info( - f"Query: {query}, top_k: {top_k}, cosine_better_than_threshold: {self.cosine_better_than_threshold}" + f"Query: {query}, top_k: {top_k}, cosine: {self.cosine_better_than_threshold}" ) results = self._client.query( query=embedding,