From d0d31e9262c3b5b1492dd64efd517edb5e4906a2 Mon Sep 17 00:00:00 2001 From: yangdx Date: Sat, 8 Nov 2025 18:52:33 +0800 Subject: [PATCH] Improve LLM cache migration tool configuration and messaging --- lightrag/tools/migrate_llm_cache.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lightrag/tools/migrate_llm_cache.py b/lightrag/tools/migrate_llm_cache.py index 68866264..a9d1f18a 100644 --- a/lightrag/tools/migrate_llm_cache.py +++ b/lightrag/tools/migrate_llm_cache.py @@ -33,6 +33,9 @@ from lightrag.namespace import NameSpace from lightrag.utils import setup_logger # Load environment variables +# use the .env that is inside the current folder +# allows to use different .env file for each lightrag instance +# the OS environment variables take precedence over the .env file load_dotenv(dotenv_path=".env", override=False) # Setup logger @@ -713,7 +716,7 @@ class MigrationTool: if target_data: print( - f"\n⚠ Warning: Target storage already has {len(target_data):,} records" + f"\n⚠️ Warning: Target storage already has {len(target_data):,} records" ) print("Migration will overwrite records with the same keys")