Dateien nach "scripts" hochladen
All checks were successful
Deploy mindnet to llm-node / deploy (push) Successful in 3s

This commit is contained in:
Lars 2025-11-16 18:44:46 +01:00
parent 0513673c2a
commit f394f31c12

View File

@ -432,6 +432,13 @@ def main() -> None:
text_changed = (old_text != new_text)
changed = args.force_replace or (not has_old) or hash_changed or text_changed
# Treat payload field diffs (retriever_weight/chunk_profile) as change to force update
if has_old:
old_rw = old_payload.get('retriever_weight')
old_cp = old_payload.get('chunk_profile')
if old_rw != note_pl.get('retriever_weight') or old_cp != fm.get('chunk_profile'):
changed = True
do_baseline_only = (args.baseline_modes and has_old and needs_baseline and not changed)
# --- Chunks + Embeddings vorbereiten ---
@ -457,7 +464,7 @@ def main() -> None:
note_pl["path"],
chunks,
note_text=body_text,
types_cfg=(types_cfg if isinstance(types_cfg, dict) else {}),
types_cfg=(reg.get('types') if isinstance(reg, dict) and isinstance(reg.get('types'), dict) else reg if isinstance(reg, dict) else {}),
file_path=path,
)
except Exception as e: