pgvector
PostgreSQL vector type support for Python with embeddings.
Used in agent projects
25
0.2% of 12,697 public repos built with AI coding agents
Rank in databases, orms and clients
#26 of 30
by use in those projects
Downloads
8.4M
PyPI, last 7 days, pgvector
GitHub stars
1,534
last push Oct 9, 2026
How pgvector is used
pgvector is a dependency in 25 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.2%), #26 of 30 in databases, orms and clients. The most used alternative there is Prisma. Projects that use it most often also use python-dotenv (76.0%), Pydantic (72.0%), FastAPI (68.0%).
Often used with pgvector
| python-dotenv | 76.0% of pgvector projects · 11.7× more than average |
|---|---|
| Pydantic | 72.0% of pgvector projects · 14.1× more than average |
| FastAPI | 68.0% of pgvector projects · 16.1× more than average |
| Uvicorn | 68.0% of pgvector projects · 15.9× more than average |
| asyncpg | 68.0% of pgvector projects · 89.0× more than average |
| SQLAlchemy | 60.0% of pgvector projects · 30.5× more than average |
| Pydantic Settings | 56.0% of pgvector projects · 28.3× more than average |
| Alembic | 52.0% of pgvector projects · 57.4× more than average |
By coding agent
| Claude Code | 0.4% of projects set up for it |
|---|---|
| Cursor | 0.5% of projects set up for it |
| GitHub Copilot | 0.3% of projects set up for it |
Share of public repos configured for each agent that list pgvector as a dependency.
Install
| Package | pip install pgvector |
|---|---|
| Main stacks | Python (25) |
| Example projects | MDalamin5/End-to-End-Agentic-Ai-Automation-Lab, aanno/cocoindex-code-mcp-server, leonardsellem/readwise-vector-db, mimfort/rag_for_git, seer-engg/seer |
Alternatives to pgvector
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Prisma npm Modern ORM with intuitive schema, migrations, and type-safe database queries. |
381 (3.0%) | 19M | 23 | Apache-2.0 |
| pg npm PostgreSQL client for Node.js with pure JavaScript and libpq API compatibility. |
372 (2.9%) | 63.4M | 13.2K | MIT |
| Drizzle ORM npm TypeScript ORM for SQL databases with type safety and zero-runtime overhead. |
323 (2.5%) | 27.2M | 36K | Apache-2.0 |
| Drizzle Kit npm CLI migration tool for Drizzle ORM that auto-generates SQL migrations intelligently. |
309 (2.4%) | 22.3M | 36K | MIT |
| SQLAlchemy pypi Python SQL toolkit and object-relational mapper for database abstraction. |
250 (2.0%) | 85.7M | 12.2K | — |
| better-sqlite3 npm Fastest and simplest SQLite library for Node.js with synchronous API. |
162 (1.3%) | 11.3M | 7,513 | MIT |
| psycopg2 pypi Popular PostgreSQL adapter for Python with full database access and query execution. |
143 (1.1%) | 50.7M | 3,656 | LGPL with exceptions |
| Mongoose npm MongoDB object modeling library providing schema validation and query building. |
142 (1.1%) | 6.6M | 27.5K | MIT |