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

Method test_with_single_vector

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

vectorMethod · 0.95
DocClass · 0.90

Tested by

no test coverage detected