VectorVault™
VectorVault is an open-source, vendor-agnostic DataOps framework that acts as the Flyway / Liquibase for AI Vector Databases. It brings strict version control, transactional lineage tracking, and algorithmic dimensional schema migration to AI data operations.
Instead of wiping your vector collections and spending thousands of dollars running heavy ETL re-embedding jobs through cloud APIs every time you upgrade your embedding models, VectorVault manages the lifecycle locally via deterministic database changelogs, auto-calibrated projection matrices, and high-performance linear algebra.
Core Capabilities
- Transactional Schema Control: Tracks embedding shifts through an internal system ledger (
vector_vault_changelog) to keep historical data lineage structurally organized. - Auto-Calibrated Dimensional Transformation: Uses Ordinary Least Squares (OLS) linear projection matrices (
numpy) with built-in anchor calibration and.npydisk caching to mathematically translate vectors across models (384D→768D) instantly without API fees or manual dimension configs. - Plug-and-Play Storage Migrator (
VectorVaultMigrator): Connects directly to source and empty target vector databases, auto-detects vector dimensions from binary storage, and migrates records in milliseconds. - Gateway Circuit Breaker: Acts as a runtime firewall intercepting app queries, blocking mismatched dimensional requests before they cause database crashes.
System Architecture
flowchart TD
A["New Embedding Model Selected"] --> B["Auto-Calibrate or Load Cached Matrix (.npy)"]
B --> C["vectorvault migrate --source-db ... --target-db ..."]
C --> D["Update vector_vault_changelog Ledger"]
C --> E["VectorVaultMigrator & ProjectionEngine"]
E --> F["Auto-Detect Dimensions & Compute Pseudoinverse Weights"]
F --> G["Transform Historical Database Records In-Memory"]
G --> H["Populated Target Vector Database (No API fees, $0 Spent)"]
style C fill:#f9f,stroke:#333,stroke-width:2px
style H fill:#f96,stroke:#333,stroke-width:2px
Quick Start
1. Installation
Install the core engine along with database extras directly from your workspace:
pip install "vectorvault[all]"
(For local development inside your cloned repository: pip install -e .)
2. Verify Your Local Environment
Ensure the global CLI bindings are fully mapped to your environment:
vectorvault --help
3. Initialize the Metadata Tracking Ledger
Spin up the internal database schema tracking indexes cleanly:
vectorvault init
4. Run a Cross-Model Database Migration (CLI)
Migrate existing vectors from a legacy database directly into an empty destination database with automatic dimension detection:
vectorvault migrate \
--source-model all-MiniLM-L6-v2 \
--target-model all-mpnet-base-v2 \
--source-db vault_data.db \
--source-table legacy_storage_384d \
--target-db new_company_vectors.db \
--target-table migrated_storage
Configuration Schema Example
Define your embedding model upgrades inside a standard JSON migration configuration file:
{
"version_id": "002",
"description": "Upgrade from OpenAI text-embedding-3-small to local Llama3-Embedding",
"source_model": "text-embedding-3-small",
"target_model": "llama3-embedding"
}
Validate the file directly via the terminal execution check:
vectorvault validate -f migration.json
Use the Python SDK
Option A: End-to-End Database Migration (VectorVaultMigrator)
Connect directly to your source and target vector databases with zero manual dimension setup:
from vectorvault.migrator import VectorVaultMigrator
migrator = VectorVaultMigrator(
source_model_name="all-MiniLM-L6-v2",
target_model_name="all-mpnet-base-v2"
)
result = migrator.migrate_sqlite(
source_db_path="vault_data.db",
source_table="legacy_storage_384d",
target_db_path="new_company_vectors.db",
target_table="migrated_storage"
)
print(f"✅ Migrated {result['count']} vectors ({result['source_dim']}D -> {result['target_dim']}D)")
Option B: In-Process Math SDK (VectorProjectionEngine)
If you are running migrations straight inside your local data pipeline script, initialize the mathematical projections layer directly:
from vectorvault.engine import VectorProjectionEngine
engine = VectorProjectionEngine()
# 1. Load cached projection matrix or auto-calibrate from built-in anchors
engine.get_or_train_matrix("all-MiniLM-L6-v2", "all-mpnet-base-v2", source_model, target_model)
# 2. Transform your full dataset instantly in-memory via matrix multiplication
migrated_vectors = engine.transform_vectors(production_old_vectors)
Running the Verification Suite & Visual GUI
Ensure your changes align cleanly with development bounds by running the automated validation suite:
pytest -v
To generate a local cross-dimensional SQLite vector store (384D → 768D) and inspect both storages visually in Datasette:
python tests/view_in_gui.py
datasette vault_data.db --load-extension=\$(python -c "import sqlite_vec; print(sqlite_vec.loadable_path())")
Metadata
Release files for vectorvault-engine 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vectorvault_engine-0.1.0.tar.gz | 14.3 kB | Without provenance | Details for vectorvault_engine-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vectorvault_engine-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for vectorvault_engine-0.1.0-py3-none-any.whl |
Total release size: 25.9 kB
Release files / vectorvault_engine-0.1.0.tar.gz
| Download URL | vectorvault_engine-0.1.0.tar.gz |
|---|---|
| Size | 14.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a148b83d5b71914f11be02d803ea864b71a9c4583f84bdda5bd632220f00c31
|
|
BLAKE2b-256 checksum How to use checksums |
b05670ffa27d5898e3db12a15b076588b0a916b7ecae0c86ef84060c1967699e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.7
|
Release files / vectorvault_engine-0.1.0-py3-none-any.whl
| Download URL | vectorvault_engine-0.1.0-py3-none-any.whl |
|---|---|
| Size | 11.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c9322b92c3544817355c7658832d2b949a62b856cdb921807e941019c17c3a77
|
|
BLAKE2b-256 checksum How to use checksums |
a57a3bee170f6b8e71b5194186b6ffeaac3b510fadc58cf00a1b2d0e455c12df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.7
|
Security for vectorvault-engine 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.