· Retrieval/ Head to head

pgvector vs Pinecone

The deciding difference is operational: pgvector can run on infrastructure you control, Pinecone cannot. If that constraint is real for you, it settles the choice before anything else is considered.

pgvector

Vector search inside the Postgres you already run.

Open source · can be self-hosted

Correct default under roughly ten million vectors. Reach for a dedicated store when it stops being.

Pinecone

Fully managed vector database. No index to operate.

Proprietary · freemium · hosted service only · SDKs for Python and TypeScript

· Side by side/ 5 of 6 differ
pgvectorPinecone
LicenceOpen sourceProprietary
Pricingopen sourcefreemium
Self-hostableYesNo
LanguagesAny languagePython, TypeScript
Install
Keys requiredNonePINECONE_API_KEY
· Common questions/ FAQ

What is the difference between pgvector and Pinecone?

The deciding difference is operational: pgvector can run on infrastructure you control, Pinecone cannot. If that constraint is real for you, it settles the choice before anything else is considered. pgvector: Vector search inside the Postgres you already run. Pinecone: Fully managed vector database. No index to operate.

Can pgvector and Pinecone be self-hosted?

pgvector can run on your own infrastructure. Pinecone is a hosted service only.

Are pgvector and Pinecone open source?

pgvector is open source (open source). Pinecone is proprietary (freemium).

Build a stack with pgvectorAll retrieval options
· For agents/ This page, machine-readable

Every page here answers to Accept: text/markdown and returns the same content at roughly a tenth the tokens. No separate site, no toggle — same URL.

curl -s -H "Accept: text/markdown" https://newagent.build/compare/pgvector-vs-pinecone