fix: support qdrant-only vector maintenance

This commit is contained in:
2026-08-08 18:14:03 +02:00
parent 5e39cfa347
commit 32cd2165eb
9 changed files with 261 additions and 28 deletions
+15
View File
@@ -212,6 +212,21 @@ class QdrantVectorStore:
)
return len(records)
def delete_kinds(self, collection: str, kinds: list[str]) -> int:
_collection("vectors", collection)
_validate_collection_kinds(collection, kinds)
must = [
*self._workspace_filter(),
{"key": "record_kind", "match": {"any": sorted(kinds)}},
]
before = len(self._scroll(must))
self._call(
"POST",
f"/collections/{self._collection}/points/delete?wait=true",
{"filter": {"must": must}},
)
return before
def delete_generation(self, collection: str, generation: str, workspace_id: str) -> int:
if collection != "evidence" or _GENERATION.fullmatch(generation) is None:
raise VectorStoreError("Only exact Evidence generations may be deleted")