fix: close task3 qdrant and config quality gaps

This commit is contained in:
2026-08-11 08:06:18 +02:00
parent 88d1790728
commit b7ea5443b3
8 changed files with 290 additions and 47 deletions
+6 -2
View File
@@ -80,6 +80,8 @@ class FakeQdrantHttp:
return FakeResponse(200, {"result": {"status": "acknowledged"}})
if method == "POST" and path == "/collections/workspace-semantic/points/query":
if self.collection is None:
return FakeResponse(404, {"status": "error"})
if self.malformed_query:
return FakeResponse(200, {"result": {"points": "nope"}})
wanted = _match_points(self.points.values(), json["filter"])
@@ -97,6 +99,8 @@ class FakeQdrantHttp:
return FakeResponse(200, {"result": {"points": scored[: json["limit"]]}})
if method == "POST" and path == "/collections/workspace-semantic/points/scroll":
if self.collection is None:
return FakeResponse(404, {"status": "error"})
if self.malformed_scroll:
return FakeResponse(200, {"result": {"points": "bad"}})
if self.scroll_pages is not None:
@@ -118,6 +122,8 @@ class FakeQdrantHttp:
return FakeResponse(200, {"result": {"points": wanted, "next_page_offset": None}})
if method == "POST" and path == "/collections/workspace-semantic/points/delete":
if self.collection is None:
return FakeResponse(404, {"status": "error"})
doomed = [point["id"] for point in _match_points(self.points.values(), json["filter"])]
for point_id_value in doomed:
self.points.pop(point_id_value, None)
@@ -159,5 +165,3 @@ def _write_record(record_id: str, kind: str, *, metadata=None):
embedding=[0.1] * 1024,
content_hash="sha256:" + "a" * 64,
)