Pgvector Semantic Search

🌐Community
by timescale · vlatest · Repository

Find relevant data quickly using Timescale's pgvector semantic search powered by vector embeddings.

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 pgvector-semantic-search npx -- -y @trustedskills/pgvector-semantic-search
2

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

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

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

About This Skill

pgvector-semantic-search

What it does

This skill enables AI agents to perform semantic search directly within PostgreSQL databases using the pgvector extension. It allows agents to retrieve relevant records based on meaning and context rather than relying solely on exact keyword matching.

When to use it

  • Retrieving customer support tickets that are semantically similar to a user's vague query.
  • Finding specific documents in a legal database based on the concept of "liability" rather than the exact word.
  • Locating relevant product recommendations by analyzing the semantic relationship between user preferences and item descriptions.

Key capabilities

  • Semantic Similarity Search: Queries data based on vector embeddings to find conceptually related records.
  • PostgreSQL Integration: Executes search operations directly inside the database engine without external retrieval pipelines.
  • Contextual Retrieval: Understands natural language nuances to return accurate results even with imprecise input.

Example prompts

  • "Find all support tickets from last month that discuss issues similar to 'slow loading times on mobile devices'."
  • "Retrieve customer records where the feedback sentiment matches the concept of 'frustration with billing processes'."
  • "Search for articles in our knowledge base that explain how to reset passwords, focusing on semantic relevance rather than exact keywords."

Tips & gotchas

Ensure your database tables have vector columns populated with embeddings before attempting semantic searches. Performance may vary depending on the size of the dataset and the complexity of the vector index configuration.

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
73

🌐 Community

Passed automated security scans.