Add engine abstraction

This commit is contained in:
2025-09-26 14:38:44 +00:00
parent de9826a4b6
commit 0656ed93f1
6 changed files with 168 additions and 42 deletions

View File

@@ -6,4 +6,22 @@ from pydantic import BaseModel
class SearchRow(BaseModel):
chunk_id: str
score: float
payload: dict[str, Any]
payload: dict[str, Any] # type: ignore[reportExplicitAny]
class Condition(BaseModel): ...
class Match(Condition):
key: str
value: str
class MatchAny(Condition):
key: str
any: list[str]
class MatchExclude(Condition):
key: str
exclude: list[str]