スキル一覧に戻る
FullFran

supabase

by FullFran

0🍴 0📅 2026年1月23日
GitHubで見るManusで実行

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 match_chunks exists in the database.
    • Parameters: query_embedding (vector), match_threshold (float), match_count (int).
    • Use self.client.rpc("match_chunks", rpc_params).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__.

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です