pgvector VS postgres

Compare pgvector vs postgres and see what are their differences.

postgres

Unmodified Postgres with some useful plugins (by supabase)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
pgvector postgres
78 15
9,349 1,277
7.0% 2.2%
9.9 9.5
7 days ago 5 days ago
C Shell
GNU General Public License v3.0 or later PostgreSQL License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

pgvector

Posts with mentions or reviews of pgvector. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-25.
  • Integrate txtai with Postgres
    2 projects | dev.to | 25 Apr 2024
    # Install Postgres and pgvector !apt-get update && apt install postgresql postgresql-server-dev-14 !git clone --branch v0.6.2 https://github.com/pgvector/pgvector.git !cd pgvector && make && make install # Start database !service postgresql start !sudo -u postgres psql -U postgres -c "ALTER USER postgres PASSWORD 'pass';"
  • Vector Database solutions on AWS
    1 project | dev.to | 28 Mar 2024
    When talking about Vector Databases, in the market we can find the specialized ones and multi-model, most of the major database providers like Oracle, PostgreSQL or MongoDB, for mention some of them, have integrated a specific solution to retrieve vector data.
  • Using pgvector To Locate Similarities In Enterprise Data
    2 projects | dev.to | 21 Mar 2024
    For this example, I wanted to focus on how pgvector  – an open-source vector similarity search for Postgres – can be used to identify data similarities that exist in enterprise data.
  • pgvector vs. pgvecto.rs in 2024: A Comprehensive Comparison for Vector Search in PostgreSQL
    1 project | dev.to | 19 Mar 2024
    pgvector supports dense vector search well, but it does not have plan to support sparse vector.
  • Pg_vectorize: The simplest way to do vector search and RAG on Postgres
    6 projects | news.ycombinator.com | 6 Mar 2024
    There's an issue in the pgvector repo about someone having several ~10-20million row tables and getting acceptable performance with the right hardware and some performance tuning: https://github.com/pgvector/pgvector/issues/455

    I'm in the early stages of evaluating pgvector myself. but having used pinecone I currently am liking pgvector better because of it being open source. The indexing algorithm is clear, one can understand and modify the parameters. Furthermore the database is postgresql, not a proprietary document store. When the other data in the problem is stored relationally, it is very convenient to have the vectors stored like this as well. And postgresql has good observability and metrics. I think when it comes to flexibility for specialized applications, pgvector seems like the clear winner. But I can definitely see pinecone's appeal if vector search is not a core component of the problem/business, as it is very easy to use and scales very easily

  • FLaNK 04 March 2024
    26 projects | dev.to | 4 Mar 2024
  • Vector Database and Spring IA
    2 projects | dev.to | 11 Feb 2024
    The Spring AI project aims to streamline the development of applications that incorporate artificial intelligence functionality without unnecessary complexity. On this example we use features like: Embedding, Prompts, ETL and save all embedding on PGvector(Postgres Vector database)
  • Use pgvector for searching images on Azure Cosmos DB for PostgreSQL
    2 projects | dev.to | 7 Feb 2024
    Official GitHub repository of the pgvector extension
  • pgvector 0.6.0: 30x faster with parallel index builds
    1 project | dev.to | 31 Jan 2024
    pgvector 0.6.0 was just released and will be available on Supabase projects soon. Again, a special shout out to Andrew Kane and everyone else who worked on parallel index builds.
  • Store embeddings in Azure Cosmos DB for PostgreSQL with pgvector
    2 projects | dev.to | 29 Jan 2024
    The pgvector extension adds vector similarity search capabilities to your PostgreSQL database. To use the extension, you have to first create it in your database. You can install the extension, by connecting to your database and running the CREATE EXTENSION command from the psql command prompt:

postgres

