Dateien nach "scripts" hochladen
All checks were successful
Deploy mindnet to llm-node / deploy (push) Successful in 3s
All checks were successful
Deploy mindnet to llm-node / deploy (push) Successful in 3s
This commit is contained in:
parent
e6f2c8b4e8
commit
444e8e4206
|
|
@ -97,6 +97,24 @@ try:
|
|||
except Exception:
|
||||
embed_texts = None
|
||||
|
||||
# --- Type Registry (optional) -----------------------------------------------
|
||||
try:
|
||||
from app.core.type_registry import (
|
||||
load_type_registry,
|
||||
resolve_note_type,
|
||||
get_type_config,
|
||||
effective_chunk_profile,
|
||||
)
|
||||
except Exception: # registry optional; provide safe fallbacks
|
||||
def load_type_registry(path: str = "config/types.yaml") -> dict: # type: ignore
|
||||
return {}
|
||||
def resolve_note_type(t, reg): # type: ignore
|
||||
return (t or "concept")
|
||||
def get_type_config(note_type, reg): # type: ignore
|
||||
return {}
|
||||
def effective_chunk_profile(note_type, reg): # type: ignore
|
||||
return None
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------
|
||||
# Helper
|
||||
|
|
@ -248,6 +266,9 @@ def main() -> None:
|
|||
ensure_collections(client, cfg.prefix, cfg.dim)
|
||||
ensure_payload_indexes(client, cfg.prefix)
|
||||
|
||||
# Load Type-Registry once (optional)
|
||||
reg = load_type_registry()
|
||||
|
||||
root = os.path.abspath(args.vault)
|
||||
|
||||
# Dateiliste bestimmen
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user