This commit is contained in:
1 parent
3b192e2eed
commit
0fa4aa7280
1 file changed
+12
@@ -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
|
||||
|
||||
Reference in new issue
Block a user