A hands-on tutorial that teaches AI agent building from scratch with local LLMs via node-llama-cpp, covering function calling, memory and ReAct.
pguso/rag-from-scratch
An educational JavaScript tutorial that builds retrieval-augmented generation step by step with local LLMs and no cloud APIs.
- Estrelas
- 1,644
- Forks
- 0
- Issues abertas
- 0
- Último commit
- há 7 meses
Recursos principais
- 01Step-by-step examples from document loading to LLM answer generation
- 02In-memory vector store with nearest-neighbor search and metadata filtering
- 03Hybrid search combining vector similarity with BM25 keyword scoring
- 04Multi-query retrieval with reciprocal rank fusion and deduplication
- 05Query rewriting with heuristic and local LLM options via node-llama-cpp
- 06Reusable library modules for loaders, splitters, embeddings, and vector stores
Casos de uso
- Learning how RAG works internally before adopting a framework like LangChain
- Building a local question-answering prototype over your own documents without cloud APIs
- Experimenting with retrieval strategies such as hybrid search or query rewriting
- Teaching embeddings and vector search to a team of JavaScript developers
Tópicos
Perguntas frequentes
- O que é rag-from-scratch?
- An educational JavaScript tutorial that builds retrieval-augmented generation step by step with local LLMs and no cloud APIs.
- rag-from-scratch é gratuito? Qual é a licença?
- rag-from-scratch é open source sob a licença MIT. Confira os termos da licença antes de usá-lo em produtos comerciais.
- rag-from-scratch ainda é mantido?
- Sem commits há mais de 6 meses. O último commit de rag-from-scratch foi em 11 de mar. de 2026.
- Para que posso usar rag-from-scratch?
- Learning how RAG works internally before adopting a framework like LangChain Building a local question-answering prototype over your own documents without cloud APIs Experimenting with retrieval strategies such as hybrid search or query rewriting Teaching embeddings and vector search to a team of JavaScript developers
- Onde consigo rag-from-scratch?
- O código-fonte e as instruções de instalação estão no GitHub: https://github.com/pguso/rag-from-scratch
Resumo gerado por IA a partir do README do projeto. As estatísticas do GitHub são atualizadas diariamente.
Projetos relacionados
Incremental data pipeline framework in Python with a Rust core that keeps vector indexes and knowledge graphs in sync with changing sources for AI agents and RAG apps.
A modular Agentic RAG tutorial and project built with LangGraph, featuring hierarchical indexing, conversation memory, and query clarification.
A 12-chapter, commented tutorial that walks you through building and training a small LLaMA-style GPT from scratch in Python and PyTorch.
Companion code repository for the book AI Agents: The Definitive Guide, with Jupyter notebooks covering agent patterns, evaluation, memory, cost and security.
Companion code for the book Designing Multi-Agent Systems, centered on PicoAgents, a multi-agent framework built from scratch for teaching.