(d_client)
| 108 | |
| 109 | @skip_if_server_version_lt("7.9.0") |
| 110 | def test_add_elem_q8_quant(d_client): |
| 111 | float_array = [1, 4.32, 10.0, -21, -2.9] |
| 112 | resp = d_client.vset().vadd( |
| 113 | "myset", |
| 114 | vector=float_array, |
| 115 | element="elem1", |
| 116 | quantization=QuantizationOptions.BIN, |
| 117 | ) |
| 118 | assert resp == 1 |
| 119 | |
| 120 | emb = d_client.vset().vemb("myset", "elem1") |
| 121 | expected_array = [1, 1, 1, -1, -1] |
| 122 | assert _validate_quantization(expected_array, emb, tolerance=0.0) |
| 123 | |
| 124 | |
| 125 | @skip_if_server_version_lt("7.9.0") |
nothing calls this directly
no test coverage detected