HLI-RAG

A retrieval engine that indexes lazily, re-ranks in parallel and checks answers against the source.

  • MMR
  • NLI
  • Python
Design & case study / HLI-RAG
AI engine / 2025—26 HLI-RAG.

A retrieval engine that indexes lazily, re-ranks in parallel and checks answers against the source.

THE BUILD / AI engine

HLI-RAG is a retrieval engine built to stop confident nonsense. It indexes lazily, re-ranks candidates in parallel and runs a natural-language inference check before an answer is allowed out.

The pipeline

  1. Lazy ingest with content hashing so unchanged documents are skipped
  2. Hybrid retrieval: dense vectors plus keyword search
  3. Parallel re-ranking with MMR for diversity
  4. NLI check between answer and source chunks
  5. Citation assembly with exact spans

Why it exists

Most RAG demos answer beautifully and cite nothing. This one would rather say “I don’t know” than invent a source.

NEXT / YOUR PROJECT

WANT ONE
LIKE THIS?

Tell me what it should do. I’ll reply with a plan and a real price.

START A BRIEF ↗
Interactive preview

Explore the website

The website loads only when you start the preview.

Open full screen ↗