Wscats/minirag
用最少的代码实现完整的 RAG 引擎,零依赖,纯 JavaScript,详细中文注释,适合学习和理解 RAG 原理。
Implements retrieval-augmented generation through TF-IDF vectorization and cosine similarity search without external embedding APIs, orchestrating document chunking, vector storage, and prompt composition to invoke CodeBuddy CLI as the LLM backbone. The architecture separates indexing (text tokenization, vocabulary building, sparse vector generation) from querying (similarity ranking, context retrieval, prompt construction), making it suitable for Node.js environments requiring offline or lightweight RAG workflows.
Stars
5
Forks
2
Language
JavaScript
License
MIT
Category
Last pushed
Mar 15, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/rag/Wscats/minirag"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
datawhalechina/all-in-rag
🔍大模型应用开发实战一:RAG 技术全栈指南,在线阅读地址:https://datawhalechina.github.io/all-in-rag/
bakrianoo/mini-rag
An Educational Project (step by step) to teach how to build a production-ready app for RAG application.
Sstobo/Claude-Code-Game-Master
Total conversion for Claude Code. Use RAG and the RPG ruleset apis to play a persistent...
BastinFlorian/RAG-on-GCP-with-VertexAI
Create a Chatbot app on your own data with GCP tools
ItMeDiaTech/rag-cli
Local Retrieval-Augmented Generation (RAG) plugin for Claude Code that combines Chroma db vector...