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.

Mastra RAG is one of 12 APIs that Mastra publishes on the APIs.io network.

Tagged areas include RAG, Retrieval, and Embeddings. The published artifact set on APIs.io includes API documentation.

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