Improve LLM cache migration tool configuration and messaging
This commit is contained in:
parent
6fc54d3625
commit
d0d31e9262
1 changed files with 4 additions and 1 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue