@abhi-arya1/mastra-minirag
v1.0.1
Published
Minimal recursive text chunking functionality extracted from @mastra/rag for edge deployments
Downloads
335
Maintainers
Readme
MiniRAG
This is an adapted version of @mastra/rag that only includes the recursive chunking strategy, for deployment of applications on edge devices, such as Cloudflare Workers.
To install, run:
bun install @abhi-arya1/mastra-miniragWhat's Included
This package contains only the recursive chunking strategy from Mastra's RAG package. You can see the docs for that here.
To minimize package size, the following have been removed:
- All other chunking strategies (character, token, markdown, html, json, latex, sentence, semantic-markdown)
- Metadata extractors (title, summary, questions, keywords)
- Reranking functionality
- GraphRAG
- Tools and utilities
- Heavy dependencies:
js-tiktoken,node-html-better-parser,big.js,zeroentropy
All recursive chunking options from the docs are supported.
This project is licensed under the Apache License 2.0, same as the original project. You can see the license here.
