Dart: Vectors and backups
Store and search embeddings, and list, take and restore database backups with the Dart and Flutter SDK.
Store and search embeddings, and list, take and restore database backups. Every call runs as the client's signed-in user, so your project's policies and row-level security apply. Types and members are listed in source order; each one links to its HTTP endpoint where it maps to one.
#Types and members
SovariaVectorsBackups.knowledgeSearch
Passages for a question with numbered citations; only passages the signed-in user may read.
Future<Map<String, Object?>> knowledgeSearch(String name, String query,
{int k = 5, String? mode, List<String>? documentIds, Map<String, Object?>? metadataFilter, bool rerank = false})documentIds (up to 50) scopes the search; rerank reorders with the managed reranker.
SovariaVectorsBackups.vectorSearch
Nearest rows of a SQL table (pgvector): text is embedded with the project's model, or pass vector.
Future<Map<String, Object?>> vectorSearch(
{required String table, String? text, List<num>? vector, int k = 5, String? mode, String column = "",
Map<String, Object?>? filter, bool rerank = false})mode vector | keyword | hybrid; row-level security applies.
SovariaVectorsBackups.downloadDatabaseBackup
Download a completed backup (gzip plain SQL): the whole database, owners, admins and developers only.
Future<Uint8List> downloadDatabaseBackup(int backupId, {String? orgId, String? projectId})