Vibecode Pinecone

track this build5 phases, 10 steps, beginner friendly
KINDA · weekend project
price $20/moyou'd save $240/yrbuild time one sittingcategory 🗄️ databasesreplaced by 0 people

For anything under a few million vectors, pgvector in the Postgres you already run does the job with a normal index and normal backups. Pinecone earns its fee at scale and for teams who want zero operations; a side project needs neither.

the project pack5 files · written for this build, step by step
README.md
# Pinecone · indie build

Semantic search over your own documents with pgvector in the Postgres you already run: chunked documents with embeddings, cosine search with an HNSW index, hybrid ranking with full-text so exact identifiers still win, a localhost search page, and backups that are just pg_dump.

Estimated effort: **one sitting**. Work `BUILD_PLAN.md` top to bottom · every phase ends in a check that has to pass before the next one starts.

## Stack

| Part | Choice | Why |
| --- | --- | --- |
| Database | Postgres 16 with pgvector | rule zero: a vector index is a column type |
| Embeddings | A provider behind an interface | OpenAI or a local model via Ollama; swappable by env |
| Runtime | Node 22 | the ingest and search scripts |

## Before you start

Have every one of these ready. The plan assumes them from step one.

- [ ] **Node.js 22 or newer** · free
  - Why: Everything in this build runs on it: the server, the scripts, the tests.
  - Get it: Download the LTS installer from nodejs.org, or install with your package manager (brew install node, or nvm install 22). Restart the terminal afterwards.
  - Verify: node --version prints v22 or higher
- [ ] **A terminal and a code editor** · free
  - Why: Every step below is a command you type or a file you edit.
  - Get it: VS Code (code.visualstudio.com), Cursor or Zed. Open a folder for the project and use the editor's built-in terminal.
  - Verify: You can open a folder and run a command in its terminal
- [ ] **Git** · free
  - Why: History for your code, and the way most hosts deploy.
  - Get it: Install from git-scm.com or with your package manager, then run git init in the project folder once it exists.
  - Verify: git --version prints a version
- [ ] **Postgres 16 with the pgvector extension** · free
  - Why: The whole store.
  - Get it: Docker: docker run -d -e POSTGRES_PASSWORD=pw -p 5432:5432 pgvector/pgvector:pg16. Or install pgvector on an existing Postgres.
  - Verify: CREATE EXTENSION vector; succeeds
- [ ] **An embeddings API key, or Ollama locally** · pay per use, or free locally
  - Why: Phase 1 embeds chunks.
  - Get it: OpenAI: platform.openai.com/api-keys. Local: install Ollama and ollama pull nomic-embed-text.
- [ ] **The documents to search** · free
  - Why: Markdown, PDFs converted to text, or a folder of notes.
  - Get it: A folder of files.

## Quick start

```sh
mkdir semantic && cd semantic && git init && npm init -y && npm pkg set type=module && npm install pg@8
mkdir -p docs && cp .env.example .env
```

Then copy `.env.example` to `.env` and fill in the values it documents.

## Honest limits

This build deliberately does not replace:

- Billions of vectors and serverless scale; under a few million this is a column.
- serverless scaling to billions of vectors
- zero-ops managed indexes
- hybrid and sparse search features
- the SLA

If one of those is essential to you, that is the reason to keep paying for Pinecone, and the README should say so rather than pretend.

$ choose a build depth, inspect the files, then open the complete pack in your agent

why people still pay

Teams pay so vector search is nobody's job. Under a million vectors, it is a column.

what you lose

xserverless scaling to billions of vectors

xzero-ops managed indexes

xhybrid and sparse search features

xthe SLA

prior art · use these instead of building, if you'd ratherpgvectorvector similarity search for PostgresQdrantopen-source vector database
share on X ↗"I just replaced Pinecone ($20/mo) with one prompt"
the numbers

Pinecone pricing

builder$20/mo · monthly flat · $240/yr

free tierThe free Starter plan covers 2 GB of vectors across 5 indexes with monthly read and write unit caps.

verified 2026-09-04 · source ↗

questions
Is Pinecone free?

The free Starter plan covers 2 GB of vectors across 5 indexes with monthly read and write unit caps. Paid is Builder at $20/mo (checked 2026-09-04).

Vibecode Pinecone

Kinda. The core of Pinecone is buildable in a weekend with the prompt on this page, but there are real gaps: serverless scaling to billions of vectors, zero-ops managed indexes. Read the honest list above before committing.

How much does Pinecone cost?

Pinecone costs about $20/month (Builder, checked 2026-09-04), which is $240 per year.

What do I lose by replacing Pinecone?

Honestly: serverless scaling to billions of vectors; zero-ops managed indexes; hybrid and sparse search features; the SLA. If any of those are load-bearing for you, keep paying.

Is there an open-source alternative to Pinecone?

Yes: pgvector (vector similarity search for Postgres), Qdrant (open-source vector database). Using prior art is also vibecoding; the prompt is for when you want it exactly your way.