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:
1 parent
52ed079067
commit
eba2e5d602
2 files changed
+9
-2
No files matched your search
@@ -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
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user