(values)
| 254 | return hits |
| 255 | |
| 256 | def native_vector(values): |
| 257 | vector = np.asarray(values, dtype=np.float32) |
| 258 | if effective_flat_data_type == DataType.VECTOR_FP16: |
| 259 | return vector.astype(np.float16).astype(np.float32) |
| 260 | if effective_flat_data_type == DataType.VECTOR_UINT8: |
| 261 | return vector.astype(np.uint8).astype(np.float32) |
| 262 | return vector |
| 263 | |
| 264 | def assert_native_fetch(collection, doc_index): |
| 265 | fetched = collection.fetch(ids=[str(doc_index)])[str(doc_index)] |
no outgoing calls
no test coverage detected