Class: VectorStore

VectorStore()

new VectorStore()

High-performance vector store with SIMD optimization for similarity search. Designed for immutable, one-time loading scenarios with fast searches over focused corpora.

Examples
// Basic usage
const store = new VectorStore(1536);
store.loadDir('./documents');
const results = store.search(queryEmbedding, 10);
// Multiple domain-specific stores
const productStore = new VectorStore(1536);
const supportStore = new VectorStore(1536);
productStore.loadDir('./knowledge/products');
supportStore.loadDir('./knowledge/support');