pguso/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.

by Patric Gutersohn JavaScript MIT licence 197 forks Created Oct 2025 View on GitHub

Stars
1,652
19% of pguso's stars
Rank
#41,527
of 852,204 repos, top 5%
In JavaScript
#4,967
of 99,824 repos, top 5%

Among 852,204 repos

Compare with

1.6k–2.5k stars: 15,650 repos, including rag-from-scratch

Stars along the bottom, and repos in each band on a log scale

Quick stats

Next rank
+1 star to reach #41,508
Next milestone
+5,559 stars to reach the top 1%
Popular
One of 66,543 repos with 1k+ stars
Yearly average
1,582 stars a year since Oct 2025

Stars counted Recounted daily Next count around