Skip to main content
PAPER LEDGER SEATEXIT FINOPS // OPEN WEBUI + DOCLING + QDRANT AUDIT BASELINE: 2026-10-15 | VULTR ($300 CREDIT) + HOSTINGER KVM 4/8 ($9.99-$19.99/MO)
OpenWebUIRAG
OpenWebUIRAG Transparency: Outbound /go/ links marked rel="sponsored" may earn a partner commission at zero cost to you (Disclosure).
Cost Models // SeatExit FinOps

PostgreSQL pgvector vs External Qdrant HNSW Memory Profile

pgvector simplifies small stacks (<150k chunks), while Qdrant int8 saves ~40-55% RAM and eliminates Postgres index-build memory spikes at 500k+.

Measured Unit Economics & Telemetry

Using pgvector inside PostgreSQL 16 consolidates chat rows and embeddings into one database. However, pgvector stores uncompressed float32/halfvec pages inside shared_buffers and requires multi-GB maintenance_work_mem during HNSW rebuilds. Qdrant isolates vector memory, supports native sparse+dense hybrid search, and quantizes to int8 cleanly.

Resource / Billing LineAudited ValueFinOps Impact
100k Chunks: pgvector vs Qdrant515 MB vs 345 MBBoth fit easily on 8 GB KVM 2
500k Chunks: pgvector vs Qdrant1,455 MB vs 1,005 MBQdrant saves ~450 MB steady RAM
1.0M Chunks: pgvector vs Qdrant2,630 MB vs 1,830 MBQdrant avoids Postgres shared_buffers thrash
Native Hybrid BM25 + DenseManual FTS join vs NativeQdrant executes single-RPC hybrid scoring

Implementation & Configuration Checklist

  1. Use pgvector Below 150k Chunks: If total corpus stays under ~3,000 PDFs, single-DB pgvector keeps backups atomic.
  2. Switch to Qdrant Above 250k Chunks: Set VECTOR_DB=qdrant once teams upload multi-department PDF archives.
  3. Tune shared_buffers Independently: Keep Postgres dedicated to relational chat/user state when Qdrant owns vectors.
VECTOR_DB=qdrant
QDRANT_URI=http://qdrant:6333
# Alternative <150k chunks:
# VECTOR_DB=pgvector

Team RAG Infrastructure FAQ

Can we migrate from pgvector to Qdrant later?

Yes, though changing vector stores requires re-indexing raw document collections into Qdrant.

Which storage backend benefits most from NVMe IOPS?

Both benefit, especially Qdrant during disk-backed float32 rescoring and Postgres during WAL commits.

Related Cost Models Dossiers

OpenWebUIRAG: Compare pgvector vs Qdrant on high-IOPS Vultr NVMe nodes Deploy Vultr NVMe