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

Function _make_docs

python/tests/test_iter_docs.py:69–77  ·  view source on GitHub ↗
(n: int)

Source from the content-addressed store, hash-verified

67
68
69def _make_docs(n: int) -> list[Doc]:
70 return [
71 Doc(
72 id=f"{i}",
73 fields={"id": i, "name": f"name_{i}", "weight": float(i)},
74 vectors={"dense": [float(i)] * 8},
75 )
76 for i in range(n)
77 ]
78
79
80def test_iter_docs_basic(iter_collection):

Calls 1

DocClass · 0.90

Tested by

no test coverage detected