Update graph_db_adapter.py, graph_derive_edges.py, graph_subgraph.py, graph_utils.py, ingestion_processor.py, and retriever.py to version 4.1.0: Introduce Scope-Awareness and Section-Filtering features, enhancing edge retrieval and processing. Implement Note-Scope Zones extraction from Markdown, improve edge ID generation with target_section, and prioritize Note-Scope Links during de-duplication. Update documentation for clarity and consistency across modules.

This commit is contained in:
Lars committed 2026-01-10 19:55:51 +01:00
1 parent be2bed9927
commit 39fd15b565
14 files changed
+1004 -37

No files matched your search

+2 -1
View File
@@ -133,7 +133,8 @@ async def analyze_file(file_path: str):
"chunk_id": chunk.id,
"type": "concept"
}
edges = build_edges_for_note(note_id, [chunk_pl])
# WP-24c v4.2.0: Übergabe des Markdown-Bodys für Note-Scope Zonen
edges = build_edges_for_note(note_id, [chunk_pl], markdown_body=text)
found_explicitly = [f"{e['kind']}:{e.get('target_id')}" for e in edges if e['rule_id'] in ['callout:edge', 'inline:rel']]
+2
View File
@@ -129,11 +129,13 @@ def main():
chunks = _simple_chunker(parsed.body, note_id, note_type)
note_refs = _fm_note_refs(fm)
# WP-24c v4.2.0: Übergabe des Markdown-Bodys für Note-Scope Zonen
edges = build_edges_for_note(
note_id=note_id,
chunks=chunks,
note_level_references=note_refs,
include_note_scope_refs=include_note_scope,
markdown_body=parsed.body if parsed else None,
)
kinds = {}
for e in edges:
+2
View File
@@ -138,11 +138,13 @@ async def process_file(path: str, root: str, args):
}
if args.with_edges:
# WP-24c v4.2.0: Übergabe des Markdown-Bodys für Note-Scope Zonen
edges = build_edges_for_note(
note_id=note_pl.get("note_id") or fm.get("id"),
chunks=chunk_pls,
note_level_references=note_pl.get("references") or [],
include_note_scope_refs=False,
markdown_body=body_text,
)
kinds = {}
for e in edges: