chore: initial commit — existing single-user document scanner codebase

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
curo1305
2026-05-22 08:53:28 +02:00
parent 6fed5ba531
commit 7a34807fa0
71 changed files with 16408 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
from abc import ABC, abstractmethod
from dataclasses import dataclass, field
@dataclass
class ClassificationResult:
topics: list[str] = field(default_factory=list)
suggested_new_topics: list[str] = field(default_factory=list)
reasoning: str = ""
class AIProvider(ABC):
@abstractmethod
async def classify(
self,
document_text: str,
existing_topics: list[str],
system_prompt: str,
) -> ClassificationResult:
...
@abstractmethod
async def suggest_topics(
self,
document_text: str,
system_prompt: str,
) -> list[str]:
...
@abstractmethod
async def health_check(self) -> bool:
...