0.10.0 • Published 5 months ago

@mastra/fastembed v0.10.0

Weekly downloads
-
License
Elastic-2.0
Repository
-
Last release
5 months ago

@mastra/fastembed

This package provides a FastEmbed embedding model integration for use with Mastra Memory.

Note: This functionality was previously included directly within @mastra/core. It has been moved to this separate package because fastembed-js relies on large native dependencies (like onnxruntime-node). Separating it keeps @mastra/core lightweight for users who may not need FastEmbed.

Installation

pnpm add @mastra/fastembed

Usage

import { Memory } from '@mastra/memory';
import { fastembed } from '@mastra/fastembed';

const memory = new Memory({
  // ... other memory options
  embedder: fastembed,
});

// Now you can use this memory instance with an Agent
// const agent = new Agent({ memory, ... });

This package wraps the fastembed-js library to provide an embedding model compatible with the AI SDK and Mastra.

0.10.0

5 months ago

0.0.3

5 months ago

0.0.3-alpha.0

6 months ago

0.0.2

6 months ago

0.0.2-alpha.0

6 months ago