feat(ocr): per-sender specialized Kurrent models with automatic active-learning retraining #263

Merged
marcel merged 32 commits from feat/issue-253-sender-models into main 2026-04-18 12:30:57 +02:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 64a854aad6 - Show all commits

View File

@@ -72,7 +72,7 @@ class _SenderModelRegistry:
with self._lock:
return len(self._cache)
def contains(self, model_path: str) -> bool:
def _contains(self, model_path: str) -> bool:
with self._lock:
return model_path in self._cache

View File

@@ -43,7 +43,7 @@ def test_lru_eviction_removes_least_recently_used():
assert registry.size() == 2
# 'a' was the least-recently-used and should be gone
assert not registry.contains("/app/models/sender_a.mlmodel")
assert not registry._contains("/app/models/sender_a.mlmodel")
def test_invalidate_removes_entry_from_cache():