Node Details

  • Name: Supabase_VectorStores

  • Type: Supabase

  • Version: 4.0

  • Category: Vector Stores

Base Classes

  • Supabase

  • VectorStoreRetriever

  • BaseRetriever

Inputs

  1. Document (optional, list)

    • Type: Document

    • Description: List of documents to be embedded and stored

  2. Embeddings

    • Type: Embeddings

    • Description: The embedding model to use for converting documents to vectors

  3. Record Manager (optional)

    • Type: RecordManager

    • Description: Keeps track of records to prevent duplication

  4. Supabase Project URL

    • Type: string

    • Description: URL of the Supabase project

  5. Table Name

    • Type: string

    • Description: Name of the table in Supabase to store vectors

  6. Query Name

    • Type: string

    • Description: Name of the query to use for similarity search

  7. Supabase Metadata Filter (optional)

    • Type: json

    • Description: JSON object for filtering results based on metadata

  8. Supabase RPC Filter (optional)

    • Type: string

    • Description: Query builder-style filtering, overrides metadata filter if set

  9. Top K (optional)

    • Type: number

    • Description: Number of top results to fetch (default: 4)

  10. MMR Parameters (optional)

    • Various parameters for Maximal Marginal Relevance search

Outputs

  1. Supabase Retriever

    • Type: Retriever

    • Description: A retriever object for querying the vector store

  2. Supabase Vector Store

    • Type: VectorStore

    • Description: The Supabase vector store object

Credentials

  • Credential Name: supabaseApi

  • Required Parameters: supabaseApiKey

Functionality

  1. Upsert: Adds or updates documents in the vector store

  2. Delete: Removes documents from the vector store

  3. Search: Performs similarity or MMR search on the stored vectors

Usage

This node is particularly useful in workflows that require:

  • Storing and managing large amounts of textual data as vector embeddings

  • Performing semantic similarity search on document collections

  • Building retrieval-augmented generation systems

  • Creating knowledge bases or document retrieval systems

Note

The node includes additional functionality for handling record management, batch upserts, and error handling for null ID values. It’s designed to work seamlessly with Supabase’s vector storage capabilities and integrates well with other LangChain components.