Graph-Native Infrastructure for Context and Accountable AI Systems
Python agent-memoryaiai-governanceai-infrastructureartificial-intelligencecontext-engineeringcontext-graphsdata-engineeringdecision-intelligencedeveloper-toolsexplainable-aigenerative-aigraph-ragknowledge-graphllmontologyprovenancepythonreasoningsemantic-search
fix(vector_store): normalize QdrantStore.search_vectors() to return "metadata"
shahb7ac05b6f2b0
diff --git a/semantica/vector_store/qdrant_store.py b/semantica/vector_store/qdrant_store.pyindex 8bc0c357..88e5b397 100644--- a/semantica/vector_store/qdrant_store.py+++ b/semantica/vector_store/qdrant_store.py@@ -165,7 +165,7 @@ class QdrantCollection:{"id": result.id,"score": result.score,- "payload": result.payload or {},+ "metadata": result.payload or {},})diff --git a/tests/vector_store/test_vector_store_deepdive.py b/tests/vector_store/test_vector_store_deepdive.pyindex 2cd2bf94..7c7beb7c 100644--- a/tests/vector_store/test_vector_store_deepdive.py+++ b/tests/vector_store/test_vector_store_deepdive.py@@ -232,6 +232,16 @@ class TestVectorStoreDeepDive(unittest.TestCase):self.assertEqual(len(results), 1)self.assertEqual(results[0]["id"], "vec_1")+ self.assertIn("metadata", results[0])+ self.assertNotIn("payload", results[0])+ self.assertEqual(results[0]["metadata"], {"type": "a"})++ hybrid = HybridSearch()+ matched = hybrid.filter_by_metadata(+ results, MetadataFilter().eq("type", "a")+ )+ self.assertEqual(len(matched), 1)+@patch('semantica.vector_store.weaviate_store.weaviate')@patch('semantica.vector_store.weaviate_store.MetadataQuery')@patch('semantica.vector_store.weaviate_store.WEAVIATE_AVAILABLE', True)