π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
vectordb api add documentation
laurenspriemd87069eb4c3e
diff --git a/mobile/lib/src/rust/api/usearch_api.dart b/mobile/lib/src/rust/api/usearch_api.dartindex c7f47800ff..80f9a40fe5 100644--- a/mobile/lib/src/rust/api/usearch_api.dart+++ b/mobile/lib/src/rust/api/usearch_api.dart@@ -24,6 +24,8 @@ abstract class VectorDb implements RustOpaqueInterface {Future<(List<Uint64List>, List<Float32List>)> bulkSearchVectors({required List<Float32List> queries, required BigInt count});+ /// Check if a vector with the given key exists in the index.+ /// `true` if the index contains the vector with the given key, `false` otherwise.Future<bool> containsVector({required BigInt key});Future<void> deleteIndex();diff --git a/mobile/lib/src/rust/frb_generated.dart b/mobile/lib/src/rust/frb_generated.dartindex 9a841e1e4f..ef200514f3 100644--- a/mobile/lib/src/rust/frb_generated.dart+++ b/mobile/lib/src/rust/frb_generated.dart@@ -1089,6 +1089,8 @@ class VectorDbImpl extends RustOpaque implements VectorDb {RustLib.instance.api.crateApiUsearchApiVectorDbBulkSearchVectors(that: this, queries: queries, count: count);+ /// Check if a vector with the given key exists in the index.+ /// `true` if the index contains the vector with the given key, `false` otherwise.Future<bool> containsVector({required BigInt key}) => RustLib.instance.api.crateApiUsearchApiVectorDbContainsVector(that: this, key: key);diff --git a/mobile/rust/src/api/usearch_api.rs b/mobile/rust/src/api/usearch_api.rsindex 742a39ba85..8d4d8f6cae 100644--- a/mobile/rust/src/api/usearch_api.rs+++ b/mobile/rust/src/api/usearch_api.rs@@ -100,6 +100,8 @@ impl VectorDB {(keys, distances)}+ /// Check if a vector with the given key exists in the index.+ /// `true` if the index contains the vector with the given key, `false` otherwise.pub fn contains_vector(&self, key: u64) -> bool {self.index.contains(key)}