Insert a vector. Returns the global vector ID.
(&mut self, vector: Vec<f32>)
| 9 | impl VectorCollection { |
| 10 | /// Insert a vector. Returns the global vector ID. |
| 11 | pub fn insert(&mut self, vector: Vec<f32>) -> u32 { |
| 12 | let id = self.next_id; |
| 13 | self.growing.insert(vector); |
| 14 | self.next_id += 1; |
| 15 | id |
| 16 | } |
| 17 | |
| 18 | /// Insert a vector with an associated surrogate. The surrogate is |
| 19 | /// allocated by the Control Plane before the call; the engine only |
no outgoing calls
no test coverage detected