This commit is contained in:
1 parent
a9fe6196f7
commit
148e22aa7d
1 file changed
+4
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user