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

Method test_query_accepts_param

python/tests/test_params.py:513–517  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

511 assert param.type == IndexType.IVF_RABITQ
512
513 def test_query_accepts_param(self):
514 param = IvfRabitqQueryParam(nprobe=20)
515 query = Query(field_name="embedding", vector=[0.1, 0.2], param=param)
516 assert query.param == param
517 assert query.param.type == IndexType.IVF_RABITQ
518
519 def test_pickle_roundtrip(self):
520 import pickle

Callers

nothing calls this directly

Calls 1

QueryClass · 0.90

Tested by

no test coverage detected