etemigarba

Building Online RAG Pipelines For Semantic Search — Data skill for Claude Code

Data community

Build a production retrieval-augmented generation pipeline in plain JavaScript: ingest, chunk, embed, store in pgvector, hybrid-search with RRF and MMR, then stream grounded, cited answers from Claude.

How to install Building Online RAG Pipelines For Semantic Search

This entry records only its repository, not the path inside it, so there is no exact command to give. Open etemigarba/Building-Online-RAG-Pipelines-for-Semantic-Search and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Building Online RAG Pipelines For Semantic Search does

Build a production retrieval-augmented generation pipeline in plain JavaScript: ingest, chunk, embed, store in pgvector, hybrid-search with RRF and MMR, then stream grounded, cited answers from Claude or GPT into a Next.js app. No orchestration frameworks. Companion repo to a 51-slide course. MIT: free to adopt, edit and teach.

Alternatives in Data

  • n8n Code JavaScript — JavaScript in n8n Code nodes with data access patterns 3.6k ★
  • Global Stock Data — US stock market data for AI coding assistants — zero-auth, official sources 1.5k ★
  • Soul.Md — The best way to build a personality for your agent 381 ★

README

Building Online RAG Pipelines for Semantic Search

A complete, hand-written Retrieval-Augmented Generation (RAG) pipeline in plain JavaScript — seven steps, zero frameworks, fully functional offline by default.

**Course repository** for the 51-slide "Building Online RAG Pipelines for Semantic Search" (2026).


Quick Links

Resource Location
Course materials `rag-pipeline-course/`
Full documentation `rag-pipeline-course/docs/`
Wiki (concepts & guides) GitHub Wiki
Slide-to-code mapping `rag-pipeline-course/docs/slide-to-code-map.md`

The Pipeline (7 Steps)

Data → Clean → Chunk → Embed → Store → Retrieve → Rerank → Prompt → Generate
   1      2       3       4        5        6        7        8       9
  • Offline (steps 1-4): Run on a schedule — ingestion, chunking, embedding, indexing
  • Online (steps 5-9): Run per-request — semantic search, reranking, grounding, generation, streaming

Run It (No Keys Required)

git clone https://github.com/etemigarba/Building-Online-RAG-Pipelines-for-Semantic-Search.git
cd Building-Online-RAG-Pipelines-for-Semantic-Search/rag-pipeline-course
npm install
npm run index:seed    # index 12 seed documents (~40 chunks)
npm run serve         # http://localhost:3001

Ask: *"What is the pass mark for CSC 508?"*

Uses deterministic fake providers by default (`EMBED_PROVIDER=fake`, `LLM_PROVIDER=fake`) — no API keys, no network, no Docker.


Go Live (Two Variables)

EMBED_PROVIDER=openai OPENAI_API_KEY=sk-... \
LLM_PROVIDER=claude   ANTHROPIC_API_KEY=sk-ant-... \
npm run index -- --full && npm run serve

Add PostgreSQL/pgvector when the JSON store outgrows linear scan:

createdb ragdb && psql ragdb -c 'CR