No warnings, just info on db upgrade

This commit is contained in:
Yiorgis Gozadinos 2025-12-03 08:51:25 +02:00
parent 33b254ae3d
commit 78f1d0cef5
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -70,7 +70,7 @@ class Store:
if not db_path.exists():
if not create:
raise FileNotFoundError(
f"Database does not exist at {db_path}. "
f"Database does not exist at {self.db_path.absolute()}. "
"Use 'haiku-rag init' to create a new database."
)
is_new_db = True

View file

@ -31,7 +31,7 @@ def _apply_embeddings_model_config(store: Store) -> None:
old_model = embeddings.get("model", "qwen3-embedding:4b")
old_vector_dim = embeddings.get("vector_dim", 2560)
logger.warning(
logger.info(
"Migrating embeddings config to new nested structure: "
"embeddings.{provider,model,vector_dim} -> embeddings.model.{provider,name,vector_dim}"
)
@ -50,7 +50,7 @@ def _apply_embeddings_model_config(store: Store) -> None:
values={"settings": json.dumps(settings)},
)
logger.warning(
logger.info(
"Embeddings config migrated: provider=%s, name=%s, vector_dim=%d",
old_provider,
old_model,