fix: remove http delete-kinds regression

This commit is contained in:
2026-08-08 18:21:20 +02:00
parent 32cd2165eb
commit 820b237239
8 changed files with 130 additions and 27 deletions
@@ -155,14 +155,6 @@ class ThothHttpVectorStore:
except VectorRestError as exc:
raise VectorStoreError(str(exc)) from exc
def delete_kinds(self, collection: str, kinds: list[str]) -> int:
_collection("vectors", collection)
_validate_collection_kinds(collection, kinds)
try:
return self._require_writer().delete_kinds(collection, kinds)
except VectorRestError as exc:
raise VectorStoreError(str(exc)) from exc
def delete_generation(self, collection: str, generation: str, workspace_id: str) -> int:
if collection != "evidence" or re.fullmatch(r"gen:[0-9a-f]{32}", generation) is None:
raise VectorStoreError("Only exact Evidence generations may be deleted")