Mastra RAG

The RAG package provides document loaders, chunkers, embedders (including FastEmbed local embeddings), rerankers, and retrieval helpers that compose with any Mastra vector store. Supports semantic, keyword, and hybrid retrieval, metadata filtering, and graph RAG patterns.

API entry from apis.yml

apis.yml Raw ↑
aid: mastra-ai:mastra-rag
name: Mastra RAG
description: The RAG package provides document loaders, chunkers, embedders (including FastEmbed local
  embeddings), rerankers, and retrieval helpers that compose with any Mastra vector store. Supports semantic,
  keyword, and hybrid retrieval, metadata filtering, and graph RAG patterns.
humanURL: https://mastra.ai/docs/rag/overview
tags:
- RAG
- Retrieval
- Embeddings
properties:
- type: Documentation
  url: https://mastra.ai/docs/rag/overview
- type: SourceCode
  url: https://github.com/mastra-ai/mastra/tree/main/packages/rag
- type: PackageManager
  url: https://www.npmjs.com/package/@mastra/rag