MCPcopy Create free account
hub / github.com/alibaba/zvec / test_with_single_vector

Method test_with_single_vector

python/tests/test_doc.py:32–36  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

30 Doc(id="1")
31
32 def test_with_single_vector(self):
33 doc = Doc(id="1", vectors={"dense": [1, 2, 3]})
34 assert doc is not None
35 assert doc.id == "1"
36 assert doc.vector("dense") == [1, 2, 3]
37
38 def test_with_hybrid_vectors(self):
39 doc = Doc(

Callers

nothing calls this directly

Calls 2

vectorMethod · 0.95
DocClass · 0.90

Tested by

no test coverage detected