MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / vector_insert

Method vector_insert

nodedb-client/src/native/client/dispatch.rs:66–75  ·  view source on GitHub ↗
(
        &self,
        collection: &str,
        id: &str,
        embedding: &[f32],
        metadata: Option<Document>,
    )

Source from the content-addressed store, hash-verified

64 }
65
66 async fn vector_insert(
67 &self,
68 collection: &str,
69 id: &str,
70 embedding: &[f32],
71 metadata: Option<Document>,
72 ) -> NodeDbResult<()> {
73 self.vector_insert_impl(collection, id, embedding, metadata)
74 .await
75 }
76
77 async fn vector_delete(&self, collection: &str, id: &str) -> NodeDbResult<()> {
78 self.vector_delete_impl(collection, id).await

Callers

nothing calls this directly

Calls 1

vector_insert_implMethod · 0.45

Tested by

no test coverage detected