(len: usize)
| 177 | use tempfile::tempdir; |
| 178 | |
| 179 | fn random_string(len: usize) -> String { |
| 180 | thread_rng() |
| 181 | .sample_iter(&Alphanumeric) |
| 182 | .take(len) |
| 183 | .map(char::from) |
| 184 | .collect() |
| 185 | } |
| 186 | |
| 187 | fn random_vector() -> RawVectorEmbedding { |
| 188 | let mut rng = thread_rng(); |
no outgoing calls