Skip to content

SupabaseVectorStore

Defined in: .build/typescript/packages/providers/storage/supabase/src/SupabaseVectorStore.ts:32

  • BaseVectorStore

new SupabaseVectorStore(init): SupabaseVectorStore

Defined in: .build/typescript/packages/providers/storage/supabase/src/SupabaseVectorStore.ts:43

Creates a new instance of SupabaseVectorStore

SupabaseVectorStoreInit

Configuration object containing either a Supabase client or URL/key pair, and table name

SupabaseVectorStore

Error if neither client nor valid URL/key pair is provided

BaseVectorStore.constructor

storesText: boolean = true

Defined in: .build/typescript/packages/providers/storage/supabase/src/SupabaseVectorStore.ts:33

BaseVectorStore.storesText

client(): SupabaseClient<any, "public", any>

Defined in: .build/typescript/packages/providers/storage/supabase/src/SupabaseVectorStore.ts:64

Returns the Supabase client instance used by this vector store

SupabaseClient<any, "public", any>

The configured Supabase client

BaseVectorStore.client


add(nodes): Promise<string[]>

Defined in: .build/typescript/packages/providers/storage/supabase/src/SupabaseVectorStore.ts:74

Adds an array of nodes to the vector store

BaseNode<Metadata>[]

Array of BaseNode objects to store

Promise<string[]>

Array of node IDs that were successfully stored

Error if the insertion fails

BaseVectorStore.add


delete(refDocId, deleteOptions?): Promise<void>

Defined in: .build/typescript/packages/providers/storage/supabase/src/SupabaseVectorStore.ts:109

Deletes documents from the vector store based on the reference document ID

string

The reference document ID to delete

object

Optional parameters for the delete operation

Promise<void>

Error if the deletion fails

BaseVectorStore.delete


query(query, options?): Promise<VectorStoreQueryResult>

Defined in: .build/typescript/packages/providers/storage/supabase/src/SupabaseVectorStore.ts:132

Queries the vector store for similar documents

VectorStoreQuery

Query parameters including the query embedding and number of results to return

object

Optional parameters for the query operation

Promise<VectorStoreQueryResult>

Object containing matched nodes, similarity scores, and document IDs

Error if query embedding is not provided or if the query fails

BaseVectorStore.query