smithery.ai

supabase

Expert guidance on Supabase/PostgreSQL implementation for RAG, including pgvector semantic search and full-text search.

First seen Mar 19, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,506 B
  • docs SUMMARY.md 135 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 18 installs

SKILL.md

Supabase & PostgreSQL Expert Skill

This skill provides patterns for implementing RAG logic with Supabase and the pgvector extension.

📂 Storage Pattern (Postgres)

  • Tables:

- documents: Stores source document text and global metadata. - chunks: Stores text fragments, embedding (vector), and a foreign key document_id (UUID).

  • Relationships: Ensure a foreign key relationship with ON DELETE CASCADE from chunks to documents for clean deletions.

🔍 Search Patterns

  • Semantic Search (pgvector):

- Assumes a stored procedure matchchunks exists in the database. - Parameters: queryembedding (vector), matchthreshold (float), matchcount (int). - Use self.client.rpc("matchchunks", rpcparams).execute().

  • Text Search (WFTS):

- Use Postgres full-text search capabilities. - Pattern: self.client.table("chunks").select("...").filter("content", "wfts", query).range(0, limit - 1).execute().

🛠️ Code Standards

  • Client: Use the supabase Python library (create_client).
  • UUIDs: PostgreSQL IDs are typically UUIDs (strings in Python).
  • Error Handling: Verify that the match_chunks RPC is properly defined in the database schema before use.
  • Config: The threshold for semantic matches is usually configurable in the repository's init.