Skip to content
Aloy Studio

05Production RAG system

AuditRAG

Hybrid search (dense + sparse + RRF), auto-generated eval datasets, and per-query latency/cost observability.

Period
March 2025
Status
Shipped
Role
Founder and engineer
AuditRAG project artwork

Overview

Production-grade Retrieval-Augmented Generation platform. Upload any PDF, chat with it using hybrid search (dense + sparse + RRF fusion), and get cited answers. The system auto-generates evaluation datasets on ingestion, runs quality harnesses (exact match, token F1), and tracks per-query observability — latency percentiles, token usage, and cost. Built with FastAPI, Qdrant, PostgreSQL, and a React + TypeScript frontend. Demonstrates the full RAG lifecycle: ingestion, retrieval, generation, evaluation, and monitoring.

The challenge

A useful retrieval system needs more than a chat interface. Ingestion quality, retrieval behavior, citations, evaluation, latency, and cost all need to remain visible after deployment.

The approach

AuditRAG covers the complete retrieval lifecycle, from PDF ingestion through hybrid search and cited generation to automated evaluation and per-query observability.

01Process

How it works

  1. 01

    Ingest

    Parse, segment, and prepare uploaded documents.

  2. 02

    Retrieve

    Run dense and sparse search, then fuse the rankings.

  3. 03

    Answer

    Generate a response grounded in cited source material.

  4. 04

    Evaluate

    Measure answer quality and inspect operational signals.

02Decisions

Key decisions

  1. 01

    Combine retrieval signals

    Dense and sparse retrieval are fused with reciprocal rank fusion instead of relying on one search strategy.

  2. 02

    Evaluate during ingestion

    The system generates evaluation material as documents enter the pipeline, making quality checks part of the workflow.

  3. 03

    Make operations inspectable

    Latency percentiles, token usage, and cost are tracked alongside answer quality and citations.

Technologies

  • Python
  • FastAPI
  • Qdrant
  • PostgreSQL
  • React
  • TypeScript
  • OpenAI
  • Anthropic
Next projectNewPaper