(&self, vector_id: VectorId, vector: Vec<f32>)
| 34 | |
| 35 | #[inline] |
| 36 | pub async fn vec_insert(&self, vector_id: VectorId, vector: Vec<f32>) -> Result<(), SessionResult> { |
| 37 | match self.datastores.get::<VecStorage>() { |
| 38 | None => Err(SessionResult::DataStoreNotFound), |
| 39 | Some(datastore) => { |
| 40 | datastore.insert(vector_id, vector).await |
| 41 | } |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | #[inline] |
| 46 | pub async fn vec_insert_with_uuid(&self, vector: Vec<f32>) -> Result<(), SessionResult> { |