Dateien nach "app/core" hochladen
All checks were successful
Deploy mindnet to llm-node / deploy (push) Successful in 4s
All checks were successful
Deploy mindnet to llm-node / deploy (push) Successful in 4s
This commit is contained in:
parent
3b192e2eed
commit
0fa4aa7280
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user