For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.
Creates a new vector index in the scoped bucket. dimension is the length of the vectors the index will store and distanceMetric is the metric used for similarity queries. Keys listed in nonFilterableMetadataKeys can be stored on vectors but not used in query filters. dataType defaults to VectorDataType.float32.
final bucket = supabase.storage.vectors.from('embeddings');
await bucket.createIndex(
name: 'documents',
dimension: 3,
distanceMetric: DistanceMetric.cosine,
);
final bucket = supabase.storage.vectors.from('embeddings');
await bucket.createIndex(
name: 'documents',
dimension: 3,
distanceMetric: DistanceMetric.euclidean,
nonFilterableMetadataKeys: ['rawText'],
);