← Selected work

Independent system / 02 / Verified sparse-first RAG & research

EvidenceFlow

A LangGraph-based RAG and research system designed around evidence rather than raw model confidence. Its retrieval architecture is sparse-first and does not depend on dense-vector search: OpenSearch inverted-index retrieval provides BM25, exact, phrase, fuzzy, and metadata-aware matching, with neural-sparse retrieval available as an additional semantic signal. Retrieval candidates can be fused with reciprocal-rank fusion and reranked with a Jina cross-encoder before evidence-grounded synthesis and citation verification.

Independent engineering build · Not a client case study

Illustrative EvidenceFlow interface showing document retrieval, an evidence-grounded answer and linked source citations using synthetic data.
Illustrative product visual using synthetic data — not a captured customer deployment or live application screenshot.

The problem

What the system addresses

RAG systems can retrieve plausible text while still producing unsupported claims, overconfident answers, or poor results when dense-vector retrieval is unavailable or poorly matched to the query.

The implementation

How it is approached

A sparse-first retrieval pipeline uses OpenSearch's inverted index and BM25 as a vectorless foundation, with exact, phrase, fuzzy, metadata-aware, and optional neural-sparse retrieval. Adaptive query recovery, reciprocal-rank fusion, cross-encoder reranking, evidence tracking, and deterministic citation verification turn retrieved material into a controlled evidence set before answer generation.

Who it is for

Knowledge, compliance, operations and support teams that need answers tied to inspectable source material.

Sparse-first RAG and research with vectorless inverted-index retrieval, adaptive recovery, reranking, evidence verification, and fail-closed answers.

Independent engineering build. This reference is not a client case study; no customer deployment, testimonial or business-outcome metric is claimed.

Inspectable implementation evidence

What can be verified in the build.

  • OpenSearch inverted-index retrieval with BM25, exact, phrase, fuzzy and metadata-aware matching.
  • Optional neural-sparse retrieval, reciprocal-rank fusion and cross-encoder reranking.
  • Citation verification, evidence-conflict checks and an explicit insufficient-evidence outcome.

System map

Architecture and workflow

  1. 01Query understanding + routing
  2. 02OpenSearch inverted-index retrieval
  3. 03BM25 + exact / phrase / fuzzy / metadata retrieval
  4. 04Optional neural-sparse retrieval
  5. 05RRF candidate fusion + Jina cross-encoder reranking
  6. 06Evidence synthesis + provenance
  7. 07Citation / claim verification
  8. 08Final guarded response

Implementation detail

Engineering decisions and reliability

LangGraphOpenSearchBM25RRFJina AI

Design decisions

  • Make sparse inverted-index retrieval independent of dense-vector search
  • Use BM25 and lexical matching for a vectorless retrieval path
  • Add neural-sparse retrieval without making dense-vector k-NN a dependency
  • Preserve stable evidence IDs throughout the LangGraph workflow
  • Use deterministic citation and claim-support checks
  • Separate document-level evidence from chunk-level retrieval analysis

Reliability considerations

  • Evidence-grounded synthesis
  • Citation verification
  • Numeric/date support checks
  • Evidence-conflict detection
  • Fail-closed behavior
  • Adaptive retrieval recovery
  • Untrusted-document / web-content isolation
  • Regression diagnostics

Build notes

From problem to implementation

01 / Situation

RAG systems can retrieve plausible text and still produce answers that are unsupported, overconfident, or weakly cited.

02 / Task

Build a research assistant where retrieval, evidence collection, citation verification, and answer policy are explicit parts of the system.

03 / Action
  • Built the retrieval foundation around OpenSearch's inverted index and BM25, supporting exact, phrase, fuzzy, and metadata-aware lexical retrieval without requiring dense-vector k-NN.
  • Added optional neural-sparse retrieval as an additional semantic signal while keeping the core retrieval path vectorless.
  • Combined independently ranked retrieval candidates with reciprocal-rank fusion and Jina cross-encoder reranking.
  • Added adaptive query recovery for weak first-pass retrieval and maintained a turn-scoped evidence registry through the LangGraph workflow.
  • Verified citations and claim support against the actual evidence set and fail closed when sufficient support cannot be established.
04 / Result
  • Created a RAG architecture that remains useful without a dense-vector database while still supporting an additional neural-sparse semantic retrieval signal.
  • Made retrieval strategy, evidence provenance, citations, conflicts, and failure states inspectable rather than relying on model confidence.

Optional technical workbench

Go deeper with the live system.

The homepage contains no-key synthetic walkthroughs. The advanced workbench is optional and requires your own provider API key for live model requests. Hosted demonstrations may take a moment to wake from an idle state. Use synthetic or non-confidential data only; provider usage may incur charges.

TECHNICAL LAB / LIVE MODEL WORKBENCH

Go beyond the sample. Explore a live model workflow.

Use your own provider API key to run live model requests against the selected engineering demonstrations. The interactive module loads only when you open it, keeping the rest of the page lightweight.

Use a test key with a spend limit and synthetic or non-confidential data. Never enter production credentials or sensitive business information. Hosted demonstrations may take a moment to wake after inactivity, and provider usage may incur charges on your account.

01 / Verified sparse-first RAG & researchEvidenceFlow

Sparse-first RAG and research with vectorless inverted-index retrieval, adaptive recovery, reranking, evidence verification, and fail-closed answers.