Postgres Hybrid Text Search

🌐Community
by timescale · vlatest · Repository

Helps with PostgreSQL, search as part of working with databases and data persistence workflows.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add postgres-hybrid-text-search npx -- -y @trustedskills/postgres-hybrid-text-search
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "postgres-hybrid-text-search": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/postgres-hybrid-text-search"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill enables hybrid text search in PostgreSQL, combining the strengths of both full-text search and vector embeddings. It allows for more relevant results than traditional full-text search alone, especially when dealing with nuanced or semantic queries. The skill leverages existing PostgreSQL infrastructure to provide this enhanced search capability without significant architectural changes.

When to use it

  • Semantic Search: When you need to find documents based on meaning rather than just keyword matches (e.g., "find articles about climate change solutions").
  • Improved Relevance Ranking: To refine the order of results beyond simple keyword frequency, incorporating semantic similarity.
  • Combining Keyword and Semantic Search: When both exact keywords and conceptual understanding are important for search accuracy.
  • Existing PostgreSQL Infrastructure: When you want to add advanced text search capabilities without migrating to a new database system.

Key capabilities

  • Hybrid full-text search and vector embedding integration
  • Leverages existing PostgreSQL infrastructure
  • Enhanced relevance ranking based on semantic similarity
  • Supports nuanced and conceptual queries

Example prompts

  • "Find documents similar in meaning to 'sustainable energy initiatives'."
  • "Search for articles containing the keywords 'renewable' AND conceptually related to 'environmental impact'."
  • "Rank search results by both keyword match score and semantic similarity to the query 'reducing carbon footprint'."

Tips & gotchas

  • Requires a PostgreSQL database instance.
  • The quality of vector embeddings significantly impacts search relevance; ensure appropriate embedding models are used.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
timescale
Installs
17

🌐 Community

Passed automated security scans.