#36 · Primary category: Vector Databases

pgvector-python

pgvector support for Python

Project last updated:07/06/26

GitHub Stars

1.5K

Forks

93

Contributors

8

License

MIT

Why we included this project

Python teams that already run PostgreSQL can add vector search without standing up a separate database service, because this package layers pgvector's vector type and distance operators onto the drivers and ORMs they probably use already: Django, SQLAlchemy, SQLModel, Psycopg 2 and 3, asyncpg, pg8000, and Peewee. Nearest-neighbor queries fit into an existing schema with a few lines, so there is no need to rework the data layer. The included examples reach beyond basic similarity search into hybrid retrieval with reciprocal rank fusion, sparse and late-interaction search, and image or document lookup, which makes it handy for teams prototyping RAG on infrastructure they already maintain. Since it is a client binding rather than a standalone engine, you get vector capabilities inside your current Postgres deployment instead of committing to a new database.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category