Enhance logging and debugging in chunking_processor.py, graph_derive_edges.py, and ingestion_chunk_payload.py for version 4.4.0: Introduce detailed debug statements to trace chunk extraction, global scan comparisons, and payload transfers. Improve visibility into candidate pool handling and decision-making processes for callout edges, ensuring better traceability and debugging capabilities.
This commit is contained in:
1 parent
ee91583614
commit
c91910ee9f
3 files changed
+62
-2
No files matched your search
@@ -112,6 +112,16 @@ def make_chunk_payloads(note: Dict[str, Any], note_path: str, chunks_from_chunke
|
||||
# Audit: Cleanup Pop (Vermeidung von redundanten Alias-Feldern)
|
||||
for alias in ("chunk_num", "Chunk_Number"):
|
||||
pl.pop(alias, None)
|
||||
|
||||
# WP-24c v4.4.0-DEBUG: Schnittstelle 2 - Transfer
|
||||
# Log-Output unmittelbar bevor das Dictionary zurückgegeben wird
|
||||
pool_size = len(candidate_pool) if candidate_pool else 0
|
||||
pool_content = candidate_pool if candidate_pool else []
|
||||
explicit_callout_in_pool = [c for c in pool_content if isinstance(c, dict) and c.get("provenance") == "explicit:callout"]
|
||||
logger.debug(f"DEBUG-TRACER [Payload]: Chunk ID: {cid}, Index: {index}, Pool-Size: {pool_size}, Pool-Inhalt: {pool_content}, Explicit-Callout-Count: {len(explicit_callout_in_pool)}, Has_Candidate_Pool_Key: {'candidate_pool' in pl}")
|
||||
if explicit_callout_in_pool:
|
||||
for ec in explicit_callout_in_pool:
|
||||
logger.debug(f"DEBUG-TRACER [Payload]: Explicit-Callout Detail - Kind: {ec.get('kind')}, To: {ec.get('to')}, Provenance: {ec.get('provenance')}")
|
||||
|
||||
out.append(pl)
|
||||
|
||||
|
||||
Reference in new issue
Block a user