Add virtual attribute for automatically generated edges

- Introduced a `virtual` attribute for automatically generated section transitions and backlinks in the graph edge definitions, indicating their virtual nature.
- Updated documentation to reflect the addition of the `virtual` attribute for both section transitions and backlinks, clarifying its implications for scoring in the retriever.
- Enhanced the understanding of edge types by specifying that these automatically generated edges will receive a penalty during scoring.
This commit is contained in:
Lars committed 2026-01-26 18:37:09 +01:00
1 parent 52ed079067
commit eba2e5d602
2 files changed
+9 -2

No files matched your search

+2
View File
@@ -695,6 +695,7 @@ def build_edges_for_note(
"source_hint": "schema_default",
"confidence": PROVENANCE_PRIORITY.get("schema_default", 0.85),
"is_internal": True, # Explizit als Intra-Note-Edge markieren
"virtual": True, # WP-26 v1.4: Automatisch generierte Section-Transitions sind virtuell
"section_transition": f"{current_type}->{next_type}" # Debug-Info
}))
@@ -1102,6 +1103,7 @@ def build_edges_for_note(
"source_hint": "automatic_backlink",
"confidence": PROVENANCE_PRIORITY.get("derived:backlink", 0.8),
"is_internal": True,
"virtual": True, # WP-26 v1.4: Automatisch generierte Backlinks sind virtuell
"original_edge_kind": kind # Debug-Info: Welcher Edge-Type wurde invertiert
})