Skip to content

SupabaseVectorStore

Defined in: packages/providers/storage/supabase/src/SupabaseVectorStore.ts:35

new SupabaseVectorStore(init): SupabaseVectorStore

Defined in: packages/providers/storage/supabase/src/SupabaseVectorStore.ts:46

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

embedModel: BaseEmbedding

Defined in: packages/core/src/vector-store/index.ts:128

BaseVectorStore.embedModel


optional isEmbeddingQuery: boolean

Defined in: packages/core/src/vector-store/index.ts:130

BaseVectorStore.isEmbeddingQuery


storesText: boolean = true

Defined in: packages/providers/storage/supabase/src/SupabaseVectorStore.ts:36

BaseVectorStore.storesText

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

Defined in: packages/providers/storage/supabase/src/SupabaseVectorStore.ts:67

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: packages/providers/storage/supabase/src/SupabaseVectorStore.ts:77

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: packages/providers/storage/supabase/src/SupabaseVectorStore.ts:112

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: packages/providers/storage/supabase/src/SupabaseVectorStore.ts:135

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


exists(refDocId): Promise<boolean>

Defined in: packages/providers/storage/supabase/src/SupabaseVectorStore.ts:268

Check if any nodes exist for the given document reference ID. Used for de-duplication during ingestion.

string

The reference document ID to check

Promise<boolean>

true if any nodes with this ref_doc_id exist

BaseVectorStore.exists