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

Method vector_search

nodedb-client/src/remote/client/dispatch.rs:29–38  ·  view source on GitHub ↗
(
        &self,
        collection: &str,
        query: &[f32],
        k: usize,
        filter: Option<&MetadataFilter>,
        _allowed_ids: Option<&std::collections::HashSet<String>>,
    )

Source from the content-addressed store, hash-verified

27#[cfg_attr(target_arch = "wasm32", async_trait(?Send))]
28impl NodeDb for NodeDbRemote {
29 async fn vector_search(
30 &self,
31 collection: &str,
32 query: &[f32],
33 k: usize,
34 filter: Option<&MetadataFilter>,
35 _allowed_ids: Option<&std::collections::HashSet<String>>,
36 ) -> NodeDbResult<Vec<SearchResult>> {
37 self.vector_search_impl(collection, query, k, filter).await
38 }
39
40 async fn vector_insert_field(
41 &self,

Callers

nothing calls this directly

Calls 1

vector_search_implMethod · 0.45

Tested by

no test coverage detected