Skip to content

Live AI demo · RAG

Ask about my work

A retrieval-augmented assistant grounded in my case studies, roles and skills. Every answer cites its sources. Anything it can't answer comes to me, and my reply becomes part of what it knows.

Try one of these

Answers come only from Saba's portfolio, with sources. Enter to send.

Under the hood

How it's built

Four stages, each one visible: open “Inspect pipeline” under any answer to see the rewritten query, the retrieval scores, and the latency of every step.

  1. 01Plan

    Query rewriting and intent routing

    The model turns a follow-up like “what about there?” into a standalone question, classifies the intent, and extracts search keywords as schema-validated JSON. Off-topic and small talk are routed away before retrieval spends anything.

    • Groq · gpt-oss-120b
    • JSON-schema output
    • Low reasoning
  2. 02Retrieve

    Hybrid search with rank fusion

    The question is embedded with gte-small inside a Supabase Edge Function, then searched two ways at once: pgvector cosine similarity for meaning and Postgres full-text for exact names and metrics. Reciprocal Rank Fusion merges both lists so neither score scale dominates.

    • pgvector · HNSW
    • tsvector · GIN
    • RRF k=50
  3. 03Generate

    Grounded, cited, streamed

    Retrieved chunks are passed as numbered sources and the model cites them inline as [n], which the UI turns into links back to the exact source page. The prompt forbids answering beyond the sources, and the answer streams token by token over NDJSON.

    • Native citations
    • Streaming
    • Refusal fallback
  4. 04Learn

    Human-in-the-loop knowledge capture

    When the sources don't cover a question, the bot says so instead of guessing and files it to my inbox. When I answer, the reply is embedded and retrievable on the very next question, so the knowledge base grows where real visitors find gaps.

    • Gap detection
    • Owner inbox
    • Incremental re-index

Production guardrails

Grounding
Answers only from retrieved sources; a gap is reported as a gap, never filled with a guess.
Injection resistance
Sources and visitor text are treated as data; the planner routes role-play and instruction overrides off-topic.
Cost & abuse
Per-IP hourly and global daily limits, enforced from telemetry in Postgres.
Data security
Secrets live server-side only; every table has row-level security with zero public policies.
Observability
Each turn logs intent, retrieved chunk IDs, similarity, citations, latency per stage, and tokens.
Chunking
Structure-aware chunks with context headers; re-indexing only re-embeds chunks whose hash changed.

Open to product leadership roles & AI-native product work

Rather talk to the human?

The bot knows my portfolio. I know the stories behind it.