SupabaseVectorStore
Defined in: .build/typescript/packages/providers/storage/supabase/src/SupabaseVectorStore.ts:32
Extends
Section titled “Extends”BaseVectorStore
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SupabaseVectorStore(
init
):SupabaseVectorStore
Defined in: .build/typescript/packages/providers/storage/supabase/src/SupabaseVectorStore.ts:43
Creates a new instance of SupabaseVectorStore
Parameters
Section titled “Parameters”Configuration object containing either a Supabase client or URL/key pair, and table name
Returns
Section titled “Returns”SupabaseVectorStore
Throws
Section titled “Throws”Error if neither client nor valid URL/key pair is provided
Overrides
Section titled “Overrides”BaseVectorStore.constructor
Properties
Section titled “Properties”storesText
Section titled “storesText”storesText:
boolean
=true
Defined in: .build/typescript/packages/providers/storage/supabase/src/SupabaseVectorStore.ts:33
Overrides
Section titled “Overrides”BaseVectorStore.storesText
Methods
Section titled “Methods”client()
Section titled “client()”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
Returns
Section titled “Returns”SupabaseClient
<any
, "public"
, any
>
The configured Supabase client
Overrides
Section titled “Overrides”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
Parameters
Section titled “Parameters”BaseNode
<Metadata
>[]
Array of BaseNode objects to store
Returns
Section titled “Returns”Promise
<string
[]>
Array of node IDs that were successfully stored
Throws
Section titled “Throws”Error if the insertion fails
Overrides
Section titled “Overrides”BaseVectorStore.add
delete()
Section titled “delete()”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
Parameters
Section titled “Parameters”refDocId
Section titled “refDocId”string
The reference document ID to delete
deleteOptions?
Section titled “deleteOptions?”object
Optional parameters for the delete operation
Returns
Section titled “Returns”Promise
<void
>
Throws
Section titled “Throws”Error if the deletion fails
Overrides
Section titled “Overrides”BaseVectorStore.delete
query()
Section titled “query()”query(
query
,options?
):Promise
<VectorStoreQueryResult
>
Defined in: .build/typescript/packages/providers/storage/supabase/src/SupabaseVectorStore.ts:132
Queries the vector store for similar documents
Parameters
Section titled “Parameters”VectorStoreQuery
Query parameters including the query embedding and number of results to return
options?
Section titled “options?”object
Optional parameters for the query operation
Returns
Section titled “Returns”Promise
<VectorStoreQueryResult
>
Object containing matched nodes, similarity scores, and document IDs
Throws
Section titled “Throws”Error if query embedding is not provided or if the query fails
Overrides
Section titled “Overrides”BaseVectorStore.query