Dateien nach "app/core" hochladen
All checks were successful
Deploy mindnet to llm-node / deploy (push) Successful in 4s

This commit is contained in:
Lars 2025-11-08 17:11:17 +01:00
parent 3b192e2eed
commit 0fa4aa7280

View File

@ -27,7 +27,19 @@ Lizenz: MIT (projektintern)
"""
from __future__ import annotations
def _overlap_from_frontmatter(frontmatter: Dict[str, Any], fallback: Tuple[int,int]) -> Tuple[int,int]:
prof = str(frontmatter.get("chunk_profile") or "").strip().lower()
if prof:
try:
return profile_overlap(prof)
except Exception:
return fallback
return fallback
from typing import Any, Dict, Iterable, List, Optional, Tuple, Union
from app.core.type_registry import profile_overlap
try:
# Typgerechtes Overlap aus deiner Konfiguration holen