Expert guidance on Supabase/PostgreSQL implementation for RAG, including pgvector semantic search and full-text search.
This skill provides patterns for implementing RAG logic with Supabase and the pgvector extension.
documents
chunks
embedding
document_id
ON DELETE CASCADE
Semantic Search (pgvector):
match_chunks
query_embedding
match_threshold
match_count
self.client.rpc("match_chunks", rpc_params).execute()
Text Search (WFTS):
self.client.table("chunks").select("...").filter("content", "wfts", query).range(0, limit - 1).execute()
supabase
create_client
threshold
__init__