(&self, vector: Vec<f32>)
| 44 | |
| 45 | #[inline] |
| 46 | pub async fn vec_insert_with_uuid(&self, vector: Vec<f32>) -> Result<(), SessionResult> { |
| 47 | match self.datastores.get::<VecStorage>() { |
| 48 | None => Err(SessionResult::DataStoreNotFound), |
| 49 | Some(datastore) => { |
| 50 | datastore.insert_with_uuid(vector).await |
| 51 | } |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | #[inline] |
| 56 | pub async fn vec_remove(&self, vector_id: VectorId) -> Result<(), SessionResult> { |