@mastra/fastembed
TypeScript icon, indicating that this package has built-in type declarations

0.10.0 • Public • Published

@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.

Readme

Keywords

none

Package Sidebar

Install

npm i @mastra/fastembed

Weekly Downloads

7,396

Version

0.10.0

License

Elastic-2.0

Unpacked Size

10.1 kB

Total Files

9

Last publish

Collaborators

  • smthomas
  • abhiaiyer
  • ifedayo
  • adeleke5140
  • taofeeq-deru
  • ehindero
  • calcsam
  • rase-
  • wardpeet
  • tylerbarnes
  • nikaiyer