Back to projects /

Lab / Overview

Perseo RAG

A technical lab for hybrid retrieval, source traceability and data-scope isolation.

Overview

A technical project for hybrid retrieval with grounded citations, versioned ingestion and strict separation between data scopes.

Context

The experiment focuses on two problems that matter as much as relevance: being able to trace an answer back to its source and keeping different data scopes isolated.

My role

I built the retrieval architecture, ingestion flow, isolation model and evaluation setup.

Technical decisions

Combine retrieval signals

Hybrid retrieval and Reciprocal Rank Fusion combine search signals. Grounded citations keep responses connected to sources.

Make boundaries testable

Row Level Security and scope isolation define data access boundaries. Evaluation, pytest, Ruff and mypy support verification.

Architecture

  1. FastAPI / request boundary
  2. PostgreSQL + pgvector / hybrid retrieval
  3. Reciprocal Rank Fusion / ranking
  4. Versioned ingestion / grounded citations
  5. Row Level Security / scope isolation

Main challenges

Evaluating retrieval quality while maintaining source traceability and separation between scopes.

Security / performance

Row Level Security and scope isolation are explicit parts of the design.

Current state

Public source code in the lab, with a focus on reproducibility and verification.

Contact / Giovanni Manetti

Get in touch.

For product development, frontend work, security-related software or a technical collaboration, email me.