AI App Development
Lovable Supabase Integration: Complete Guide
A practical breakdown of the Lovable Supabase workflow for builders and developers.

Lovable has positioned itself as one of the more accessible AI app builders on the market, and its Supabase integration is a core part of that appeal. The partnership lets you spin up a full backend — database, authentication, real-time subscriptions, edge functions — without leaving the chat interface. For founders and product managers who want to move from idea to deployed product in hours rather than weeks, this combination removes the traditional friction of provisioning infrastructure, writing migrations, and configuring auth providers manually.
Contents
- 1. How Lovable Connects to Supabase
- 2. Schema Design Patterns That Work Well
- 3. Authentication Flows and User Management
- 4. Database Operations and Real-time Features
- 5. Deployment and Hosting Considerations
- 6. Pricing Model and Cost Projections
- 7. Common Use Cases and Project Types
- 8. Troubleshooting and Operational Patterns
- 9. Comparison with Alternative Backend Integrations
- 10. Advanced Patterns: Vectors, Webhooks, and Scheduled Jobs
- 11. Final Assessment of Lovable Supabase Integration
The integration is not merely a wrapper around Supabase's REST API. Lovable maintains a persistent connection to your Supabase project, reads schema changes in real time, and can generate TypeScript types that stay in sync with your database. When you ask the AI to add a feature — say, a user dashboard with role-based access — it can create the necessary tables, policies, and frontend components in a single conversation turn. That tight loop between natural language intent and deployed backend code is what distinguishes the experience from stitching together services yourself.
This guide walks through the practical realities of building with Lovable and Supabase together. We cover setup, schema design patterns, authentication flows, real-time capabilities, deployment considerations, pricing implications, and the most common failure modes we've observed. The goal is to give you enough context to decide whether this stack fits your project and, if it does, to avoid the pitfalls that slow teams down after the initial excitement fades.
How Lovable Connects to Supabase
The connection flow starts in the Lovable dashboard. After creating a project, you navigate to the Integrations panel and select Supabase. You'll be prompted to sign in to your Supabase account (or create one) and grant Lovable access to your organization. Once authorized, you can either link an existing Supabase project or spin up a new one directly from the modal. Lovable provisions the project in your Supabase account — you retain full ownership and can manage it independently in the Supabase dashboard at any time.
Behind the scenes, Lovable uses a service role key with elevated privileges to execute DDL and DML statements on your behalf. This key is stored encrypted and never exposed in the frontend bundle. The AI agent receives schema context — table definitions, relationships, RLS policies, function signatures — as part of its system prompt, which allows it to write correct SQL and TypeScript without hallucinating column names. When you request a change, the agent generates a migration file, applies it via the Supabase Management API, and updates the local type definitions in your Lovable project.
The integration also configures Supabase Realtime and PostgREST automatically. Tables you create through Lovable get realtime publication enabled by default, and the generated frontend hooks use the Supabase JavaScript client with the anon key for browser-safe access. Row Level Security policies are created alongside tables when the AI detects authentication requirements, though you can always refine them manually in the Supabase SQL editor.

One practical detail: the first time you link a project, Lovable runs a quick health check — verifying that the PostgREST endpoint responds, that the realtime WebSocket connects, and that the service role key has the expected permissions. If any check fails, the UI surfaces a specific error (for example, "PostgREST schema cache stale" or "Realtime not enabled for project") rather than a generic connection failure. This saves considerable debugging time compared to manual integration attempts.
Schema Design Patterns That Work Well
Lovable's AI tends to produce clean, normalized schemas when given clear requirements, but it has preferences worth understanding. It favors UUID primary keys (via gen_random_uuid()), timestamps with time zone (created_at, updated_at), and explicit foreign key constraints. For many-to-many relationships, it creates join tables with composite primary keys rather than surrogate keys. These choices align with Postgres best practices and keep the generated TypeScript types predictable.
When you describe a feature in conversational terms — "users can belong to multiple workspaces with different roles" — the agent typically produces a workspace_members table with user_id, workspace_id, and role columns, plus a unique constraint on (user_id, workspace_id) and a check constraint restricting role to an enum. It also adds RLS policies that enforce membership checks. You can steer the output by specifying preferences: "use integer IDs for internal tables" or "add a slug column for public URLs." The more context you provide up front, the less rework later.
Scroll horizontally to see all columns
| Pattern | Typical Implementation | When to Use |
|---|---|---|
| User profiles | profiles table linked to auth.users via user_id PK | Every project with auth |
| Multi-tenant workspaces | workspaces + workspace_members join table with role enum | SaaS, collaboration tools |
| Content ownership | owner_id FK on each resource table + RLS policy | User-generated content apps |
| Audit logging | audit_logs table with triggers on key tables | Compliance, debugging |
| Soft deletes | deleted_at timestamp + partial unique indexes | Recovery requirements |
A recurring pattern worth adopting: keep a separate profiles table rather than stuffing everything into auth.users metadata. The profiles table can have display_name, avatar_url, timezone, notification_preferences, and any app-specific fields. Lovable's auth helpers expect this structure and will auto-join it when fetching the current user. If you skip it, you'll find yourself adding the table later and backfilling data — a migration that's straightforward but avoidable.
The best schemas emerge when you treat the AI as a pair programmer who knows Postgres well but doesn't know your domain. Give it the domain rules; let it handle the DDL syntax.
Authentication Flows and User Management
Supabase Auth handles the heavy lifting — email/password, magic links, OAuth providers (Google, GitHub, Discord, etc.), MFA, and passwordless options. Lovable's integration surfaces these as high-level commands: "add Google sign-in," "enable MFA for admins," "set up email confirmation redirect." The AI generates the necessary Supabase Auth configuration calls and the corresponding frontend components (login page, callback route, protected layout).
The default flow uses Supabase's hosted auth pages with your custom branding (logo, colors, redirect URLs). If you need fully custom UI, you can ask Lovable to build a login form that calls supabase.auth.signInWithPassword() directly and handles the session callback. The generated code uses the @supabase/auth-helpers-nextjs package (or the equivalent for your framework) to manage server-side session reading, which avoids the client-side flicker common in SPA-only implementations.
- Email/password with optional email confirmation
- Magic links for passwordless login
- OAuth: Google, GitHub, GitLab, Bitbucket, Azure, Discord, Slack, Apple, Facebook
- Phone/SMS via Twilio (requires Supabase Pro)
- TOTP-based MFA with backup codes
- Single sign-on (SAML/OIDC) on Enterprise plans
Row Level Security is where the integration shines. When you say "only workspace members can see projects," the AI writes a policy like CREATE POLICY "member_access" ON projects FOR SELECT USING (EXISTS (SELECT 1 FROM workspace_members WHERE workspace_id = projects.workspace_id AND user_id = auth.uid())). It also creates the corresponding INSERT/UPDATE/DELETE policies. You can inspect and edit these in the Supabase dashboard under Authentication > Policies. A common gotcha: policies that reference auth.uid() only work when the request includes a valid JWT. Service role requests (from edge functions or server-side code) bypass RLS entirely — plan accordingly.
Database Operations and Real-time Features
The Supabase JavaScript client is the primary interface for data access in Lovable-generated frontends. The AI creates typed hooks — useProjects, useWorkspaceMembers, useCurrentUser — that wrap supabase.from().select() with proper TypeScript generics derived from your schema. These hooks handle loading states, error boundaries, and automatic refetching on realtime events. For mutations, you get createProject, updateProject, deleteProject functions that call the RPC layer or direct table operations with optimistic updates.
Realtime subscriptions are enabled per table. When you create a table through Lovable, the AI adds it to the supabase_realtime publication automatically. The generated hooks can subscribe to INSERT, UPDATE, and DELETE events with a single option: useProjects({ realtime: true }). The subscription manages connection lifecycle, reconnection on network failure, and deduplication of events. For high-frequency updates (presence, cursors, collaborative editing), you can ask for the lower-level Realtime channel API: supabase.channel('room').on('broadcast', ...).subscribe().
Scroll horizontally to see all columns
| Option | Description | Typical Use Case |
|---|---|---|
| realtime: true | Auto-subscribe to all changes on the table | Dashboards, lists, feeds |
| filter: 'workspace_id=eq.123' | Limit events to a specific workspace | Multi-tenant apps |
| event: 'INSERT' | Only listen for new rows | Notifications, activity feeds |
| Broadcast channel | Ephemeral messages via channel.send() | Presence, typing indicators, cursors |
| Postgres Changes + filters | Complex SQL filters on CDC stream | Advanced filtering needs |
Edge Functions extend the backend without a separate server. Lovable can generate Deno-based functions deployed to Supabase's edge network — useful for webhooks (Stripe, GitHub, Slack), scheduled jobs (cron), or compute-heavy tasks that shouldn't run in the browser. The AI writes the function, configures the necessary secrets (STRIPE_SECRET_KEY, GITHUB_WEBHOOK_SECRET), and sets up the HTTP route. You invoke them from the frontend via supabase.functions.invoke('stripe-checkout', { body: { priceId } }). Cold starts are typically 100-300ms; warm invocations are under 50ms.

A practical limitation: Supabase's free tier includes 500MB database, 2GB bandwidth, and 50MB file storage per project. Realtime connections are capped at 200 concurrent on the free plan. For a prototype or low-traffic MVP, this is generous. Once you exceed limits, the project enters a read-only state until you upgrade or reduce usage. Lovable does not automatically monitor these quotas — you'll need to set up alerts in the Supabase dashboard or use the management API to track consumption programmatically.
Deployment and Hosting Considerations
Lovable deploys the frontend to its own global edge network (powered by Cloudflare Pages) with automatic HTTPS, custom domains, and preview deployments for every chat session. The Supabase backend remains in your Supabase account, hosted on AWS (us-east-1 by default, with other regions available on paid plans). This split architecture means your frontend and database are geographically separate unless you configure Supabase to use a region near your users. For most global audiences, the latency is acceptable — typically 50-150ms for PostgREST requests from Cloudflare's edge to us-east-1.
Environment variables are managed in two places. Lovable's dashboard holds frontend-only variables (VITE_PUBLIC_API_URL, feature flags). Supabase's dashboard holds backend secrets (database URL, service role key, OAuth credentials, third-party API keys). The AI knows which variables belong where and will prompt you to add them in the correct location. A common mistake: putting the Supabase anon key in Lovable's secret store instead of the public env — it works either way, but the anon key is safe to expose in the browser bundle, while the service role key must never leave the server/edge context.
- Frontend env (Lovable): VITE_SUPABASE_URL, VITE_SUPABASE_ANON_KEY, feature flags, analytics IDs
- Backend secrets (Supabase): SERVICE_ROLE_KEY, DATABASE_URL, STRIPE_SECRET, RESEND_API_KEY, OAuth client secrets
- Edge function secrets: same as backend, configured per function in Supabase dashboard
- Preview deployments: inherit production env by default; override per preview if needed
Custom domains work through Lovable's dashboard. You add the domain, verify ownership via DNS (CNAME for subdomains, ALIAS/ANAME for apex), and Lovable provisions the TLS certificate. The Supabase project's auth redirect URLs must include the custom domain (e.g., https://app.yourdomain.com/auth/callback). If you change domains later, update both places. Lovable also supports wildcard subdomains for multi-tenant apps — each workspace gets its own subdomain (workspace1.yourapp.com) routed to the same deployment with middleware extracting the tenant identifier.
Pricing Model and Cost Projections
Lovable and Supabase bill independently. Lovable's pricing is seat-based with tiered feature access: Free (personal projects, 10 credits/month), Pro ($20/month, 100 credits, custom domains), Team ($30/user/month, shared credits, SSO), and Enterprise (custom). Credits consume on AI generation turns — complex multi-file changes cost more than simple edits. Most active builders on Pro hit the credit limit around week three of a month; unused credits don't roll over.
Supabase uses a resource-based model. The Free tier includes 500MB database, 2GB egress, 50MB storage, 50K monthly active users (MAU), and 200 concurrent realtime connections. The Pro plan ($25/month) raises limits to 8GB database, 250GB egress, 100GB storage, 100K MAU, and 500 concurrent connections, plus adds point-in-time recovery, read replicas, and custom SMTP. Team ($599/month) and Enterprise tiers add dedicated support, compliance features, and higher limits. Database compute is shared on Free/Pro; dedicated compute starts at Team.
Scroll horizontally to see all columns
| Scenario | Lovable Plan | Supabase Plan | Estimated Total |
|---|---|---|---|
| Solo founder, MVP | Free | Free | $0 |
| Solo founder, launched | Pro ($20) | Free | $20 |
| Early traction, 5K MAU | Pro ($20) | Pro ($25) | $45 |
| Growing team, 50K MAU | Team ($60 for 2) | Pro ($25) | $85 |
| Scale, 200K MAU | Team ($150 for 5) | Team ($599) | $749 |
A cost trap to watch: Supabase bills egress bandwidth, not just database size. If your app serves lots of images or large JSON payloads directly from the database (via storage or base64 columns), you can hit the 2GB free limit quickly. The fix is to use Supabase Storage for files (separate 50MB free tier, cheaper overage) or a CDN like Cloudflare R2 in front of Storage. Lovable's AI doesn't automatically optimize for this — you need to specify "serve images from Storage with signed URLs" or similar.
The combined stack stays remarkably cheap until you hit real scale. Most projects spend months on the $20-45/month tier before Supabase Team becomes necessary.
Common Use Cases and Project Types
The Lovable-Supabase combination excels at certain project archetypes. Internal tools — admin panels, dashboards, approval workflows — benefit from the AI's ability to generate CRUD interfaces with role-based access in minutes. SaaS MVPs with multi-tenancy, subscription billing (via Stripe webhooks in Edge Functions), and user management map cleanly to Supabase's auth and database primitives. Marketplace and directory apps leverage Postgres full-text search and PostGIS for location features. Real-time collaborative apps (whiteboards, document editors, chat) use Realtime channels and broadcast.
Less ideal fits: high-write-throughput event ingestion (millions of events/day) — Supabase's shared compute on Free/Pro will throttle. Complex analytical workloads requiring columnar storage or materialized views — Postgres can do it, but you'll fight the planner. Apps needing multi-region active-active database — Supabase doesn't offer this yet. Legacy migration projects where you need fine-grained control over existing schema — the AI may propose changes that conflict with your constraints.
- Internal tools: admin dashboards, CRM-lite, inventory, support ticketing
- B2B SaaS: multi-tenant workspaces, role-based access, Stripe subscriptions
- Marketplaces: two-sided platforms, search, booking, payments
- Social/community: feeds, notifications, real-time chat, presence
- Content platforms: blogs, documentation, courses with auth-gated content
- AI-powered apps: chat interfaces, RAG with pgvector, agent workflows
For AI-powered apps specifically, the pgvector extension (available in Supabase) enables semantic search and retrieval-augmented generation directly in the database. Lovable can generate the vector column, HNSW index, and the similarity search function (SELECT * FROM documents WHERE embedding <=> $1 ORDER BY embedding <=> $1 LIMIT 5). Combined with Edge Functions that call OpenAI or Anthropic for embeddings, you get a complete RAG pipeline without a separate vector database. This is a genuine architectural advantage of the Supabase integration over Firebase or plain Postgres hosts.

Templates accelerate the start. Lovable's template gallery includes pre-built projects with Supabase already configured: a SaaS starter with workspaces, billing, and team invites; a dashboard template with charts and real-time updates; a marketplace skeleton with listings, search, and messaging. You can fork any template, link your Supabase project, and have a working baseline in minutes. The templates are open source — you can inspect the generated code before committing.
Troubleshooting and Operational Patterns
The most frequent issue developers encounter is schema drift between what Lovable thinks exists and what's actually in the database. This happens when you run manual migrations in the Supabase SQL editor, or when a migration partially fails (e.g., a constraint violation on existing data). Lovable's "Sync Schema" button in the integrations panel re-introspects the database and updates the AI's context. Run it after any manual change. The sync also regenerates TypeScript types, so your frontend stays type-safe.
RLS policy debugging is the second most common time sink. Symptoms: data visible in the Supabase table editor but missing in the frontend, or 401/403 errors on mutations that should succeed. The Supabase dashboard has a "Policy Simulator" (Authentication > Policies > Simulate) where you can test a query as a specific user ID. Use it. Also check the PostgREST logs (Database > Logs) for policy evaluation traces — they show exactly which policy allowed or denied the request.
- Run "Sync Schema" after any manual SQL changes
- Use Policy Simulator to debug RLS issues
- Check PostgREST logs for policy evaluation details
- Monitor Supabase dashboard for quota warnings (database size, bandwidth, MAU)
- Set up log-based alerts for edge function errors (supabase functions logs)
- Keep a changelog of AI-generated migrations for audit purposes
Migration management deserves a workflow. Lovable creates migration files in the project's supabase/migrations folder (visible in the file explorer). Each migration is a timestamped .sql file. For team projects, treat these like any other migration system: review before applying, don't edit applied migrations, create new migrations for changes. The AI can generate a migration from a natural language request ("add index on projects.created_at") — review the SQL before confirming. If you need to roll back, you can run the down migration manually in the SQL editor, though the AI doesn't always generate perfect down scripts.
Comparison with Alternative Backend Integrations
Lovable also integrates with Firebase, Neon, and plain PostgreSQL connections. Firebase offers a more opinionated, fully managed backend with offline sync and native mobile SDKs — better for mobile-first apps, worse for complex relational queries. Neon provides serverless Postgres with branching (instant database copies for preview environments) — a compelling feature for team workflows, but the AI integration is less mature. Plain Postgres gives maximum control but requires you to handle auth, realtime, and edge functions yourself. Supabase sits in a pragmatic middle: Postgres compatibility with managed auth/realtime/functions, and an AI integration that's been refined longer than the alternatives.
Scroll horizontally to see all columns
| Feature | Supabase | Firebase | Neon | Plain Postgres |
|---|---|---|---|---|
| Database | PostgreSQL | Firestore (NoSQL) | PostgreSQL | PostgreSQL |
| Auth | Built-in (email, OAuth, MFA, SSO) | Built-in (comprehensive) | None (bring your own) | None |
| Realtime | Postgres Changes + Broadcast | Native listeners | None | None |
| Edge Functions | Deno (Supabase Edge) | Cloud Functions (Node) | None | None |
| AI Integration Maturity | High | Medium | Low | Manual |
| Branching/Preview DBs | Limited | None | First-class | Manual |
| Vendor Lock-in | Low (standard Postgres) | High (proprietary) | Low (standard Postgres) | None |
The branching point is worth elaborating. Neon's database branching lets you spin up an isolated copy of your database for each preview deployment — schema and data. Lovable's preview deployments currently share the same Supabase project (though you can manually create a branch project and link it). For solo developers this rarely matters; for teams doing parallel feature work, Neon's model prevents migration conflicts in shared staging databases. Supabase has announced branching as a future feature but no public timeline.
Choose Supabase when you want Postgres power with managed auth and realtime. Choose Neon when preview database isolation is a daily workflow need. Choose Firebase when mobile offline sync is non-negotiable.
Advanced Patterns: Vectors, Webhooks, and Scheduled Jobs
Beyond standard CRUD, three advanced patterns appear frequently in production Lovable-Supabase apps. First, pgvector for AI embeddings. Enable the extension (CREATE EXTENSION IF NOT EXISTS vector;), add a vector column (embedding vector(1536) for OpenAI text-embedding-3-small), create an HNSW index (CREATE INDEX ON documents USING hnsw (embedding vector_cosine_ops)), and write a match function. Lovable can generate all of this from "add semantic search to documents." The edge function that generates embeddings on insert uses the OpenAI API and updates the vector column — a pattern the AI knows well.
Second, webhook handling via Edge Functions. Stripe, GitHub, Linear, Slack, and Resend all send HTTP callbacks that need verification and processing. The pattern: create an Edge Function per provider (stripe-webhook, github-webhook), configure the secret in Supabase dashboard, set the webhook URL in the provider's dashboard (https://your-project.supabase.co/functions/v1/stripe-webhook), and verify signatures in the function. Lovable generates the verification boilerplate (Stripe: stripe.webhooks.constructEvent, GitHub: crypto.createHmac). The function then writes to the database (e.g., create subscription record, update issue status) using the service role client.
Third, scheduled jobs via pg_cron (available on Supabase Pro+). Instead of external cron services, you schedule SQL directly: SELECT cron.schedule('daily-cleanup', '0 3 * * *', 'DELETE FROM sessions WHERE expires_at < now()');. This runs inside the database, has access to all tables, and avoids network round trips. Lovable can generate the cron.schedule calls and the cleanup functions. For jobs that need external API calls (sending daily digest emails), combine pg_cron with an Edge Function: the cron job calls the function via HTTP (using the pg_net extension) or inserts a job row that a worker function polls.
- pgvector: semantic search, RAG, recommendations, anomaly detection
- Edge Function webhooks: Stripe, GitHub, Slack, Resend, Linear, custom
- pg_cron: data cleanup, aggregation, report generation, cache warming
- pg_net: HTTP calls from SQL (trigger Edge Functions from cron)
- Supabase Realtime + Broadcast: presence, cursors, collaborative editing
- Postgres full-text search: tsvector + GIN index for product/content search

A note on pgvector index tuning: the default HNSW parameters (m=16, ef_construction=64) work for most datasets under 1M vectors. For higher recall requirements, increase ef_construction to 128 or 256 at index creation time — you can't change it later without rebuilding. The trade-off is build time and memory usage. Monitor index size with SELECT pg_size_pretty(pg_relation_size('documents_embedding_idx'));. Supabase's shared compute has memory limits; if the index exceeds available memory, queries fall back to sequential scan and latency spikes.
Final Assessment of Lovable Supabase Integration
The Lovable-Supabase integration delivers on its core promise: you can go from a natural language description to a deployed full-stack application with a production-grade Postgres backend in a single session. The AI's ability to generate schema, RLS policies, frontend hooks, and deployment configuration in concert eliminates the coordination overhead that usually slows full-stack development. For solo founders, small teams, and internal tool builders, this is a genuine productivity multiplier — not because the AI writes perfect code, but because it writes the 80% of boilerplate that's identical across projects, leaving you to focus on the 20% that's unique to your domain.
The trade-offs are real and worth weighing. You're dependent on Lovable's credit system for AI generation, and on Supabase's shared infrastructure for database performance until you reach Team tier. The AI occasionally produces migrations that need manual correction, especially around complex constraints or data backfills. Schema drift between the AI's mental model and the actual database requires discipline (sync after manual changes). Vendor lock-in is low on the backend — your Supabase project is standard Postgres — but the frontend is tied to Lovable's deployment platform and component patterns. Migrating the frontend later means rewriting the UI layer, though the backend stays put.
For teams already invested in a different stack — say, Next.js on Vercel with Neon and Clerk — adding Lovable as a prototyping tool still makes sense. You can build the MVP in Lovable, validate the product, then port the Supabase schema and Edge Functions to your main repo. The generated code is readable TypeScript/React, not a proprietary format. This "prototype in Lovable, graduate to custom stack" path is increasingly common and reduces the risk of committing to the platform long-term.
Frequently Asked Questions
Can I use an existing Supabase project with Lovable?
Yes. During integration setup, choose "Link existing project" instead of creating a new one. Lovable will introspect the schema and generate types. Any tables created outside Lovable will be readable but not managed by the AI unless you describe them in chat.
What happens to my Supabase project if I cancel Lovable?
Nothing. The Supabase project remains in your Supabase account with all data, auth users, edge functions, and configuration intact. You lose the AI-assisted development interface and Lovable's frontend hosting, but the backend is fully yours.
Does Lovable support Supabase's database branching feature?
Not currently. Supabase's branching is in preview and not yet exposed via the Management API that Lovable uses. Preview deployments in Lovable share the same Supabase project. For isolated preview databases, some teams manually create branch projects and swap the environment variables per preview.
How do I handle database migrations that the AI gets wrong?
Run the migration manually in the Supabase SQL editor, fix any issues, then click "Sync Schema" in Lovable's integrations panel. The AI will update its context and regenerate TypeScript types. For complex migrations, write the SQL yourself and ask the AI to review it rather than generate from scratch.
Can I use Supabase Storage for file uploads in a Lovable app?
Yes. Ask the AI to "add file upload with Supabase Storage" and it will create the bucket, RLS policies, signed URL generation, and frontend upload component. The pattern uses the standard supabase.storage.from('bucket').upload() and createSignedUrl() methods.
What are the limits on the free tier for a real application?
Supabase Free: 500MB database, 2GB egress/month, 50MB storage, 50K MAU, 200 concurrent realtime connections. Lovable Free: 10 credits/month (roughly 5-10 complex feature requests). Sufficient for prototypes and low-traffic MVPs; production apps typically need at least Supabase Pro ($25/mo) and Lovable Pro ($20/mo).
Does the integration work with Supabase's pgvector extension for AI embeddings?
Yes. The AI can enable the extension, create vector columns, HNSW indexes, and similarity search functions. It also generates Edge Functions that call embedding APIs (OpenAI, Cohere, etc.) and store vectors on insert/update. This is a well-supported pattern in the current integration.

