Supabase AI app with semantic search
Postgres with pgvector for embeddings, the AI SDK for model calls, and prompt caching to keep costs down.
Promptu 님
완성되는 결과
An app that stores embeddings in Supabase Postgres (pgvector), answers questions with the AI SDK, and reuses cached prompt prefixes. The prompt helps explain slow queries as the data grows.
구성 순서
- 1MCP 서버Database access for your agentSupabase MCP server
Connect agents to your Supabase projects: schema, SQL, logs and docs. Scope it to one project and read-only when you can.
- 2기술Embeddingspgvector
Open-source vector similarity search for Postgres. Keep embeddings next to your data, with no separate vector database.
CREATE EXTENSION vector;
- 3기술Model callsAI SDK
TypeScript toolkit for building AI features (streaming, tool calling, structured output) across model providers.
npm install ai
- 4기술CostPrompt caching (Claude API)
Reuse a processed prompt prefix (tools, system, messages) to cut cost and latency on repeated context.
- 5프롬프트PerformanceWhy is this Postgres query slow?
명령어는 실행하기 전에 꼭 확인하세요. Promptu는 사용자의 컴퓨터에서 코드를 실행하지 않아요.

