mirror of
https://github.com/mastra-ai/mastra.git
synced 2026-11-17 08:44:46 +00:00
|
History
|
||
|---|---|---|
| .. | ||
| src | ||
| .gitignore | ||
| CHANGELOG.md | ||
| lint-staged.config.js | ||
| package.json | ||
| README.md | ||
| tsconfig.build.json | ||
| tsconfig.json | ||
| tsdown.config.ts | ||
| turbo.json | ||
| vitest.config.ts | ||
@mastra/lance
@mastra/lance provides Mastra storage and vector search backed by the embedded LanceDB database. Use it when you want local, file-based persistence and semantic search without operating a separate database service.
Installation
npm install @mastra/lance
Usage
Create a local LanceDB vector store, then create an index before writing embeddings.
import { LanceVectorStore } from '@mastra/lance';
const vectorStore = await LanceVectorStore.create('./data/lancedb');
await vectorStore.createIndex({
indexName: 'documents',
dimension: 1536,
});
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.