Skip to content

SupabaseVectorBucketDocumentStore and SupabaseVectorBucketEmbeddingRetriever #3082

@davidsbatista

Description

@davidsbatista

Implement SupabaseVectorBucketDocumentStore and SupabaseVectorBucketEmbeddingRetriever backed by Supabase's S3-compatible Vector Buckets.

⚠️ Supabase Vector Buckets are currently in alpha upstream. This component should be clearly marked as experimental.

Detailed design

Suitable for large-scale, latency-tolerant workloads where cost is the primary concern (similar to turbopuffer or TopK). Uses the Supabase Storage API or S3-compatible endpoint.

from haystack_integrations.document_stores.supabase import SupabaseVectorBucketDocumentStore

document_store = SupabaseVectorBucketDocumentStore(
    supabase_url="https://<project>.supabase.co",
    supabase_key=Secret.from_env_var("SUPABASE_SERVICE_KEY"),
    bucket_name="my-vector-bucket",
    embedding_dimension=1536,
)

Implementation notes

  • Primary dependency: supabase-py
  • Auth via supabase_url and supabase_key (using Secret for secure handling)
  • Should be gated behind an explicit opt-in or marked experimental in package metadata and docstrings
  • Monitor Supabase Vector Buckets upstream status before stabilising the API
  • Integration lives in integrations/supabase/

Checklist

  • The code is documented with docstrings and was merged into a feature branch

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions