postgres-semantic-search
CommunityPostgreSQL vector search made easy.
Authorlaguagu
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill enables PostgreSQL-based semantic and hybrid search using pgvector and ParadeDB.
Core Features & Use Cases
- Semantic search: leverage pgvector to retrieve meaning-based results from documents stored in PostgreSQL.
- Hybrid search: combine full-text search with vector similarity (BM25/RRF) for robust ranking, including ParadeDB as an Elasticsearch alternative.
- Scalability: supports index types (HNSW, IVFFlat) and large datasets, enabling efficient search in product catalogs, documents, and knowledge bases.
- Use Case: build a knowledge-base search for a software team that returns contextually relevant articles and code references.
Quick Start
Begin by enabling pgvector in PostgreSQL, optionally install ParadeDB, create the embedding column, and run the included SQL scripts to set up semantic search functions and indexes. Use the provided embeddings script to generate embeddings with OpenAI and store them in your vector columns, then run semantic or hybrid searches against your data.
Dependency Matrix
Required Modules
openai@supabase/supabase-jsdrizzle-orm
Components
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: postgres-semantic-search Download link: https://github.com/laguagu/claude-code-nextjs-skills/archive/main.zip#postgres-semantic-search Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.