Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

VectorDataApi

import { VectorDataApi } from "https://esm.sh/@supabase/storage-js@2.95.3/dist/index.d.mts";
class VectorDataApi extends BaseApiClient<StorageError> {
constructor(
url: string,
headers?: {
[key: string]: string;
}
,
fetch?: Fetch,
);
deleteVectors(options: DeleteVectorsOptions): Promise<ApiResponse<undefined>>;
getVectors(options: GetVectorsOptions): Promise<ApiResponse<GetVectorsResponse>>;
listVectors(options: ListVectorsOptions): Promise<ApiResponse<ListVectorsResponse>>;
putVectors(options: PutVectorsOptions): Promise<ApiResponse<undefined>>;
queryVectors(options: QueryVectorsOptions): Promise<ApiResponse<QueryVectorsResponse>>;
}

§Extends

§
BaseApiClient<StorageError>
[src]

§Constructors

§
new VectorDataApi(url: string, headers?: {
[key: string]: string;
}
, fetch?: Fetch)
[src]

Creates a new VectorDataApi instance

§Methods

§
deleteVectors(options: DeleteVectorsOptions): Promise<ApiResponse<undefined>>
[src]

Deletes vectors by their keys in batch (1-500 per request)

§
getVectors(options: GetVectorsOptions): Promise<ApiResponse<GetVectorsResponse>>
[src]

Retrieves vectors by their keys in batch

§

Lists vectors in an index with pagination

§
putVectors(options: PutVectorsOptions): Promise<ApiResponse<undefined>>
[src]

Inserts or updates vectors in batch (1-500 per request)

§

Queries for similar vectors using approximate nearest neighbor search