Dateien nach "scripts" hochladen
All checks were successful
Deploy mindnet to llm-node / deploy (push) Successful in 2s
All checks were successful
Deploy mindnet to llm-node / deploy (push) Successful in 2s
This commit is contained in:
parent
98a6f5c480
commit
d79c55fc64
|
|
@ -356,8 +356,26 @@ def main() -> None:
|
||||||
chunk_pls: List[Dict[str, Any]] = []
|
chunk_pls: List[Dict[str, Any]] = []
|
||||||
try:
|
try:
|
||||||
body_text = getattr(parsed, "body", "") or ""
|
body_text = getattr(parsed, "body", "") or ""
|
||||||
chunks = assemble_chunks(fm["id"], body_text, fm.get("type", "concept"))
|
# ---- Type-Registry integration ----
|
||||||
chunk_pls = make_chunk_payloads(fm, note_pl["path"], chunks, note_text=body_text)
|
try:
|
||||||
|
note_type = resolve_note_type(fm.get("type"), reg)
|
||||||
|
except Exception:
|
||||||
|
note_type = (fm.get("type") or "concept")
|
||||||
|
fm["type"] = note_type or "concept"
|
||||||
|
try:
|
||||||
|
cfg_type = get_type_config(note_type, reg)
|
||||||
|
except Exception:
|
||||||
|
cfg_type = {}
|
||||||
|
prof = effective_chunk_profile(note_type, reg)
|
||||||
|
if prof:
|
||||||
|
fm["chunk_profile"] = prof
|
||||||
|
weight = cfg_type.get("retriever_weight")
|
||||||
|
if weight is not None:
|
||||||
|
# note_pl exists later; we set it after creation as well
|
||||||
|
fm["retriever_weight"] = float(weight)
|
||||||
|
|
||||||
|
chunks = assemble_chunks(fm["id"], body_text, fm.get("type", "concept"))
|
||||||
|
chunk_pls = make_chunk_payloads(fm, note_pl["path"], chunks, note_text=body_text)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(json.dumps({"path": path, "note_id": note_id, "error": f"chunk build failed: {type(e).__name__}: {e}"}))
|
print(json.dumps({"path": path, "note_id": note_id, "error": f"chunk build failed: {type(e).__name__}: {e}"}))
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user