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
d79c55fc64
commit
0feae50d90
|
|
@ -351,7 +351,6 @@ def main() -> None:
|
||||||
|
|
||||||
changed = args.force_replace or (not has_old) or hash_changed or text_changed
|
changed = args.force_replace or (not has_old) or hash_changed or text_changed
|
||||||
do_baseline_only = (args.baseline_modes and has_old and needs_baseline and not changed)
|
do_baseline_only = (args.baseline_modes and has_old and needs_baseline and not changed)
|
||||||
|
|
||||||
# -------- Chunks / Embeddings --------
|
# -------- Chunks / Embeddings --------
|
||||||
chunk_pls: List[Dict[str, Any]] = []
|
chunk_pls: List[Dict[str, Any]] = []
|
||||||
try:
|
try:
|
||||||
|
|
@ -371,7 +370,6 @@ def main() -> None:
|
||||||
fm["chunk_profile"] = prof
|
fm["chunk_profile"] = prof
|
||||||
weight = cfg_type.get("retriever_weight")
|
weight = cfg_type.get("retriever_weight")
|
||||||
if weight is not None:
|
if weight is not None:
|
||||||
# note_pl exists later; we set it after creation as well
|
|
||||||
fm["retriever_weight"] = float(weight)
|
fm["retriever_weight"] = float(weight)
|
||||||
|
|
||||||
chunks = assemble_chunks(fm["id"], body_text, fm.get("type", "concept"))
|
chunks = assemble_chunks(fm["id"], body_text, fm.get("type", "concept"))
|
||||||
|
|
@ -388,6 +386,7 @@ def main() -> None:
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(json.dumps({"path": path, "note_id": note_id, "warn": f"embed_texts failed, using zeros: {e}"}))
|
print(json.dumps({"path": path, "note_id": note_id, "warn": f"embed_texts failed, using zeros: {e}"}))
|
||||||
|
|
||||||
|
|
||||||
# -------- Edges (robust) --------
|
# -------- Edges (robust) --------
|
||||||
edges: List[Dict[str, Any]] = []
|
edges: List[Dict[str, Any]] = []
|
||||||
edges_failed = False
|
edges_failed = False
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user