symfony/ai-supabase-store
Supabase vector store integration for Symfony AI Store using PostgreSQL pgvector. Connect your Symfony AI apps to Supabase vector columns and the match_documents RPC for similarity search, with links to Supabase docs and Symfony AI contribution/resources.
StoreInterface abstraction allows integration into Laravel via Symfony’s HttpClient or Laravel’s Illuminate\Support\ServiceProvider to wrap dependencies. Laravel’s AI ecosystem (e.g., spatie/laravel-ai) lacks native vector store support, making this a viable stopgap.symfonycasts/laravel-ai or tighten/laravel-ai). Avoids reinventing vector storage for Laravel.StoreInterface may force Laravel to adopt Symfony components (e.g., symfony/ai) or build adapters, increasing complexity.$this->app->singleton(SupabaseStore::class, fn($app) =>
new SupabaseStore($app->make(SupabaseClient::class))
);
query() method’s filter support maps to Laravel’s Eloquent query builder, easing adoption for devs familiar with where() clauses. Example:
$results = $store->query('SELECT *', ['category' => 'tech']);
supabase-php/supabase) or direct PostgreSQL queries, though this sacrifices pgvector-specific optimizations.symfonycasts/laravel-ai by implementing a custom VectorStore interface, enabling seamless embedding storage/retrieval.StoreInterface natively, requiring manual adapters or Symfony component dependencies (e.g., symfony/service-contracts). Risk of hidden dependencies if Symfony AI evolves.match_documents) may introduce latency compared to direct pgvector queries. Benchmark against:
match_documents RPC; custom schemas require manual RPC adjustments or Supabase API workarounds.StoreInterface without pulling in Symfony dependencies?laravel-ai-supabase-store) reduce friction?supabase-php/supabase (official) or symfony/http-client (if avoiding Supabase SDK) to interact with the API.symfonycasts/laravel-ai) as a custom VectorStore implementation.$store->query('SELECT *', ['user_id' => auth()->id()]);
insert, query, remove).symfonycasts/laravel-ai) as a drop-in VectorStore.match_documents payload size).supabase-php/supabase and symfony/http-client installed.StoreInterface adapter for Laravel’s DI container.symfonycasts/laravel-ai).supabase-php/supabase may require testing for RPC compatibility.StoreInterface, the adapter may need updates.How can I help you explore Laravel packages today?