fix(evidence): enforce active vector generations
This commit is contained in:
@@ -12,6 +12,8 @@ class VectorCapabilities:
|
||||
search: bool = True
|
||||
existing_hashes: bool = False
|
||||
upsert: bool = False
|
||||
metadata_filter: bool = False
|
||||
delete_generation: bool = False
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
@@ -70,12 +72,15 @@ class VectorStore(Protocol):
|
||||
*,
|
||||
limit: int,
|
||||
kinds: list[str] | None = None,
|
||||
metadata_filter: dict[str, object] | None = None,
|
||||
) -> list[VectorHit]: ...
|
||||
|
||||
def existing_hashes(self, collection: str, kinds: list[str]) -> dict[str, str]: ...
|
||||
|
||||
def upsert(self, collection: str, records: list[VectorWriteRecord]) -> int: ...
|
||||
|
||||
def delete_generation(self, collection: str, generation: str) -> int: ...
|
||||
|
||||
|
||||
__all__ = [
|
||||
"VectorCapabilities",
|
||||
|
||||
Reference in New Issue
Block a user