Flutter: getVectors

Retrieves vectors by their keys. Set returnData and returnMetadata to include the embeddings and metadata in the result. Keys that do not exist are omitted from the returned list.

Examples

Get vectors by key

final index = supabase.storage.vectors
    .from('embeddings')
    .index('documents');

final List<VectorMatch> vectors = await index.getVectors(
  keys: ['doc-1', 'doc-2'],
  returnData: true,
  returnMetadata: true,
);

for (final vector in vectors) {
  print('${vector.key}: ${vector.metadata}');
}