scripts/import_markdown.py aktualisiert
All checks were successful
Deploy mindnet to llm-node / deploy (push) Successful in 3s

This commit is contained in:
Lars 2025-11-08 11:37:23 +01:00
parent a9fe6196f7
commit 148e22aa7d

View File

@ -101,6 +101,9 @@ from app.core.qdrant_points import (
delete_by_note,
)
from app.core.env_vars import get_collection_prefix
# Type-Registry optional laden (no-op, falls nicht vorhanden)
try:
from app.core.type_registry import load_type_registry # type: ignore
@ -199,7 +202,7 @@ def main():
print(json.dumps({"error": "vault_not_found", "path": str(vault_root)}))
sys.exit(2)
prefix = args.prefix.strip() or os.environ.get("COLLECTION_PREFIX", "").strip() or "mindnet"
prefix = args.prefix.strip() or os.environ.get("COLLECTION_PREFIX", "").strip() or "mindnet" or get_collection_prefix(args.prefix)
cfg = QdrantConfig.from_env(prefix=prefix)
client = get_client(cfg)
ensure_collections(client, cfg)