(len: usize)
| 391 | use tempfile::tempdir; |
| 392 | |
| 393 | fn random_string(len: usize) -> String { |
| 394 | thread_rng() |
| 395 | .sample_iter(&Alphanumeric) |
| 396 | .take(len) |
| 397 | .map(char::from) |
| 398 | .collect() |
| 399 | } |
| 400 | |
| 401 | fn random_vector() -> RawVectorEmbedding { |
| 402 | let mut rng = thread_rng(); |
no outgoing calls