Remove entries for a specific memory.
(&self, memory_id: &MemoryId)
| 72 | |
| 73 | /// Remove entries for a specific memory. |
| 74 | pub async fn remove(&self, memory_id: &MemoryId) { |
| 75 | let mut entries = self.entries.write().await; |
| 76 | entries.retain(|e| &e.memory_id != memory_id); |
| 77 | } |
| 78 | |
| 79 | /// Replace the embedding for an existing memory. |
| 80 | pub async fn update(&self, memory_id: &MemoryId, embedding: Vec<f32>) { |
no outgoing calls