Skip to main content
Avoid re-indexing on every boot by using storage adapters. VectoriaDB supports file, Redis, and in-memory storage.

Storage Adapters

Persist embeddings to local disk:

File Adapter Options

Cache Invalidation

VectoriaDB automatically invalidates the cache when documents change. Use toolsHash and version to control invalidation:

How Invalidation Works

On initialize(), VectoriaDB checks:
  1. Does the cache file/key exist?
  2. Does toolsHash match?
  3. Does version match?
  4. Does modelName match?
If any check fails, the cache is invalidated and re-indexing occurs.

Warm-up Pattern

Common pattern for production deployments:

Manual Storage Operations

Multi-Tenant Isolation

Use namespaces to isolate different indexes:

Error Handling

Overview

Getting started

HNSW

Scaling with HNSW index

Indexing

Adding documents