$npx skillfedfor your agent

pgvecto-rs

Python binding for pgvecto.rs

With conditionsPyPI DatabaseReleased Oct 2024231.6K downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pgvecto_rs-0.2.2-py3-none-any.whl
v0.2.2 · released 2024-10-08 · Python <3.13,>=3.8 · 2 runtime deps: numpy, toml

Yes, if you are already committed to PGVecto.rs and need Python ORM integration. The library has low install friction, but its dormant maintenance status (675 days since last release) means no updates for security, compatibility, or bugs. Install only if you can tolerate stalled upstream development and verify compatibility with your PostgreSQL and PGVecto.rs versions independently.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires a running PGVecto.rs PostgreSQL instance (e.g., via Docker) and the vectors extension enabled in the database.
  • Low install friction with only two runtime dependencies (numpy and toml).
  • However, the package is dormant—last release was 675 days ago—so maintenance updates and bug fixes are unlikely.

License · maintenance · safety

Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions.

last release 2024-10-08 (675 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 231,563 downloads/mo, #9,084 on PyPI

Verify before relying

pip install pgvecto_rs

from pgvecto_rs.sqlalchemy import Vector

# Define a model with a vector column
class Item:
    embedding = Vector(3)

# Insert vectors and query by distance
# session.execute(insert(Item).values(embedding=[1, 2, 3]))
# session.scalars(select(Item).filter(Item.embedding.l2_distance([3, 1, 2]) < 5))
  • Whether the package remains compatible with current PostgreSQL and PGVecto.rs server versions despite dormant maintenance status.
  • Performance characteristics and scalability limits for different vector types and index strategies.
  • Community support or active forks available if upstream development remains stalled.
Same gist for agents: .md · .json

What it is and what it does

pgvecto-rs is a Python client library for PGVecto.rs, a PostgreSQL extension that adds native vector data types and approximate nearest-neighbor search capabilities. It bridges Python applications to PostgreSQL by providing type mappings and helper functions for four vector types: standard vectors, sparse vectors, half-precision vectors, and binary vectors. The library integrates with three major Python database frameworks—SQLAlchemy, Psycopg3, and Django—allowing developers to store, index, and query embeddings through their ORM or query interface.

The package handles vector insertion, approximate indexing via HNSW and IVF algorithms, and distance-based queries. It requires a running PGVecto.rs PostgreSQL instance and supports Python 3.8 through 3.12. Because the package is dormant with no recent updates, users should verify compatibility with their target PostgreSQL and PGVecto.rs versions before adopting it in production.

Use it for

  • Store and query embeddings from machine learning models in PostgreSQL using ORM without writing raw SQL.
  • Perform approximate nearest-neighbor searches on vector embeddings with HNSW or IVF indexing for semantic search or recommendation systems.
  • Bulk-load large sets of vectors into PostgreSQL via Psycopg3's COPY interface for efficient data ingestion.
  • Define vector fields in Django models and run similarity queries through the ORM without custom database functions.
  • Support multiple vector representations (full-precision, sparse, half-precision, binary) in a single PostgreSQL database for different use cases.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you are already committed to PGVecto.rs and need Python ORM integration.

The library has low install friction, but its dormant maintenance status (675 days since last release) means no updates for security, compatibility, or bugs. Install only if you can tolerate stalled upstream development and verify compatibility with your PostgreSQL and PGVecto.rs versions independently.

Install

pgvecto-rs on PyPI

Before you install

Low install friction with only two runtime dependencies (numpy and toml). However, the package is dormant—last release was 675 days ago—so maintenance updates and bug fixes are unlikely.

Requires a running PGVecto.rs PostgreSQL instance (e.g., via Docker) and the vectors extension enabled in the database.

License in practice

Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions.

Quickstart

pip install pgvecto_rs

from pgvecto_rs.sqlalchemy import Vector

# Define a model with a vector column
class Item:
    embedding = Vector(3)

# Insert vectors and query by distance
# session.execute(insert(Item).values(embedding=[1, 2, 3]))
# session.scalars(select(Item).filter(Item.embedding.l2_distance([3, 1, 2]) < 5))

Verify before relying

  • Whether the package remains compatible with current PostgreSQL and PGVecto.rs server versions despite dormant maintenance status.
  • Performance characteristics and scalability limits for different vector types and index strategies.
  • Community support or active forks available if upstream development remains stalled.

Package facts

LicenseApache-2.0 permissive
Python supportCapped below the current Python release <3.13,>=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
numpytoml
MaintenanceDormant 675 days since the last release
First released
Downloads231,563 / month, #9,084 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Evidence: pgvecto_rs-0.2.2-py3-none-any.whl

Tags

Capabilities
postgresql vector database pythonpgvecto.rs python bindingsvector similarity search postgresvector embeddings databaseapproximate nearest neighbor indexpostgres vector typesvector indexing python
Topics
vector-databaseorm-integrationembeddings

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “postgresql vector database python”

  • pgvecto-rsProvides Python bindings for PGVecto.rs, a PostgreSQL vector database…
  • vecsvecs is a Python client for storing, indexing, and querying vectors…
  • pg0-embeddedEmbeds a PostgreSQL database directly in Python with zero…

Give your agent the search over MCP, or paste the wish link into any chat.

More Database packages

psycopg2-binary Worth it
PyPI · Software Development · released Apr 2026

psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.

copyleftcompiled wheel · 3.9+
271.6Mdownloads / mo
redis Worth it
PyPI · Database · released Jul 2026

Python client library for connecting to and executing commands against Redis key-value stores, supporting both synchronous and asynchronous operations.

Install it if your application needs to interact with Redis; the only prerequisite is a running Redis server instance.

MITpure Python · 3.10+
268.3Mdownloads / mo
ydb Worth it
PyPI · Database · released Jul 2026

YDB Python SDK is the official client library for connecting to and querying YDB databases from Python applications.

Install it if you need to connect Python applications to YDB databases.

permissive licensepure Python · 3.10+
210.0Mdownloads / mo
snowflake-connector-python Worth it
PyPI · Software Development · released Aug 2026

Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.

Apache-2.0compiled wheel · 3.10+
193.6Mdownloads / mo
sqlparse Worth it
PyPI · Software Development · released Aug 2026

sqlparse tokenizes SQL text into a tree of statements, clauses, and expressions, and provides functions to split scripts, format queries, and inspect parsed tokens without validating dialect or syntax.

Install it if you need to manipulate, format, or analyze SQL text programmatically.

BSD-3-Clausepure Python · 3.10+
148.9Mdownloads / mo
dbt-adapters With conditions
PyPI · Database · released Jul 2026

Provides base adapter protocols and shared functionality that database adapters use to integrate with dbt-core, handling connections, dialect translation, relation caching, and core interface management.

Apache-2.0pure Python · 3.10.0+
121.3Mdownloads / mo

See also pgvector · nano-vectordb · pyobvector · vecs · sqlite-vec · pg0-embedded · llama-index-vector-stores-postgres · pgserver · psycopg · voyager