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

Method vector_search

nodedb-client/src/native/client/dispatch.rs:55–64  ·  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

53 }
54
55 async fn vector_search(
56 &self,
57 collection: &str,
58 query: &[f32],
59 k: usize,
60 filter: Option<&MetadataFilter>,
61 _allowed_ids: Option<&std::collections::HashSet<String>>,
62 ) -> NodeDbResult<Vec<SearchResult>> {
63 self.vector_search_impl(collection, query, k, filter).await
64 }
65
66 async fn vector_insert(
67 &self,

Callers

nothing calls this directly

Calls 1

vector_search_implMethod · 0.45

Tested by

no test coverage detected