Enhance compatibility in chunking and edge processing for version 4.4.1: Harmonize handling of "to" and "target_id" across chunking_processor.py, graph_derive_edges.py, and ingestion_processor.py. Ensure consistent validation and processing of explicit callouts, improving integration and reliability in edge candidate handling.

This commit is contained in:
Lars committed 2026-01-11 15:39:03 +01:00
1 parent d7d6155203
commit 2d87f9d816
3 files changed
+22 -5

No files matched your search

+8 -1
View File
@@ -87,8 +87,15 @@ async def assemble_chunks(note_id: str, md_text: str, note_type: str, config: Op
if len(parts) == 2:
k, t = parts
# WP-24c v4.2.7: Callout-Kanten erhalten explicit:callout Provenance
# WP-24c v4.4.1: Harmonisierung - Provenance muss exakt "explicit:callout" sein
provenance = "explicit:callout" if is_callout else "explicit"
ch.candidate_pool.append({"kind": k, "to": t, "provenance": provenance})
# WP-24c v4.4.1: Verwende "to" für Kompatibilität (wird auch in graph_derive_edges.py erwartet)
# Zusätzlich "target_id" für maximale Kompatibilität mit ingestion_processor Validierung
pool_entry = {"kind": k, "to": t, "provenance": provenance}
if is_callout:
# WP-24c v4.4.1: Für Callouts auch "target_id" hinzufügen für Validierung
pool_entry["target_id"] = t
ch.candidate_pool.append(pool_entry)
# WP-24c v4.4.0-DEBUG: Schnittstelle 1 - Logging
if is_callout: