Flutter: putVectors

Inserts or updates a batch of vectors in the scoped index. The batch must contain between 1 and 500 vectors, and each vector's data length must match the index dimension.

Examples

Put vectors

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

await index.putVectors([
  Vector(
    key: 'doc-1',
    data: [0.1, 0.2, 0.3],
    metadata: {'title': 'Intro'},
  ),
  Vector(
    key: 'doc-2',
    data: [0.4, 0.5, 0.6],
    metadata: {'title': 'Guide'},
  ),
]);