Update qdrant_points.py, ingestion_processor.py, and import_markdown.py to version 4.1.0: Enhance edge ID generation by incorporating target_section for improved multigraph support and symmetry integrity. Update documentation and logging for clarity, ensuring consistent ID generation across phases and compatibility with the ingestion workflow.

This commit is contained in:
Lars committed 2026-01-10 17:03:44 +01:00
1 parent 2da98e8e37
commit be2bed9927
3 files changed
+78 -24

No files matched your search

+15 -3
View File
@@ -2,9 +2,9 @@
# -*- coding: utf-8 -*-
"""
FILE: scripts/import_markdown.py
VERSION: 2.6.1 (2026-01-10)
VERSION: 2.6.2 (WP-24c: Gold-Standard v4.1.0)
STATUS: Active (Core)
COMPATIBILITY: IngestionProcessor v3.4.2+, graph_utils v1.6.2+
COMPATIBILITY: IngestionProcessor v4.0.0+, graph_utils v4.1.0+
Zweck:
-------
@@ -108,7 +108,19 @@ async def main_async(args):
# Diese Liste stellt sicher, dass keine System-Leichen oder temporäre Dateien
# den Graphen korrumpieren oder zu ID-Kollisionen führen.
files = []
ignore_list = [".trash", ".obsidian", ".sync", "templates", "_system", ".git"]
# WP-24c v4.1.0: MINDNET_IGNORE_FOLDERS aus Umgebungsvariable
# Format: Komma-separierte Liste von Ordnernamen (z.B. "trash,temp,archive")
env_ignore = os.getenv("MINDNET_IGNORE_FOLDERS", "")
env_ignore_list = [f.strip() for f in env_ignore.split(",") if f.strip()] if env_ignore else []
# Standard-Ignore-Liste (System-Ordner)
default_ignore_list = [".trash", ".obsidian", ".sync", "templates", "_system", ".git"]
# Kombinierte Ignore-Liste (Umgebungsvariable hat Priorität, wird mit Defaults kombiniert)
ignore_list = list(set(default_ignore_list + env_ignore_list))
logger.info(f"📁 Ignore-Liste: {ignore_list}")
for f in all_files_raw:
f_str = str(f)