MCPcopy Create free account
hub / github.com/Rustixir/darkbird / vec_insert_with_uuid

Method vec_insert_with_uuid

src/darkbird/database.rs:46–53  ·  view source on GitHub ↗
(&self, vector: Vec<f32>)

Source from the content-addressed store, hash-verified

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> {

Callers 2

mainFunction · 0.80
k_nearest_neighborsFunction · 0.80

Calls 1

insert_with_uuidMethod · 0.80

Tested by 1

k_nearest_neighborsFunction · 0.64