@mastra/duckdb
v1.12.0
Published
DuckDB vector store provider for Mastra - embedded high-performance vector storage with HNSW indexing
Keywords
Readme
@mastra/duckdb
DuckDB vector store implementation for Mastra, providing high-performance embedded vector similarity search with HNSW indexing. No external server required - runs entirely in-process.
Installation
npm install @mastra/duckdbUsage
Configure the database credentials required by your provider.
import { Mastra } from '@mastra/core';
import { DuckDBVector } from '@mastra/duckdb';
const vectorStore = new DuckDBVector({
id: 'rag-store',
path: './rag-vectors.duckdb',
});
// Use with Mastra's RAG system
const mastra = new Mastra({
vectors: {
ragStore: vectorStore,
},
});Documentation
Changelog
See the package changelog for version history and release notes.
Support
We have an open community Discord. Come and say hello and let us know if you have any questions or need any help getting things running.
