Chiusura fase di ristrutturazione e modularizzazione del workflow per favorire sviluppo modulare
This commit is contained in:
@@ -55,7 +55,7 @@ def _extract_name(question: str) -> str:
|
||||
try:
|
||||
extractor = yake.KeywordExtractor(lan="it", n=1, top=8, dedupLim=0.9)
|
||||
ranked = [k for k, _ in extractor.extract_keywords(q)]
|
||||
except Exception:
|
||||
except Exception: # noqa: BLE001 - keyword extraction has a deterministic fallback
|
||||
return _summarize(question)
|
||||
seen: set[str] = set()
|
||||
picked: list[str] = []
|
||||
@@ -117,7 +117,7 @@ def create_session(
|
||||
from tht.workflow import load_workflow
|
||||
|
||||
schema_version = load_workflow().schema_version
|
||||
except Exception:
|
||||
except Exception: # noqa: BLE001 - legacy sessions may predate workflow metadata
|
||||
schema_version = None
|
||||
manifest = SessionManifest(
|
||||
id=session_id, created_at=now, question=question,
|
||||
|
||||
Reference in New Issue
Block a user