(
txn_count, batch_count, batch_size, dimensions, perturbation_degree
)
| 308 | |
| 309 | |
| 310 | def generate_vectors( |
| 311 | txn_count, batch_count, batch_size, dimensions, perturbation_degree |
| 312 | ): |
| 313 | vectors = [ |
| 314 | generate_random_vector_with_id(id, dimensions) |
| 315 | for id in range(txn_count * batch_count * batch_size) |
| 316 | ] |
| 317 | np.random.shuffle(vectors) |
| 318 | return vectors |
| 319 | |
| 320 | |
| 321 | def search(vectors, vector_db_name, query): |
nothing calls this directly
no test coverage detected