Skip to main content
Create a new VectoriaDB instance with configuration options.

Signature

Parameters

config

Optional configuration object. All options have sensible defaults.

Options Reference

Examples

Basic Usage

With Configuration

With Storage

With HNSW

Type Parameter

T extends DocumentMetadata

The generic type parameter defines your metadata structure:
Your custom interface must extend DocumentMetadata and include an id field.

initialize()

Initialize the database

Configuration

Full config interface

Storage Adapters

Persistence options