
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
@mastra/rag
Advanced tools
Affected versions:
The Retrieval-Augmented Generation (RAG) module contains document processing and embedding utilities.
The Retrieval-Augmented Generation (RAG) module contains document processing and embedding utilities.
npm install @mastra/rag
The MDocument class represents text content with associated metadata:
import { MDocument } from '@mastra/rag';
const doc = new MDocument({
text: 'Document content',
metadata: { source: 'example.txt' },
});
FAQs
Unknown package
The npm package @mastra/rag receives a total of 72,530 weekly downloads. As such, @mastra/rag popularity was classified as popular.
We found that @mastra/rag demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.