JavaScript: putVectors

Inserts or updates vectors in this index Convenience method that automatically includes bucket and index names

Public alpha: This API is part of a public alpha release and may not be available to your account type.

Parameters

Examples

Insert vectors into an index

const index = supabase.storage.vectors.from('embeddings-prod').index('documents-openai')
await index.putVectors({
  vectors: [
    {
      key: 'doc-1',
      data: { float32: [0.1, 0.2, ...] },
      metadata: { title: 'Introduction', page: 1 }
    }
  ]
})