tzurot-db-vector

Configure PostgreSQL and pgvector vector storage with Prisma migrations.

7|2|Updated May 17, 2025
One-click install
npx skills add https://github.com/lbds137/tzurot --skill tzurot-db-vector
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tzurot-db-vector
Source: https://github.com/lbds137/tzurot/tree/main/.claude/skills/tzurot-db-vector
Command: npx skills add https://github.com/lbds137/tzurot --skill tzurot-db-vector

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Storing and retrieving long-term memory for AI personalities efficiently requires specialized database techniques like vector embeddings. This Skill provides patterns for PostgreSQL, Prisma, and pgvector, enabling scalable and intelligent memory retrieval.

Core Features & Use Cases

  • Prisma ORM: Achieve type-safe database access for all data operations, reducing boilerplate and improving developer experience.
  • pgvector Integration: Store and query AI embeddings for fast similarity search, enabling long-term, contextual memory for personalities.
  • Connection Management: Implement robust connection pooling for Railway/containerized environments to prevent connection limits and cold start issues.
  • Migration Workflow: Manage database schema changes with a reliable, checksum-safe Prisma migration process, ensuring database consistency across deployments.

Quick Start

Use the tzurot-db-vector skill to store a new AI memory embedding for a personality, then query for the top 5 most similar memories based on a given embedding.

Frequently Asked Questions about tzurot-db-vector

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I store and query AI embeddings in PostgreSQL with pgvector?

pgvector is a PostgreSQL extension that stores and queries vector embeddings for similarity search. This Skill provides Prisma patterns to define typed schemas, create ivfflat indexes for fast retrieval, and write migration-safe queries that retrieve the most similar embeddings to a given input vector.

Can I use Prisma with pgvector for type-safe vector queries?

Yes. This Skill enables type-safe database access over pgvector by defining Prisma models for embeddings, applying migrations to create vector columns and indexes, and writing typed queries that leverage PostgreSQL's similarity operators without raw SQL.

What's the best way to manage PostgreSQL migrations for vector indexes?

Use Prisma's migration-first workflow with idempotent SQL scripts. This Skill covers checksum-safe migration patterns, pre-commit safeguards to review generated SQL, and deployment considerations for Railway environments to ensure schema consistency across environments.

How do I handle connection pooling in containerized PostgreSQL deployments?

Implement connection pooling to prevent hitting connection limits in containerized or Railway environments. This Skill provides patterns for configuring pooled connections in Prisma, managing cold starts, and maintaining stable database access under load.

Do I need ivfflat indexing for vector similarity search performance?

ivfflat indexing accelerates similarity search on large vector datasets by partitioning embeddings into clusters. This Skill demonstrates when to apply ivfflat indexes, how to create them safely via migrations, and trade-offs between index creation time and query speed.

What precautions should I take when modifying pgvector indexes in production?

Pgvector index modifications require careful planning to avoid blocking queries. This Skill provides safe patterns for altering indexes through migrations, includes pre-commit review steps for generated SQL, and outlines idempotent migration practices to ensure no duplicate index creation.