Posts with mentions or reviews of postgres. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-15.
  • Supabase – General Availability Week
    7 projects | news.ycombinator.com | 15 Apr 2024
    - Now, the connection between our API servers and the database was slow (a few hundred ms per query), so we moved to self-hosting Postgres which was pretty painful. We tried to use https://github.com/supabase/postgres, but the documentation was very lacking and we had to make a bunch of modifications to get it to work. After we got it working, it was pretty smooth though - pretty easy to implement backups, etc.
  • Any comprehensive guide on self hosting ?
    4 projects | /r/Supabase | 1 Jul 2023
  • Vector support in PostgreSQL services to power AI-enabled applications
    3 projects | news.ycombinator.com | 1 Jul 2023
    I think Supabase generally does good work, but I don't think they can be given credit for pgvector, if that's what you're indicating (I might have misread).

    As I understand, Andrew Kane is the principal author of pgvector, and has worked on it for almost two years before Supabase added support for it.

    See also https://github.com/pgvector/pgvector/issues/54 and https://github.com/supabase/postgres/pull/472.

  • Storing OpenAI embeddings in Postgres with pgvector
    9 projects | news.ycombinator.com | 6 Feb 2023
    we merged the pgvector PR about 2 weeks ago (https://github.com/supabase/postgres/pull/472). If you're missing anything for your CLI don't hesitate to reach out and we'll see if we can integrate it into the product (my email is in my profile)

    as an aside, Pinecone looks great

  • Given an ansible playbook, how do I "execute" it on a server?
    5 projects | /r/homelab | 3 May 2022
    One of the things they recommend is separating the PostgreSQL DB from the rest of the stack. And they also provide an ansible playbook to set up a postgres DB: https://github.com/supabase/postgres/blob/625899e687047a9da658f3f8cc6dd91ac9769694/ansible/playbook.yml
  • GraphQL is now available on Supabase
    14 projects | news.ycombinator.com | 29 Mar 2022
    > entire solution from docker

    We PR'd this into our docker-compose today [0]. We're always a bit slammed during Launch Week, so if you spot any problems let use know and we'll patch it up asap.

    The extension is also deployed directly into our PG bundle [1] which is available in docker [2]

    > The Gui for adding roles and tying them to postgres access is very slick with hasura. Is this done manually via SQL commands with supabase?

    I haven't tried Hasura so I don't know if this is a direct comparison. pg_graphql works with Postgres Row Level Security - we provide a GUI for this in our Dashboard, but they are also just native PG Policies, so you can write them in raw SQL

    [0] https://github.com/supabase/supabase/pull/6138/files#diff-41...

    [1] https://github.com/supabase/postgres

    [2] https://hub.docker.com/r/supabase/postgres

  • PG 14 now available in Supabase
    2 projects | /r/PostgreSQL | 29 Nov 2021
    and can also PR if it's something useful for everyone: https://github.com/supabase/postgres
  • GitHub - supabase/postgres: Unmodified Postgres with some useful plugins
    1 project | /r/PostgreSQL | 7 Sep 2021
  • Hacker News top posts: Sep 6, 2021
    5 projects | /r/hackerdigest | 6 Sep 2021
    Show HN: Postgres Docker image with common extensions\ (23 comments)
  • Show HN: Postgres Docker image with common extensions
    5 projects | news.ycombinator.com | 5 Sep 2021
    Hi! I'm one of the contributors to the repo. Just to clarify, our Docker image [0] only contains the latest version of Postgres (13) and the common extensions listed out here [1]. All the other features such as this [2] and this [3] are only available in the AWS EC2 or DO droplet images. We've since updated our README to make that clearer :-)

    You can still connect the DB with a PgBouncer image spun up in another container however. Unfortunately, I can't really recommend you which one since there doesn't seem to be an official Docker image for PgBouncer and I myself have never tried any of the existing ones out there. If you're looking to use PostgREST however, they do have an official Docker image that you can use over here [4].

    [0]: https://hub.docker.com/r/supabase/postgres

    [1]: https://github.com/supabase/postgres#extensions

    [2]: https://github.com/supabase/postgres#enhanced-security

    [3]: https://github.com/supabase/postgres#additional-goodies

    [4]: https://hub.docker.com/r/postgrest/postgrest/

What are some alternatives?

When comparing pgvector and postgres you can also consider the following projects:

Milvus - A cloud-native vector database, storage for next generation AI applications

postgres-operator - Postgres operator creates and manages PostgreSQL clusters running in Kubernetes

faiss - A library for efficient similarity search and clustering of dense vectors.

Weaviate - Weaviate is an open-source vector database that stores both objects and vectors, allowing for the combination of vector search with structured filtering with the fault tolerance and scalability of a cloud-native database​.

DBngin - DB Engine

Elasticsearch - Free and Open, Distributed, RESTful Search Engine

http-proxy - A full-featured http proxy for node.js

qdrant - Qdrant - High-performance, massive-scale Vector Database for the next generation of AI. Also available in the cloud https://cloud.qdrant.io/

postgres-operator - Production PostgreSQL for Kubernetes, from high availability Postgres clusters to full-scale database-as-a-service.

ann-benchmarks - Benchmarks of approximate nearest neighbor libraries in Python

edgedb - A graph-relational database with declarative schema, built-in migration system, and a next-generation query language