Skip to main content

vector-db-sizer

What it is

vector-db-sizer is an analytical CLI estimator for vector database disk and RAM sizing.

When to use it

Use it for fast pre-implementation sizing work, such as:

  • early architecture decisions;
  • comparing vector dimensions;
  • comparing engines;
  • comparing index types;
  • estimating metadata/payload impact;
  • generating Markdown/CSV/JSON artifacts for architecture discussions.

What it does not do

  • No live database connections.
  • No ingestion or load execution.
  • No latency/recall benchmarking.
  • No pricing calculations.
  • No production guarantee.

Quick start

uv sync
uv run vector-db-sizer validate examples/qdrant_text_hnsw.yaml
uv run vector-db-sizer estimate examples/qdrant_text_hnsw.yaml --format markdown --out report.md
uv run vector-db-sizer estimate examples/multi_scenario.yaml --format csv --out comparison.csv

Input YAML

name: qdrant_text_hnsw

dataset:
  source_type: text
  total_tokens: 50000000
  chunk_tokens: 512
  chunk_overlap: 64

embedding:
  kind: dense
  dimensions: 1536
  dtype: float32

database:
  engine: qdrant
  index_type: hnsw

Single-scenario example

uv run vector-db-sizer estimate examples/qdrant_text_hnsw.yaml --format markdown

Multi-scenario example

uv run vector-db-sizer estimate examples/multi_scenario.yaml --format csv
uv run vector-db-sizer estimate examples/multi_scenario.yaml --format json

Output formats

  • json (machine-readable)
  • markdown (human report)
  • csv (comparison table)

Supported engines

  • generic
  • pgvector
  • qdrant
  • milvus
  • elasticsearch
  • opensearch
  • weaviate
  • pinecone

How to interpret the report

  • Raw vectors: uncompressed/base vector bytes.
  • Quantized vectors: additional quantized representation when modeled.
  • Record payload: IDs + metadata/text/provenance payload bytes.
  • Index disk: index structure bytes on disk.
  • Engine overhead: engine/profile-level overhead approximation.
  • Final disk estimate: replicated storage plus WAL/snapshot/safety factors.
  • Final RAM estimate: vectors + payload + index + overhead RAM approximation.
  • Warnings: profile caveats and scenario assumptions to review.
  • Confidence: per-component confidence levels for planning.

Confidence levels

  • high: formulaic or type-level estimate.
  • medium: useful engineering approximation.
  • low: heuristic and engine-dependent; validate with pilot load.

Production sizing warning

The estimates are analytical and should be calibrated with a representative pilot load before production capacity planning.

Development

uv sync
uv run pytest
uv run ruff check .

Current limitations

  • Engine profiles are approximate.
  • No vendor pricing model.
  • No actual DB measurements from live systems.
  • No latency/recall estimation.
  • No automatic database selection.

Metadata

Release files for vector-db-sizer 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vector-db-sizer 0.1.0
File Size Uploaded Provenance
vector_db_sizer-0.1.0.tar.gz 39.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for vector-db-sizer 0.1.0
File Interpreter ABI Platform
vector_db_sizer-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 63.7 kB

Release files / vector_db_sizer-0.1.0.tar.gz

Download URL vector_db_sizer-0.1.0.tar.gz
Size 39.4 kB
Tags Source
SHA-256 checksum
How to use checksums
71cb8b74976bb42e5111f5d8a0d2d518678223bbdaa147f6673f0555c291f136
BLAKE2b-256 checksum
How to use checksums
faf0bd260fed695623ceebd17b61a9b91526f079eaa0a0606a3e7ead51480e9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / vector_db_sizer-0.1.0-py3-none-any.whl

Download URL vector_db_sizer-0.1.0-py3-none-any.whl
Size 24.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8bad0f1c9a65061c8a25a81cdf775aa3c1efcf8c9a09790eba74b9bee9749e46
BLAKE2b-256 checksum
How to use checksums
50a775bb92e35b69310730f3844eff546cf1f861a1ec28e821604429637010da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for vector-db-sizer 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page