symfonic.core.learning.phases_synthetic¶
phases_synthetic ¶
Phase 11 -- Synthetic linking (episodic -> semantic cross-pollination).
Scans recent episodic turns for semantic-node co-occurrences, emits candidate edges with provenance='synthetic' for pairs that co-occur
= min_co_count times AND have no existing edge.
build_synthetic_links
async
¶
build_synthetic_links(
graph: Any,
episodic_layer: Any,
scope: TenantScope,
*,
min_co_count: int = DEFAULT_MIN_CO_COUNT,
init_weight: float = DEFAULT_SYNTHETIC_WEIGHT,
max_pairs: int = 500,
gate: DurabilityGate | None = None,
) -> int
Phase 11 -- Scan recent episodic turns for semantic-node co-occurrences, emit candidate edges with provenance='synthetic' for pairs that co-occur
= min_co_count times AND have no existing edge.
Returns the number of synthetic edges created.