#449 · Primary category: Education & Research
rag-from-scratch
Demystify RAG by building it from scratch. Local LLMs, no black boxes - real understanding of embeddings, vector search, retrieval, and context-augmented generation.
Project last updated:03/11/26
GitHub Stars
1.6K
Forks
193
Contributors
2
License
MIT
Why we included this project
This tutorial builds a retrieval pipeline in plain JavaScript using only local LLMs, and it explains each step instead of hiding it behind a library call. Embedding, chunking, vector storage, retrieval, re-ranking, and query rewriting are all covered line by line, so you can read exactly how context gets retrieved and merged into a prompt. The examples follow a progressive path, which makes it a good place to build a mental model before committing to a heavier framework. Developers who have been burned by black-box tools will find it useful for debugging and tuning a real RAG setup later. Teams just starting with retrieval-augmented generation get a solid grounding without any cloud dependency.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
prompts.chat
f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.
JavaGuide
Java Interview & Backend General Interview Guide, covering computer fundamentals, databases, distributed systems, high concurrency, system design, and AI application development.
system-prompts-and-models-of-ai-tools
A curated collection of system prompts, internal tools, and AI models from popular AI assistants and coding agents.
30-seconds-of-code
Coding articles to level up your development skills
generative-ai-for-beginners
21 Lessons, Get Started Building with Generative AI