Skip to content

WorkAI system

RAG.NextUpgrad

Production RAG platform with hybrid dense + BM25 retrieval, a hallucination-blocking confidence gate and multi-provider fallback.

Year
2026
Built at
NextUpgrad Web Solutions
Stack
RAG, Hybrid retrieval, BM25
RAG.NextUpgrad — screenshot
01

Overview

A retrieval-augmented generation platform built for production use rather than demos. Documents are chunked, embedded and indexed for both dense (vector) and sparse (BM25) retrieval, then fused and re-ranked so the model only ever sees the most relevant evidence.

Answers stream back with inline citations. A confidence gate scores the retrieved evidence before generation and refuses to answer when support is weak — the model is never allowed to guess.

Provider outages are handled automatically: requests fall back across multiple LLM providers with identical prompts, so the product keeps working when one API degrades.

02

What it does

5 things that matter

  1. 01Hybrid dense + BM25 retrieval with reciprocal-rank fusion and re-ranking
  2. 02Citation-grounded streaming answers
  3. 03Confidence gate that blocks low-evidence generations
  4. 04Automatic multi-provider LLM fallback
  5. 05Deployed with Docker, CI/CD and structured logging; runs in ~220 MB on a free tier
04

Built with

  • RAG
  • Hybrid retrieval
  • BM25
  • Re-ranking
  • FastAPI
  • Streaming