feat: index semantic records in qdrant
This commit is contained in:
@@ -166,6 +166,7 @@ def _store(fake: FakeQdrantHttp) -> QdrantVectorStore:
|
||||
base_url="http://qdrant:6333",
|
||||
collection="workspace-semantic",
|
||||
workspace_id="demo",
|
||||
workspace_revision="a" * 40,
|
||||
expected_dimension=1024,
|
||||
request=fake.request,
|
||||
)
|
||||
@@ -195,6 +196,7 @@ def test_upsert_creates_collection_and_keyword_indexes_idempotently():
|
||||
"record_kind",
|
||||
"vector_generation",
|
||||
"workspace_id",
|
||||
"workspace_revision",
|
||||
}
|
||||
|
||||
|
||||
@@ -239,6 +241,7 @@ def test_upsert_serializes_qdrant_point_payloads(record, semantic_kind):
|
||||
assert point["id"] == point_id("demo", semantic_kind, record.record.id)
|
||||
assert point["vector"] == record.embedding
|
||||
assert point["payload"]["workspace_id"] == "demo"
|
||||
assert point["payload"]["workspace_revision"] == "a" * 40
|
||||
assert point["payload"]["kind"] == semantic_kind
|
||||
assert point["payload"]["record_kind"] == record.record.kind
|
||||
assert point["payload"]["record_key"] == record.record.id
|
||||
|
||||
Reference in New Issue
Block a user