(self)
| 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 |